Subject: Re: Kernel asm compile errors
To: Takeshi Shibagaki <ie9t-sbgk@asahi-net.or.jp>
From: Allen Briggs <briggs@wasabisystems.com>
List: port-mac68k
Date: 01/28/2001 13:44:10
> When I changed a partition table of same disk, sd0 didn't work well.
> sd0(esp0:2:0): esp0: timed out [ecb 0x582068 (flags 0x1, dleft 10000, stat 0)], <state 5, nexus 0x582068, phase(l 3, c 0, p 0), resid 10000, msg(q 0,o 0) DMA active>
> sd0(esp0:2:0): esp0: timed out [ecb 0x582068 (flags 0x41, dleft 10000, stat 0)], <state 5, nexus 0x582068, phase(l 3, c 0, p 0), resid 10000, msg(q 20,o 0) DMA active> AGAIN
> panic: esp0 invalid status: 6

Hmmm...  What version of esp.c is that from?  1.27 or 1.28?
That looks like the errors that we saw with my patches from version 1.27.
This was caused by the disk disconnecting during a write operation with
data still in the FIFO.  The data in the FIFO was being counted as
"transferred" in 1.27 (I was confused about when the transfer count
registers were being updated).

-allen

-- 
 Allen Briggs                     briggs@wasabisystems.com
 http://www.wasabisystems.com/    Quality NetBSD CDs, Sales, Support, Service