From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 29 16:14:03 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 BFC5F1065679 for ; Fri, 29 Aug 2008 16:14:03 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by mx1.freebsd.org (Postfix) with ESMTP id 8DE098FC08 for ; Fri, 29 Aug 2008 16:14:03 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1238923rvf.43 for ; Fri, 29 Aug 2008 09:14:03 -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=pbnUQof1K6BftnJafoC5Nn8XkEaqG5sB9GepVy/Ayq8=; b=O0GnadM3oB+S9awhVvjSY6VvATxNnWuFmPFY6SK9OT4JqgZzNr853DuuGNjf7C6BoC nSuBpDp02D3fZZ1LrAMv81fw4wX6gtKueCrRsW2p6X6x/nJhwwWlMzTdHbwnPkVvlgKW QkFcRvprJHb5+d+i7o3b+zsNGWayveNqRZ0mQ= 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=B84gIFbN2siPJxxblw+5sKYwIjeiPpPJulUWHFWsqiEud9Gt2nkvzcFwy+jEo5O+lH t9PLHEwC+XCs441Xc00ZxQ+wnr6BL+82+nZGl/+roQWNqrVl7ND1SKmnms+GGrsw7BOW WpXJmqc4SskTkdvzM57PSXvPMHHOfG2V/O1d8= Received: by 10.140.201.1 with SMTP id y1mr1588330rvf.246.1220026443043; Fri, 29 Aug 2008 09:14:03 -0700 (PDT) Received: by 10.140.127.19 with HTTP; Fri, 29 Aug 2008 09:14:03 -0700 (PDT) Message-ID: <3c0b01820808290914s638c970ejeae1d4f8c8c8a9d9@mail.gmail.com> Date: Fri, 29 Aug 2008 12:14:03 -0400 From: "Alexander Sack" To: "Fuujin Networks LLC" In-Reply-To: <48B733CF.5000105@fuujinnetworks.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> 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:14:03 -0000 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); } That will fix the above error. The bad news is that this won't fix your problem since you DID load the 3.3.19 firmware since the next line will get the isp_2300 firmware and things will proceed normally down in isp_reset() (where the load actually happens!). So you really need to enable: options DDB options KDB and get a stack trace so when the machine panics you can do a "bt" and print the output (forget about the addresses, just the function calls). Also make sure the BIOS is configured to enable target mode (I forgot if the 2300 had a separate BIOS tunable for that). Let us know, -aps