From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12219 invoked from network); 11 Mar 1999 05:02:13 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 11 Mar 1999 05:02:13 -0000 Received: from ripspost.aist.go.jp (ripspost.aist.go.jp [150.29.9.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id XAA04736 for ; Wed, 10 Mar 1999 23:55:06 -0500 Received: from bhalpha1.nibh.go.jp ([150.29.66.225]) by ripspost.aist.go.jp (8.9.3/3.7W) with SMTP id NAA02567; Thu, 11 Mar 1999 13:54:35 +0900 (JST) Date: Thu, 11 Mar 1999 13:54:18 +0900 (JST) From: Tom Holroyd To: Jay.Estabrook@digital.com cc: axp-list@redhat.com Subject: Re: Corrected ECC error hangs system (2.2) In-Reply-To: <199903102001.PAA01411@alpha1.estabrook.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 10 Mar 1999 Jay.Estabrook@digital.com wrote: >>>> Tom Holroyd said: >> I'm getting a CIA machine check, vector 0x660, reason = 0x21E = corrected >> ECC error (this is with pc164 MILO, which uses the eb164 codes, yes?). >> >> The trouble is I get an infinite number of them in a row, so apparently, >> the error is not getting cleared before the handler returns. > >Was this with the latest MILO, ie from RH 5.2? That's a good question. The version of MILO I have says PC164, built against 2.0.35, Oct. 8. I downloaded it from somewhere inside Digital's ftp pages; all I remember about that is that the HOWTO points at the wrong place, and the latest milos are well hidden. The old one I had didn't work with the latest kernels, this one does. I did have to experiment a bit because the manual for my box claims it's an AlphaPC164LX, but the lx164 milos don't work. Anyhow, it certainly has a 21172... >> I'm assuming of course that this machine check is safe to ignore? > >Yes, except when it takes over the machine, of course... :-\ Well, what I did this morning was to clear the COR_ERR bit in the ERR_MASK register, which means the 21172 will ignore corrected ECC errors. That seems to have eliminated the problem (at least for now). However, that's really just a band-aid -- the real problem is that the error wasn't handled properly in the first place -- it wasn't cleared, and when the handler returned it was getting called again instantly, locking the machine. I may experiment later with the proper way to clear the error (writing zero to the CIA_ERR register is supposed to do it, and that isn't being done). At least, I could print out the symptom byte, though I don't know what good that would do. But ignoring it works. >> Oddly, it's semi-reproducible -- it happens while writing to SCSI disk >> through an adaptec controller, so perhaps I have a problem there, although >> I swapped the adaptec for an identical one and the machine check is still >> reproducible with dd if=/dev/zero of=/tmp/moo count=large over and over. >> (I only have one internal disk.) > >Which Adaptec? kernel? This is with an Adaptec 2940UW (though I have only narrow devices. :-( I've had the lockup occur with both 2.0.32 and 2.2.3, and a few others in between. Not surprising, since the cia_machine_check() routine hasn't changed much. The funny thing is the machine check code is coming back as a (platform specific) MCHK_K_CIA_0 (0x21E) rather than a MCHK_K_ECC_C. The 0x21E corresponds to IRQ0, IPL 20, according to platform.h. Perhaps it's not really an ECC error, but some spurious interrupt? In any case the palcode seems to handle this the wrong way; the code that sets MCHK_K_ECC_C is never getting called -- but I have no idea what's going on throughout most of the palcode, so maybe this is correct. :-) Dr. Tom Holroyd I would dance and be merry, Life would be a ding-a-derry, If I only had a brain. -- The Scarecrow