Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Corrected ECC error hangs system (2.2)
@ 1999-03-10 11:06 Tom Holroyd
  1999-03-10 20:01 ` Jay.Estabrook
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Holroyd @ 1999-03-10 11:06 UTC (permalink / raw)
  To: axp-list

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.

The symptom is the system locks up hard, but if you happen to be in the
console window (i.e. not running X), you can see the machine checks going
by (but they never get written to the log and the keyboard is dead).

What is the proper way to clear the error?  Do I reset the bit and
write it back to the CIA_IOC_CIA_ERR register (or clear all the bits)?
Just doing
        wrmces(rdmces());       /* reset machine check pending flag */
in core_cia.c doesn't appear to cut it.

Perhaps interrupts are not getting turned back on correctly?

(I noticed a FIX ME in the palcode where it suggests distinguishing
between corrected errors and uncorrected ones.  Perhaps that's the place
to ignore this, but going back to the kernel so a printk() can be done
to log that the error occurred is good.)

I'm assuming of course that this machine check is safe to ignore?
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.)

Dr. Tom Holroyd
I would dance and be merry,
Life would be a ding-a-derry,
If I only had a brain.
	-- The Scarecrow


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Corrected ECC error hangs system (2.2)
  1999-03-10 11:06 Corrected ECC error hangs system (2.2) Tom Holroyd
@ 1999-03-10 20:01 ` Jay.Estabrook
  1999-03-11  4:54   ` Tom Holroyd
  0 siblings, 1 reply; 3+ messages in thread
From: Jay.Estabrook @ 1999-03-10 20:01 UTC (permalink / raw)
  To: axp-list


>>> 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?

> What is the proper way to clear the error?  Do I reset the bit and
> write it back to the CIA_IOC_CIA_ERR register (or clear all the bits)?
> Just doing
>         wrmces(rdmces());       /* reset machine check pending flag */
> in core_cia.c doesn't appear to cut it.

This is probably talked about in the CIA docs, ie the DC21172 spec, which
is at:

http://ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html

> I'm assuming of course that this machine check is safe to ignore?

Yes, except when it takes over the machine, of course... :-\

> 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?

--Jay++

-------------------------------------------------------------------------------
  American Non Sequitur Society: we don't make sense, but we do like pizza...

Jay A Estabrook                            Alpha Motherboards - LINUX Project
Compaq Computer Corporation                (508) 841-3241 or (DTN) 237-3241
334 South Street, Shrewsbury, MA 01545     Jay.Estabrook@digital.com
-------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Corrected ECC error hangs system (2.2)
  1999-03-10 20:01 ` Jay.Estabrook
@ 1999-03-11  4:54   ` Tom Holroyd
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Holroyd @ 1999-03-11  4:54 UTC (permalink / raw)
  To: Jay.Estabrook; +Cc: axp-list

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-03-11  5:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-10 11:06 Corrected ECC error hangs system (2.2) Tom Holroyd
1999-03-10 20:01 ` Jay.Estabrook
1999-03-11  4:54   ` Tom Holroyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox