Subject: esp SCSI driver hangs a bit, then panics
To: None <port-mac68k@netbsd.org>
From: Nico van Eikema Hommes <hommes@chemie.uni-erlangen.de>
List: port-mac68k
Date: 01/15/2001 19:08:16
        Hi again!

A new phenomenon, after I decided to move the pkgsrc directory (120 MB at
present, several thousand files) to another disk drive to avoid running out
of space: during the mv, the machine locked up completely for one minute
and then proceeded as if nothing had happened.
In the syslog, lines like the following were written:

esp_quick_dma_setup called with 136a400, 0, 0, 0
dmaintr: DMA xfer of zero xferred 65504
!TC on DATA XFER [intr 10, stat 83, step 4] prevphase 0, resid bf0
sd0(esp0:2:0): esp0: timed out [ecb 0x1042104 (flags 0x1, dleft bf0, stat 0)],
   <state 5, nexus 0x1042104, phase(l 3, c 3, p 3), resid 0, msg(q 0,o 0) >
sd0(esp0:2:0): esp0: timed out [ecb 0x1042104 (flags 0x41, dleft bf0, stat 0)],
   <state 5, nexus 0x1042104, phase(l 3, c 3, p 3), resid 0, msg(q 20,o 0) >
   AGAIN
esp0: STATUS_PHASE: msg 7

This happened three times without fatalities; the fourth time, however,
caused a panic: esp0: invalid state: 6
The "trace" command gave the following output (what is needed of this?
I have to write it all down and type it in again)

_cpu_Debugger(8,8,1002000,79feb0) + 6
_panic(13366,1002014,6,8,8) + 60
_ncr53c9x_intr(1002000,79fee4,1ab80e,1002000,7) + f3e
_esp_intr(1002000) + 18
_via2_intr(0,0,79ff48,3524,68) + 4c
_intr_dispatch(68) + 48
_intrhand(?)
_mi_switch(78b700) + a
_ltsleep(204d2e,204,15cd98,0,204d36) + 19c
_uvm_aiodone_daemon(78b700) + 42
_proc_trampoline() + 2

The source (root) drive is a Conner CP30540, sd1, while the destination
drive is a Quantum Lightning 540S, sd0, SCSI ID 2. I remember reading
about occasional problems with Quantum drives, so this may be a known
issue already. Is it useful to send a PR anyway? Is other info useful?
I'll leave the machine as it is for the moment.

Best wishes,

         Nico

-- 
Dr. N.J.R. van Eikema Hommes   Computer-Chemie-Centrum
hommes@chemie.uni-erlangen.de  Universitaet Erlangen-Nuernberg
Phone:    +49-(0)9131-8526532  Naegelsbachstr. 25
FAX:      +49-(0)9131-8526566  D-91052 Erlangen, Germany