Subject: Fwd: FireWire SBP driver problem
To: None <tech-misc@netbsd.org>
From: Rishabh Kumar Goel <rishabh@soc-soft.com>
List: tech-misc
Date: 08/08/2003 10:57:01
----------  Forwarded Message  ----------

Subject: FireWire SBP driver problem
Date: Wednesday 06 Aug 2003 2:36 pm
From: Rishabh Kumar Goel <rishabh@soc-soft.com>
To: haya@netbsd.org

I m working on firewire driver for netbsd 1,6 kernel.
I have downloaded the latest source code form NetBSD Current and inserted it
into the kernel. I have a port of NetBSd 1.6 for TOSHIBA's RBTX4927
processor.

The kernel panics in sbp2_abort function. I m not able to figure it out why 
this kinda problem is coming.
if i bypass the call to sbpfree function in sbpscsi_match then it configures 
the HDD but when i remove the HDD then again the kernel panics and goes into 
debugger.


the dmesg is as below:----
________________________________________________________________

PMON> g
SDCCR0: add 134217728 bytes @ 0x0
[ using 134808 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    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.6K (RBTX4927) #178: Fri Aug  8 10:53:09 UTC 2003
    root@NetBSD:/usr/src/sys/arch/evbmips/compile/RBTX4927
Toshiba RBTX4927
total memory = 128 MB
avail memory = 115 MB
using 1664 buffers containing 6656 KB of memory
mainbus0 (root)
txirc_intr_establish(3, 0x801731ec, 0x0)
cpu0 at mainbus0: 200.00MHz (hz cycles = 781250, delay divisor = 200)
cpu0: Toshiba TX4927 CPU (0x2d22) Rev. 2.2 with built-in FPU Rev. 2.1
cpu0: 32KB/32B 4-way set-associative L1 Instruction cache, 48 TLB entries
cpu0: 32KB/32B 4-way set-associative write-back L1 Data cache
obio0 at mainbus0
dsrtc0 at obio0 addr 0x1c010000
dsrtc0: calibrating CPU clock
Timer calibration: 200002278 cycles/sec [(100001134, 100001145) * 16]
RTC: 1903/8/8 8:06:18
ne0 at obio0 addr 0x1c020280 irq 0x5
ne0: NE2000 (RTL8019) Ethernet
ne0: Ethernet address 00:60:0a:00:44:f9
ne0: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x10] auto
txirc_intr_establish(5, 0x80045508, 0xc0029800)
txbus0 at mainbus0
txbus0: configuring PCI bus
txsio0 at txbus0 addr 0xff1ff300 irq 8
txirc_intr_establish(8, 0x80186944, 0xc000de00)
txsio0: console
txsio1 at txbus0 addr 0xff1ff400 irq 9
txirc_intr_establish(9, 0x80186944, 0xc000dc80)
txaudio at txbus0 addr 0xff1ff700 irq 24,25 not configured
pci0 at txbus0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
ppb0 at pci0 dev 18 function 0: Intel product 0xb152 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
fwohci0 at pci1 dev 4 function 0: Texas Instruments TSB43AA22/A OHCI IEEE 1394 
)
fwohci0: interrupting at PCI-D
fwohci0: OHCI 1.1, 00:02:7a:06:00:00:04:87, 400Mb/s, 2048 max_rec, 4 ir_ctx, 8 
x
fwohci1 at pci1 dev 8 function 0: Texas Instruments TSB43AA22/A OHCI IEEE 1394 
)
fwohci1: interrupting at PCI-D
fwohci1: OHCI 1.1, 00:02:7a:06:00:00:04:88, 400Mb/s, 2048 max_rec, 4 ir_ctx, 8 
x
root device: ne0
dump device:
file system (default generic):
root on ne0
mountroot: trying nfs...
nfs_boot: trying DHCP/BOOTP
fwohci0: Config ROM:
    0404e32f 31333934 6000a002 00027a06 00000487 00042236 0300005e 81000003
    0c0083c0 d1000006 00049b20 00000000 00000000 4e657442 53440000 0005635c
    1200005e 81000004 13000001 81000006 95000009 0003c150 00000000 00000000
    49414e41 0003170d 00000000 00000000 49507634 0004127c 0000ffff f0010001
    0000ffff f0010000
fwohci1: Config ROM:
    040412c0 31333934 6000a002 00027a06 00000488 00042236 0300005e 81000003
    0c0083c0 d1000006 00049b20 00000000 00000000 4e657442 53440000 0005635c
    1200005e 81000004 13000001 81000006 95000009 0003c150 00000000 00000000
    49414e41 0003170d 00000000 00000000 49507634 0004127c 0000ffff f0010001
    0000ffff f0010000
fwohci0: nodeid=0xffc0(0), rootid=0, irmid=63
fwohci1: nodeid=0xffc1(1), rootid=2, irmid=63
fwnode0 at fwohci1 Node 0: UID 00:02:c0:00:05:21:05:50
********BACK to NODE**********IN CONFIGROM INPUT
^^^^^^^AB->AB_RETLEN:4 AB->AB_LENGTH:4 ^^^^^^^^^

^^^^^^^AB->AB_RETLEN:1 AB->AB_LENGTH:4 ^^^^^^^^^
IN CONFIGROM INPUT
^^^^^^^AB->AB_RETLEN:C4 AB->AB_LENGTH:C4 ^^^^^^^^^

^^^^^^^AB->AB_RETLEN:31 AB->AB_LENGTH:C4 ^^^^^^^^^
VAL: 7

ROMLEN:3

fwnode0: Link Speed: 400Mb/s, max_rec: 64 bytes

******IIIIIIMMMMMMMMHHHHHEEEEERRRRRREEE********

This is where i m

 This is where i will die
trap: TLB miss (load or instr. fetch) in kernel mode
status=0xff03, cause=0x8, epc=0x80055448, vaddr=0x0
pid=3 cmd=fwohci1 usp=0x0 ksp=0xca551b90
Stopped in pid 3 (fwohci1) at   sbp2_abort+0x20:        lw      v0,68(a0)
db> t
sbp2_abort+20 (0,d,0,0) ra 800543ac sz 32
sbp2_free+78 (0,d,0,0) ra 8015a8a8 sz 40
8015a800+a8 (0,d,0,0) ra 800cc4b0 sz 40
800cc42c+84 (0,d,0,0) ra 800cc744 sz 32
config_search+bc (0,d,0,0) ra 800cc868 sz 64
config_found_sm+30 (0,d,0,0) ra 80052ebc sz 32
p1212_match_units+8c (0,d,0,0) ra 8015a6b4 sz 48
8015a268+44c (0,d,0,0) ra 8015493c sz 40
80154608+334 (0,d,0,0) ra 8014f0d8 sz 192
8014efe0+f8 (0,d,0,0) ra 8014aca4 sz 192
8014a6a4+600 (0,d,0,0) ra 0 sz 64
User-level: pid 3
db>

________________________________________________________________
-- 
Regards,
Rishabh Kumar Goel
Associate Software Engineer
SoCrates Software India Pvt. Ltd.
Bangalore

Scanned by SecureSynergy VirusScreen Service. 
For more information log on to : http://www.securesynergyonline.com or http://www.securesynergy.com