Subject: Re: Problem with new esp driver? [on mac68k] (or maybe not)
To: Allen Briggs <briggs@wasabisystems.com>
From: Dave Huang <khym@bga.com>
List: port-mac68k
Date: 01/05/2001 03:06:16
On Sat, 30 Dec 2000, Allen Briggs wrote:
> allergic to your system for some reason.  Can you try turning off
> the tagged queuing by setting ncr53c9x_notag = 1 in sys/dev/ic/ncr53c9x.c

That got rid of the esp0: !TC on MSG OUT messages, but "ls" still
doesn't work, and "dd if=/dev/rsd0c" says 0 bytes transferred, etc...
I don't get how I can still run programs and read/write files, but not
be able to read the raw disk device. And something interesting: if I
boot single-user, mount -u /, and ls, nothing shows up. But if I then
ls>somefile (or otherwise create a file), ls works perfectly (for that
directory only... if I ls another directory, it still looks empty).

> ?  If you don't have DEBUG defined, move the declaration and use
> of ncr53c9x_notag outside of the #ifdef DEBUG.  If that doesn't
> help (or actually, even if it does), I'd like to see what the output
> looks like if you boot with ncr53c9x_debug set to 0xffff.

All of it? It printed a _lot_ of stuff :) Here's the output from a "dd
if=/dev/rsd0c" (after running dd once first, so that dd itself will be
cached in RAM):

