From owner-freebsd-current@FreeBSD.ORG Fri Sep 30 16:48:37 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 3BB7216A41F for ; Fri, 30 Sep 2005 16:48:37 +0000 (GMT) (envelope-from sbruno@miralink.com) Received: from mazo.miralink.com (67.105.142.88.ptr.us.xo.net [67.105.142.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7FCC43D48 for ; Fri, 30 Sep 2005 16:48:36 +0000 (GMT) (envelope-from sbruno@miralink.com) Received: from [10.0.0.210] (unknown [10.0.0.210]) by mazo.miralink.com (Postfix) with ESMTP id E10AA36D12 for ; Fri, 30 Sep 2005 09:48:34 -0700 (PDT) From: Sean Bruno To: freebsd-current@freebsd.org Content-Type: text/plain Date: Fri, 30 Sep 2005 09:48:34 -0700 Message-Id: <1128098914.25701.92.camel@oscar> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit Subject: 4.11 Release Qlogic Driver(isp) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 30 Sep 2005 16:48:37 -0000 I have been attempting to get the isp driver to function in target mode. I see in the man page isp(4) that I can pass the option ISP_TARGET_MODE during compile time of the kernel such that it will function as a target mode driver. However, I don't see any indication that the driver is acting in target mode when I boot the system. dmesg output for isp: isp0: port 0xd800-0xd8ff mem 0xd7000000-0xd7000fff irq 11 at device 9.0 on pci0 isp0: Ultra Mode Capable isp0: Board Type 1040B, Chip Revision 0x5, loaded F/W Revision 7.65.0 isp0: Last F/W revision was 4.53.0 isp0: 124 max I/O commands supported isp0: Initiator ID is 7 on Channel 0 isp0: driver initiated bus reset of bus 0 The next to last line, "Initiator ID is 7 on Channel 0" should have a reference to target mode...I think... I have also added the following 2 entries to /boot/defaults/loader.conf: isp_debug=7 isp_tdebug=5 In addition, I defined ISP_TARGET_MODE in my kernel configuration file like so: options ISP_TARGET_MODE #Support for Qlogic target mode. This causes the contents of opt_isp.h in /usr/src/sys/compile/MYKERNEL/ to have the following entry: #define ISP_TARGET_MODE 1 Which I believe to be correct. opt_isp.h seems to only be included from isp_freebsd.h in /usr/src/sys/dev/isp/ Finally, which is the really strange part, there seems to be no difference in the size of the .o files with or without this define. So I am assuming that I am not compiling the target mode option correctly. Any feedback on this would be greatly appreciated. Sean