Subject: kernel panic with port-i386 and IEEE1394-SBP2
To: None <tech-kern@netbsd.org>
From: noguchi <ngc@ff.iij4u.or.jp>
List: tech-kern
Date: 07/06/2003 20:26:24
Hello.

Now I'm trying sbpscsi(IEEE1394-SBP2) storage on port-i386 laptop PC.
Connecting SBP2 storage unit to IEEE1394 port, kernel always panics.
Incidentally, my SBP2 storage is now formatted as FAT32 filesystem.

The following is console log at the time.

Regards.

------------------------------------------
NOGUCHI Hiroshi
ngc@ff.iij4u.or.jp
http://www.ff.iij4u.or.jp/~ngc/

------------------------------------------------
np10% uname -a
NetBSD np10 1.6U NetBSD 1.6U (NP10FW) #0: Sun Jul  6 20:02:30 JST 2003  
noguchi@nlx1:/usr/src/CURRENT/sys.NP10/arch/i386/compi
le/NP10FW i386
np10% fwohci0 at cardbus0 dev 0 function 0: Texas Instruments TSB12LV23 
OHCI IEEE 1394 Host Controller (rev. 0x00)
fwohci0: interrupting at 10
fwohci0: OHCI 1.0, 00:00:00:00:10:00:0f:05, 400Mb/s, 2048 max_rec, 4 
ir_ctx, 8 it_ctx
fw0 at fwohci0: 00:00:00:00:10:00:0f:05:0a:02:ff:ff:f0:01:00:00

np10% fwnode0 at fwohci0 Node 0: UID 00:01:8e:a6:00:10:17:5c
fwnode1 at fwohci0 Node 1: UID 00:01:d2:00:e0:09:25:30
fwnode0: Link Speed: 100Mb/s, max_rec: 64 bytes
Called sbp2_abort
uvm_fault(0xc0373f80, 0, 0, 1) -> 0xe
kernel: page fault trap, code=0
Stopped in pid 305.1 (fwohci0) at       netbsd:sbp2_abort+0x33: cmpl    
0x44(%ec
x),%ebx
db> trace
sbp2_abort(c0632444,c054a020,0,0,c0632400) at netbsd:sbp2_abort+0x33
sbp2_free(c0632400,c0631980,c75dfcac,c01e8ab4,c75dfd08) at 
netbsd:sbp2_free+0x41

sbpscsi_match(c0622800,c03470fc,c054a020,c0378c40,c03470fc) at 
netbsd:sbpscsi_ma
tch+0x6a
mapply(c75dfd08,c03470fc,c0631c00,c0100b4c,c02c6258) at 
netbsd:mapply+0x60
config_search(0,c0622800,c054a020,0,c0631c00) at 
netbsd:config_search+0x70
config_found_sm(c0622800,c054a020,c02c6258,0,c0622800) at 
netbsd:config_found_sm
+0x1f
p1212_match_units(c0622800,c0631c00,c02c6258,c02c6231,c0343720) at 
netbsd:p1212_
match_units+0x54
fwnode_configrom_input(c06313c0,0,1,ddc,c06196e0) at 
netbsd:fwnode_configrom_inp
ut+0x1f4
fwohci_read_multi_resp(c0633000,c054a160,c75dfea8,0,0) at 
netbsd:fwohci_read_mul
ti_resp+0x183
fwohci_arrs_input(c0633000,c0631f00,0,246,c0633000) at 
netbsd:fwohci_arrs_input+
0x5a
fwohci_event_thread(c0633000,c0633000,2,c7429900,c0633000) at 
netbsd:fwohci_even
t_thread+0x28b
fwohci_thread_init(c0633000,0,0,0,c010030c) at 
netbsd:fwohci_thread_init+0x242
db>
db> dmesg
NetBSD 1.6U (NP10FW) #0: Sun Jul  6 20:02:30 JST 2003
         noguchi@nlx1:/usr/src/CURRENT/sys.NP10/arch/i386/compile/NP10FW
total memory = 73340 KB
avail memory = 64816 KB
using 942 buffers containing 3768 KB of memory
BIOS32 rev. 0 found at 0xfd841
PCI BIOS rev. 2.1 found at 0xfd87c
pcibios: config mechanism [1][x], special cycles [1][x], last bus 2
PCI IRQ Routing Table rev. 1.0 found at 0xf5940, size 112 bytes (5 
entries)
PCI Interrupt Router at 000:01:0 (Opti 82C558)
------------------------------------------
   device vendor product pin PIRQ IRQ stage