# dd if=/dev/rsd0c
[ncr53c9x_scsi_cmd] [0x0, 6]->0 [ncr53c9x_sched] [ncr53c9x_select(t0,l0,cmd:0,tag:0,0)] <cmd:0x42 747>[ncr53c9x_intr] regs[intr=18,stat=83,step=04] STATUS_PHASE <cmd:0x11 2584>regs[intr=08,stat=87,step=04] <stat:(0,0)><cmd:0x12 2438>regs[intr=20,stat=80,step=04] <DISC [intr 20, stat 80, step 4]><cmd:0x44 2062>[ncr53c9x_done(error:0)] error=0
[ncr53c9x_sched] [ncr53c9x_scsi_cmd] [0x1b, 6]->0 [ncr53c9x_sched] [ncr53c9x_select(t0,l0,cmd:1b,tag:0,0)] <cmd:0x42 747>[ncr53c9x_intr] regs[intr=18,stat=83,step=04] STATUS_PHASE <cmd:0x11 2584>regs[intr=08,stat=87,step=04] <stat:(0,0)><cmd:0x12 2438>regs[intr=20,stat=80,step=04] <DISC [intr 20, stat 80, step 4]><cmd:0x44 2062>[ncr53c9x_done(error:0)] error=0
[ncr53c9x_sched] [ncr53c9x_scsi_cmd] [0x1e, 6]->0 [ncr53c9x_sched] [ncr53c9x_select(t0,l0,cmd:1e,tag:0,0)] <cmd:0x42 747>[ncr53c9x_intr] regs[intr=18,stat=83,step=04] STATUS_PHASE <cmd:0x11 2584>regs[intr=08,stat=87,step=04] <stat:(2,0)><cmd:0x12 2438>regs[intr=20,stat=80,step=04] <DISC [intr 20, stat 80, step 4]><cmd:0x44 2062>[ncr53c9x_done(error:0)] requesting sense [ncr53c9x_select(t0,l0,cmd:3,tag:0,0)] <cmd:0x41 662>[ncr53c9x_intr] regs[intr=18,stat=81,step=04] DATA_IN_PHASE <cmd:0x80 2567><cmd:0x90 2577>[ncr53c9x_intr] regs[intr=10,stat=81,step=04] STATUS_PHASE <cmd:0x11 2584>regs[intr=08,stat=87,step=04] <stat:(0,0)><cmd:0x12 2438>regs[intr=20,stat=80,step=04] <DISC [intr 20, stat 80, step 4]><cmd:0x44 2062>[ncr53c9x_done(error:0)] sense=0x70
[ncr53c9x_sched] [ncr53c9x_scsi_cmd] [0x1a, 6]->0 [ncr53c9x_sched] [ncr53c9x_select(t0,l0,cmd:1a,tag:0,0)] <cmd:0x42 747>[ncr53c9x_intr] regs[intr=18,stat=81,step=04] DATA_IN_PHASE <cmd:0x80 2567><cmd:0x90 2577>[ncr53c9x_intr] regs[intr=10,stat=81,step=04] STATUS_PHASE <cmd:0x11 2584>regs[intr=08,stat=87,step=04] <stat:(0,0)><cmd:0x12 2438>regs[intr=20,stat=80,step=04] <DISC [intr 20, stat 80, step 4]><cmd:0x44 2062>[ncr53c9x_done(error:0)] resid=44 error=0
[ncr53c9x_sched] [ncr53c9x_scsi_cmd] [0x25, 10]->0 [ncr53c9x_sched] [ncr53c9x_select(t0,l0,cmd:25,tag:0,0)] <cmd:0x42 747>[ncr53c9x_intr] regs[intr=18,stat=81,step=04] DATA_IN_PHASE <cmd:0x80 2567><cmd:0x90 2577>[ncr53c9x_intr] regs[intr=10,stat=81,step=04] STATUS_PHASE <cmd:0x11 2584>regs[intr=08,stat=87,step=04] <stat:(0,0)><cmd:0x12 2438>regs[intr=20,stat=80,step=04] <DISC [intr 20, stat 80, step 4]><cmd:0x44 2062>[ncr53c9x_done(error:0)] resid=8 error=0
[ncr53c9x_sched] [ncr53c9x_scsi_cmd] [0x8, 6]->0 [ncr53c9x_sched] [ncr53c9x_select(t0,l0,cmd:8,tag:0,0)] <cmd:0x42 747>[ncr53c9x_intr] regs[intr=18,stat=87,step=04] MESSAGE_IN_PHASE <cmd:0x1 2469><cmd:0x10 2471>regs[intr=08,stat=87,step=04] MESSAGE_IN_PHASE [ncr53c9x_msgin(curmsglen:0 fifo:1)] <msgbyte:0x04>gotmsg(4)disconnect <cmd:0x12 1695>regs[intr=20,stat=80,step=04] <DISC [intr 20, stat 80, step 4]><cmd:0x44 2062>[ncr53c9x_sched] [ncr53c9x_intr] regs[intr=0c,stat=87,step=04] selid=0x81 [ncr53c9x_msgin(curmsglen:0 fifo:1)] <msgbyte:0x80>gotmsg(80)<cmd:0x12 1695>regs[intr=10,stat=81,step=04] DATA_IN_PHASE <cmd:0x80 2567><cmd:0x90 2577>[ncr53c9x_intr] regs[intr=10,stat=81,step=04] STATUS_PHASE <cmd:0x11 2584>regs[intr=08,stat=87,step=04] <stat:(0,0)><cmd:0x12 2438>regs[intr=20,stat=80,step=04] <DISC [intr 20, stat 80, step 4]><cmd:0x44 2062>[ncr53c9x_done(error:0)] resid=16896 error=0
[ncr53c9x_sched] [ncr53c9x_scsi_cmd] [0x8, 6]->0 [ncr53c9x_sched] [ncr53c9x_select(t0,l0,cmd:8,tag:0,0)] <cmd:0x42 747>[ncr53c9x_intr] regs[intr=18,stat=87,step=04] MESSAGE_IN_PHASE <cmd:0x1 2469><cmd:0x10 2471>regs[intr=08,stat=87,step=04] MESSAGE_IN_PHASE [ncr53c9x_msgin(curmsglen:0 fifo:1)] <msgbyte:0x04>gotmsg(4)disconnect <cmd:0x12 1695>regs[intr=20,stat=80,step=04] <DISC [intr 20, stat 80, step 4]><cmd:0x44 2062>[ncr53c9x_sched] [ncr53c9x_intr] regs[intr=0c,stat=87,step=04] selid=0x81 [ncr53c9x_msgin(curmsglen:0 fifo:1)] <msgbyte:0x80>gotmsg(80)<cmd:0x12 1695>regs[intr=10,stat=81,step=04] DATA_IN_PHASE <cmd:0x80 2567><cmd:0x90 2577>[ncr53c9x_intr] regs[intr=10,stat=81,step=04] STATUS_PHASE <cmd:0x11 2584>regs[intr=08,stat=87,step=04] <stat:(0,0)><cmd:0x12 2438>regs[intr=20,stat=80,step=04] <DISC [intr 20, stat 80, step 4]><cmd:0x44 2062>[ncr53c9x_done(error:0)] resid=512 error=0
[ncr53c9x_sched] 0+[ncr53c9x_scsi_cmd] [0x1e, 6]->0 [ncr53c9x_sched] [ncr53c9x_select(t0,l0,cmd:1e,tag:0,0)] <cmd:0x42 747>[ncr53c9x_intr] regs[intr=18,stat=83,step=04] STATUS_PHASE <cmd:0x11 2584>[ncr53c9x_intr] regs[intr=08,stat=87,step=04] <stat:(2,0)><cmd:0x12 2438>regs[intr=20,stat=80,step=04] <DISC [intr 20, stat 80, step 4]><cmd:0x44 2062>[ncr53c9x_done(error:0)] requesting sense [ncr53c9x_select(t0,l0,cmd:3,tag:0,0)] <cmd:0x41 662>[ncr53c9x_intr] regs[intr=18,stat=81,step=04] DATA_IN_PHASE <cmd:0x80 2567><cmd:0x90 2577>[ncr53c9x_intr] regs[intr=10,stat=81,step=04] STATUS_PHASE <cmd:0x11 2584>[ncr53c9x_intr] regs[intr=08,stat=87,step=04] <stat:(0,0)><cmd:0x12 2438>regs[intr=20,stat=80,step=04] <DISC [intr 20, stat 80, step 4]><cmd:0x44 2062>[ncr53c9x_done(error:0)] sense=0x70
[ncr53c9x_sched] 0 records in
0+0 records out
0 bytes transferred in 1 secs (0 bytes/sec)
#