From owner-freebsd-scsi@FreeBSD.ORG Thu Aug 28 17:34:19 2008 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DB821065683 for ; Thu, 28 Aug 2008 17:34:19 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 30E7A8FC17 for ; Thu, 28 Aug 2008 17:34:19 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 425A51A9171 for ; Thu, 28 Aug 2008 10:24:47 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599] Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zHUI+plGCU6Z for ; Thu, 28 Aug 2008 10:24:46 -0700 (PDT) Received: from [10.0.0.40] (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id D99C91A90BA for ; Thu, 28 Aug 2008 10:24:46 -0700 (PDT) Message-ID: <48B6E19A.7050603@miralink.com> Date: Thu, 28 Aug 2008 10:34:18 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [ISP] QLA2432 Target Mode Broken X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2008 17:34:19 -0000 I tried putting a 2432 into target mode this week and noted that the system threw a pretty nice panic and thought I would post the output here. Reviewing the 4G documentation from Qlogic, it looks like they've substantially changed the target mode interface, so I'm not surprised that there's some work to do. If anyone has any patches they'd like me to test, I'm open to integration: isp0: port 0x2000-0x20ff mem 0xe8300000-0xe8303fff irq 16 at device 0.0 on pci4 isp0: setting role to 0x0 for unit 0 isp0: [GIANT-LOCKED] isp0: Polled Mailbox Command (0x8) Timeout (100000us) isp0: Board Type 2422, Chip Revision 0x2, loaded F/W Revision 4.0.20 isp1: port 0x2400-0x24ff mem 0xe8304000-0xe8307fff irq 17 at device 0.1 on pci4 isp1: setting role to 0x2 for unit 1 isp1: [GIANT-LOCKED] isp1: Polled Mailbox Command (0x8) Timeout (100000us) isp1: Board Type 2422, Chip Revision 0x2, loaded F/W Revision 4.0.20 ... isp0: Board Type 2422, Chip Revision 0x2, resident F/W Revision 4.0.20 isp0: Board Type 2422, Chip Revision 0x2, loaded F/W Revision 4.0.20 (odbp0:isp0:0:4:0): Target Mode Enabled (odbp0:isp0:0:4:0): ENABLE LUN returned 0x0 (lun 0) (odbp0:isp0:0:4:0): enable lun CCB rejected, status 0x4 enable lun failed, status 0x4 targinit: targenlun failed with status 0x4 Aug 28 02:06:46 kernel: B-Srch failed to find head/tail Aug 28 02:06:46 kernel: Loop counter at max, aborting. Aug 28 02:06:46 kernel: Targinit was not successfull, TheSoftc == NULL isp0: target notify code 0x1007 Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0xc0546709 stack pointer = 0x28:0xe7a2fb90 frame pointer = 0x28:0xe7a2fb90 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 21 (irq16: bge0 isp0++) [db> trace Tracing pid 21 tid 100023 td 0xc651e780 isp_get_hdr(c6544000,0,e7a2fbe4) at isp_get_hdr+0x9 isp_intr(c6544000,801d,0,0) at isp_intr+0x264 isp_pci_intr(c6544000) at isp_pci_intr+0x6f ithread_execute_handlers(c651d430,c644e500) at ithread_execute_handlers+0xe6 ithread_loop(c6542070,e7a2fd38,c6542070,c05e1f68,0,...) at ithread_loop+0x66 fork_exit(c05e1f68,c6542070,e7a2fd38) at fork_exit+0xa0 fork_trampoline() at fork_trampoline+0x8 --- trap 0x1, eip = 0, esp = 0xe7a2fd6c, ebp = 0 --- -- Sean Bruno MiraLink Corporation 6015 NE 80th Ave, Ste 100 Portland, OR 97218 Phone 503-621-5143 Fax 503-621-5199 MSN: sbruno@miralink.com Google: seanwbruno@gmail.com Yahoo: sean_bruno@yahoo.com