------------------------------------------
000:02:0 0x104c 0xac12   A  0x00  10  2    fixed up
000:02:1 0x104c 0xac12   B  0x01  10  2    fixed up
------------------------------------------
PCI fixup examining 1045:c557
PCI fixup examining 1045:c558
PCI fixup examining 104c:ac12
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 104c:ac12
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI fixup examining 102c:e0
PCI fixup examining 1045:c621
PCI bus #2 is the last bus
[System BIOS Setting]-----------------------
   device vendor product
   register space address    size
--------------------------------------------
000:00:0 0x1045 0xc557
                 [OK]
000:01:0 0x1045 0xc558
                 [OK]
000:02:0 0x104c 0xac12
         10h mem  0x00000000 0x00001000
                 [NG]
000:02:1 0x104c 0xac12
         10h mem  0x00000000 0x00001000
                 [NG]
000:03:0 0x102c 0x00e0
         10h mem  0x20000000 0x01000000
                 [OK]
000:20:0 0x1045 0xc621
         20h port 0x00005800 0x00000010
                 [OK]
--------------------------[  2 devices bogus]
  Physical memory end: 0x047fc000
  PCI memory mapped I/O space start: 0x04800000
[PCIBIOS fixup stage]-----------------------
   device vendor product
   register space address    size
--------------------------------------------
000:00:0 0x1045 0xc557
                 [OK]
000:01:0 0x1045 0xc558
                 [OK]
000:02:0 0x104c 0xac12
         10h mem  0x04800000 0x00001000
                 [OK]
000:02:1 0x104c 0xac12
         10h mem  0x04801000 0x00001000
                 [OK]
000:03:0 0x102c 0x00e0
         10h mem  0x20000000 0x01000000
                 [OK]
000:20:0 0x1045 0xc621
         20h port 0x00005800 0x00000010
                 [OK]
--------------------------[  0 devices bogus]
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium (P54C) (586-class), 100.00 MHz, id 0x52c
cpu0: features 1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Opti 82C557 (rev. 0x14)
pcib0 at pci0 dev 1 function 0
pcib0: Opti 82C558 (rev. 0x02)
cbb0 at pci0 dev 2 function 0: Texas Instruments PCI1130 PCI-CardBus 
Bridge (rev
. 0x04)
cbb1 at pci0 dev 2 function 1: Texas Instruments PCI1130 PCI-CardBus 
Bridge (rev
. 0x04)
vga1 at pci0 dev 3 function 0: Chips and Technologies 65550 (rev. 0x45)
wsdisplay0 at vga1 kbdmux 1
wsmux1: connecting to wsdisplay0
pciide0 at pci0 dev 20 function 0: OPTi 82c621 PCI IDE controller (rev. 
0x12)
pciide0: bus-master DMA support present but disabled due to chip rev. 
<= 0x12
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DJSA-210>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 9590 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 19640880 
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4
pciide0: secondary channel wired to compatibility mode
pciide0: secondary channel ignored (disabled)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
pcic1 at isa0 port 0x3e2-0x3e3 iomem 0xe0000-0xe3fff irq
pcic1: controller 0 (Ricoh RF5C296) has socket A only
pcic1: controller 1 (Unknown controller) has no sockets
pcmcia0 at pcic1 controller 0 socket 0
isapnp0: no ISA Plug 'n Play devices found
cbb0: interrupting at irq 10
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0
pcmcia1 at cardslot0
cbb1: interrupting at irq 10
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 2 device 0
pcmcia2 at cardslot1
apm0 at mainbus0: Power Management spec V1.2
pcic1: controller 0 detecting irqs with mask 0xdeb8:..3..7..9..11..15
pcic1: using irq 3 for socket events
ex0 at cardbus1 dev 0 function 0: 3Com 3c575B-TX Ethernet
ex0: MAC address 00:10:4b:3c:b8:5e
ukphy0 at ex0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x00039c, model 0x0014, rev. 3
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
ex0: interrupting at 10
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
fwohci0 at cardbus0 dev 0 function 0: Texas Instruments TSB12LV23 OHCI 
IEEE 1394
  Host Controller (rev. 0x00)
fwohci0: interrupting at 10
fwohci0: OHCI 1.0, 00:00:00:00:10:00:0f:05, 400Mb/s, 2048 max_rec, 4 
ir_ctx, 8 i
t_ctx
fw0 at fwohci0: 00:00:00:00:10:00:0f:05:0a:02:ff:ff:f0:01:00:00
fwnode0 at fwohci0 Node 0: UID 00:01:8e:a6:00:10:17:5c
fwnode1 at fwohci0 Node 1: UID 00:01:d2:00:e0:09:25:30
fwnode0: Link Speed: 100Mb/s, max_rec: 64 bytes
Called sbp2_abort
uvm_fault(0xc0373f80, 0, 0, 1) -> 0xe