atapicam panic

Petri Helenius pete at he.iki.fi
Sat Sep 6 10:34:41 PDT 2003


Atacontrol detach / attach seems to panic if atapicam is complied in the 
kernel.
Should this work or is the work to port this to ATAng still undergoing?

This is current from four days ago, just after Soren's ar DMA size commit.

# atacontrol detach 4
ad8: deleted from ar0 disk1
ar0: WARNING - mirror lost
GEOM: destroy disk ad8 dp=0xc25f4e70
ad8: WARNING - removed from configuration
# atacontrol attach 4
GEOM: create disk ad8 dp=0xc2746870
ad8: 76319MB <WDC WD800JB-00CRA1> [155061/16/63] at ata4-master UDMA100
panic: mutex Giant not owned at ../../../dev/ata/atapi-cam.c:117
Debugger("panic")
Stopped at      Debugger+0x54:  xchgl   %ebx,in_Debugger.0
db> trace
Debugger(c03b00f0,c04142a0,c03af7c7,cd690a58,100) at Debugger+0x54
panic(c03af7c7,c03af902,c039de55,75,0) at panic+0xd5
_mtx_assert(c04125e0,1,c039de55,75,10) at _mtx_assert+0xec
atapi_cam_attach_bus(c2588a00,c24f3980,602,c0150480,c2588a00) at 
atapi_cam_attach_bus+0x37
ata_attach(c258b000,0,c039bb88,14b,0) at ata_attach+0x168
ata_ioctl(c040e870,c4546101,c282d800,3,c0eb0d10) at ata_ioctl+0x457
spec_ioctl(cd690b7c,cd690c28,c027f2f1,cd690b7c,c02105dd) at spec_ioctl+0x19e
spec_vnoperate(cd690b7c,c02105dd,c0415920,1,c03fc720) at spec_vnoperate+0x18
vn_ioctl(c26d3484,c4546101,c282d800,c2812780,c0eb0d10) at vn_ioctl+0x1a1
ioctl(c0eb0d10,cd690d10,c03c6e36,3eb,3) at ioctl+0x475
syscall(2f,2f,2f,805f2b7,bfbffd2a) at syscall+0x273
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (54, FreeBSD ELF32, ioctl), eip = 0x8049a3f, esp = 
0xbfbff76c, ebp = 0xbfbffc18 ---
db>

Pete




More information about the freebsd-current mailing list