From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 29 16:15:27 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 56ADC1065674 for ; Fri, 29 Aug 2008 16:15:27 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.229]) by mx1.freebsd.org (Postfix) with ESMTP id 237318FC1B for ; Fri, 29 Aug 2008 16:15:26 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1239453rvf.43 for ; Fri, 29 Aug 2008 09:15:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=fyadFowZ6V4g75VP26ExLha/YRIVJduJN+/YnVTpE44=; b=tPoAxQpKUYq1eonbMQLAXQGLL/IQfu+qdgWuAZrfKFLMZPHNkG4WG+uCSgukyGu1es 0+CcYc2TX8mbfW1aK/sQmQsFluIcCO3Rkcp4Jf5fIiijt9UX5Nrf6N6F7FLKPhj3XsKZ AfvvVrwPjG0BNVwJYg5KNWZhxJRW5hw0yUUE0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=sUiOIJ5F95Om3JQ0ExYgKU+P21PwFOlTkotNX5ndHxuj1GTBdlq+SUO+/NbQl+8gSi vd2mfMPWgvEtLij6gBTBfv7vKoyiT8TennuGz9hIIMW+w4NNQfpVRyOQGsS5huA5m4rc LxMbsqp1UJxNL47MO56vMdy/1FFqWhQQ8i8no= Received: by 10.140.172.19 with SMTP id u19mr1627881rve.31.1220026526606; Fri, 29 Aug 2008 09:15:26 -0700 (PDT) Received: by 10.140.127.19 with HTTP; Fri, 29 Aug 2008 09:15:26 -0700 (PDT) Message-ID: <3c0b01820808290915t4e964182y784c215e28977252@mail.gmail.com> Date: Fri, 29 Aug 2008 12:15:26 -0400 From: "Alexander Sack" To: "Fuujin Networks LLC" In-Reply-To: <3c0b01820808290914s638c970ejeae1d4f8c8c8a9d9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48B4CF57.30603@fuujinnetworks.com> <3c0b01820808271520w78d0f338iaf6996774512b5bb@mail.gmail.com> <48B733CF.5000105@fuujinnetworks.com> <3c0b01820808290914s638c970ejeae1d4f8c8c8a9d9@mail.gmail.com> Cc: freebsd-scsi@freebsd.org Subject: Re: Qlogic FC scsi_target ISP2310 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: Fri, 29 Aug 2008 16:15:27 -0000 On Fri, Aug 29, 2008 at 12:14 PM, Alexander Sack wrote: > On Thu, Aug 28, 2008 at 7:25 PM, Fuujin Networks LLC > wrote: >> >> [snip] >> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs >> cpu0 (BSP): APIC ID: 0 >> cpu1 (AP): APIC ID: 1 >> ioapic0: Changing APIC ID to 2 >> ioapic0 irqs 0-23 on motherboard >> registered firmware set >> registered firmware set >> registered firmware set >> registered firmware set >> registered firmware set >> registered firmware set >> registered firmware set >> registered firmware set >> registered firmware set >> registered firmware set >> registered firmware set >> isp0: port 0xc000-0xc0ff mem >> 0xe7103000-0xe7103fff irq 16 at device 8.0 on pci0 >> firmware_get: failed to load firmware image isp_2300_it >> isp0: [ITHREAD] >> isp0: Board Type 2300, Chip Revision 0x1, loaded F/W Revision 3.3.19 >> isp0: target notify code 0x1007 >> isp0: target notify code 0x1007 >> isp0: target notify code 0x1006 >> isp0: target notify code 0x1007 >> isp0: target notify code 0x1008 >> (targbh0:isp0:0:-1:-1): Target Mode Enabled >> isp0: target notify code 0x1007 >> isp0: target notify code 0x1007 >> isp0: target notify code 0x1006 >> isp0: target notify code 0x1007 >> isp0: target notify code 0x1006 >> isp0: target notify code 0x1007 >> [snip] >> >> I'm a bit puzzled by the firmware_get failed line above. I suspect this may >> be the problem, but I have not been able to resolve it. I've tried disabling >> the bios on the FC cards, as well as messing with almost every other >> conceivable option, but the same error appears. Thoughts? > > Yes, its a bug in the ISP driver. If you are in target mode, it tries > to load the isp_XXX_it version of the RISC code. I *think* the old > SCSI cards had two separate firmwares for target and initiator modes > (currently if you look at ispfw, there is the 1040, 1080, and 12160_it > firmwares). > > Try this patch: > > --- isp_pci.c 2008-08-29 07:58:08.000000000 -0400 > +++ isp_pci.c.0 2008-08-29 08:03:24.000000000 -0400 > @@ -1039,7 +1039,7 @@ > } > > isp->isp_osinfo.fw = NULL; > - if (isp->isp_role & ISP_ROLE_TARGET && IS_SCSI(isp)) { > + if (isp->isp_role & ISP_ROLE_TARGET) { > snprintf(fwname, sizeof (fwname), "isp_%04x_it", did); > isp->isp_osinfo.fw = firmware_get(fwname); > } Whoops! Its reversed! --- isp_pci.c.0 2008-08-29 08:03:24.000000000 -0400 +++ isp_pci.c 2008-08-29 07:58:08.000000000 -0400 @@ -1039,7 +1039,7 @@ } isp->isp_osinfo.fw = NULL; - if (isp->isp_role & ISP_ROLE_TARGET) { + if (isp->isp_role & ISP_ROLE_TARGET && IS_SCSI(isp)) { snprintf(fwname, sizeof (fwname), "isp_%04x_it", did); isp->isp_osinfo.fw = firmware_get(fwname); } Sorry about that! -aps