Subject: Re: Problem with -current kernel supped March 12
To: Chris Tribo <talon16m@hotmail.com>
From: Monroe Williams <monroe@pobox.com>
List: port-macppc
Date: 03/14/2000 11:17:03
on 3/13/00 12:32 PM, Chris Tribo at talon16m@hotmail.com wrote:

> on 3/13/00 3:18 PM, Jake Luck at netbsd@10k.org wrote something like:
>> 
[...]
>> also guys what version of OF do you have?
>> 
>> OF version  Hardware
>> ----------------------------------------------------------------
>> Jake       2.1f   Powerbook 2400c
>  Chris      2.0f1  Beige G3 DT/233
   gabriel    1.0.5  PowerMac 7500
   Monroe     1.0.5  PowerMac 7500

I poked around a bit and found that the actual error message appears
to be coming from scsipi_interpret_sense() in sys/dev/scsipi/scsipi_base.c.
It looks like the data being passed to scsipi_interpret_sense() is all
zeroes.  

I built a kernel configured with SCSIDEBUG and a hack to scsiconf.c so that
all devices get their debug flags set to DEBUGLEVEL.  I've included that
boot log at the end of this message, minus the part where esp0 probes
all targets and finds nothing.

I've poked around in the scsi code for a while, but I haven't been able to
make much sense of it yet.

Here's the full boot log:

-----
0 > boot -a
>> NetBSD/macppc OpenFirmware Boot, Revision 1.2
>> (tsubai@moeko, Sun Feb  6 23:24:18 JST 2000)
Boot: netbsd.local
no active package2511264+195664 [100+96016+80541]=0x2c0290
 start=0x100000
Copyright (c) 1996, 1997, 1998, 1999, 2000
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.4U (MBW) #7: Tue Mar 14 08:20:25 PST 2000
    monroe@macppc:/usr/local/netbsd/src/sys/arch/macppc/compile/MBW
CPU: 750 (Revision 202)
total memory = 160 MB
avail memory = 142 MB
using 2073 buffers containing 8292 KB of memory
no active packagemainbus0 (root)
cpu0 at mainbus0
bandit0 at mainbus0
pci0 at bandit0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer Bandit Host-PCI Bridge (rev. 0x03)
de0 at pci0 dev 14 function 0
de0: interrupting at irq 24
de0: Asante 21140A [10-100Mb/s] pass 2.2
de0: address 00:00:94:a1:68:f1
de0: enabling 10baseT port
de0: supplying EUI64: 00:00:94:ff:fe:a1:68:f1
ohci0 at pci0 dev 15 function 0: Opti RM861HA (rev. 0x10)
ohci0: interrupting at irq 25
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Opti OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
obio0 at pci0 dev 16 function 0: addr 0xf3000000
esp0 at obio0 offset 0x10000 irq 12: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
mc0 at obio0 offset 0x11000: irq 14,2,3: address 08:00:07:7f:b8:f7
zsc0 at obio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0 (console)
zstty1 at zsc0 channel 1
awacs at obio0 offset 0x14000 not configured
swim3 at obio0 offset 0x15000 not configured
adb0 at obio0 offset 0x16000 irq 18: 3 targets
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 2: extended keyboard
wskbd0 at akbd0
ams0 at adb0 addr 3: EMP trackball <KML1> 2-button, 200 dpi
wsmouse0 at ams0
ams1 at adb0 addr 3: relative positioning device (mouse?) (50)
wsmouse at ams1 not configured
mesh0 at obio0 offset 0x18000 irq 13: 50MHz, SCSI ID 7
scsibus1 at mesh0: 8 targets, 8 luns per target
nvram0 at obio0 offset 0x1d000
bandit1 at mainbus0
pci1 at bandit1 bus 1
pci1: i/o space, memory space enabled
ofb0 at pci1 dev 11 function 0: Apple Computer Control
ofb0: 640 x 480, 8bpp
wsdisplay0 at ofb0
Apple Computer PlanB (undefined subclass 0x00, revision 0x01) at pci1 dev 13
function 0 not configured
scsibus0: waiting 2 seconds for devices to settle...
[deleted esp0 probing all devices and finding nothing]
scsibus1: waiting 2 seconds for devices to settle...
probe(mesh0:0:0): scsi_scsipi_cmd
probe(mesh0:0:0): scsipi_get_xs
probe(mesh0:0:0): calling pool_get
probe(mesh0:0:0): returning
scsipi_exec_cmd: xs(0x1228000):
xs_control(0x000001c4)xs_status(0x20992200)sc_link(0xe027e300)retr(0x4)timo(
0x2710)cmd(0x1228068)len(0x6)data(0x0)len(0x0)res(0x0)err(0x0)bp(0x0)probe(m
esh0:0:0): command: 0x0,0x0,0x0,0x0,0x0,0x0-[0 bytes]

probe(mesh0:0:0): scsipi_done
probe(mesh0:0:0): command: 0x0,0x0,0x0,0x0,0x0,0x0-[0 bytes]
probe(mesh0:0:0): back in cmd()
probe(mesh0:0:0): sc_err1,err = 0x1
code 0x0 valid 0x0 seg 0x0 key 0x0 ili 0x0 eom 0x0 fmark 0x0
info: 0x0 0x0 0x0 0x0 followed by 0 extra bytes
extra:
probe(mesh0:0:0): undecodable sense error for opcode 0x0, data= 0x00 0x00
0x00 0x00
probe(mesh0:0:0): scsipi_interpret_sense returned 5
probe(mesh0:0:0): scsipi_free_xs
probe(mesh0:0:0): scsi_scsipi_cmd
probe(mesh0:0:0): scsipi_get_xs
probe(mesh0:0:0): calling pool_get
probe(mesh0:0:0): returning
scsipi_exec_cmd: xs(0x1228000):
xs_control(0x00000804)xs_status(0x20992200)sc_link(0xe027e300)retr(0x4)timo(
0x2710)cmd(0x1228068)len(0x6)data(0x37e798)len(0x2c)res(0x2c)err(0x0)bp(0x0)
probe(mesh0:0:0): command: 0x12,0x0,0x0,0x0,0x2c,0x0-[44 bytes]
------------------------------
000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
016: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
032: 00 00 00 00 00 00 00 00 00 00 00 00
------------------------------

mesh: timeout state=3
mesh: resetting dma
-----

-- monroe
------------------------------------------------------------------------
Monroe Williams                                         monroe@pobox.com