From owner-freebsd-current@FreeBSD.ORG Sat Sep 6 10:34:41 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C936116A4BF for ; Sat, 6 Sep 2003 10:34:41 -0700 (PDT) Received: from silver.he.iki.fi (helenius.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8724843FE3 for ; Sat, 6 Sep 2003 10:34:40 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (localhost.he.iki.fi [127.0.0.1]) by silver.he.iki.fi (8.12.9/8.11.4) with ESMTP id h86HYQkO010707; Sat, 6 Sep 2003 20:34:37 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <3F5A1AA2.9060508@he.iki.fi> Date: Sat, 06 Sep 2003 20:34:26 +0300 From: Petri Helenius User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030501 X-Accept-Language: English [en],Finnish [fi] MIME-Version: 1.0 To: Soeren Schmidt , freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: atapicam panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2003 17:34:41 -0000 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 [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