From nobody Thu Jul 27 09:39:38 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RBQjN2wRtz4pWjN for ; Thu, 27 Jul 2023 09:40:08 +0000 (UTC) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from mailhost.frm2.tum.de (mailhost.frm2.tum.de [IPv6:2001:4ca0:2403::81bb:b30c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mailhost.frm2.tum.de", Issuer "DFN-Verein Global Issuing CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RBQjL5qRmz42V6 for ; Thu, 27 Jul 2023 09:40:06 +0000 (UTC) (envelope-from Joerg.Pulz@frm2.tum.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=frm2.tum.de header.s=s2048 header.b=KpRgxksq; spf=pass (mx1.freebsd.org: domain of Joerg.Pulz@frm2.tum.de designates 2001:4ca0:2403::81bb:b30c as permitted sender) smtp.mailfrom=Joerg.Pulz@frm2.tum.de; dmarc=pass (policy=none) header.from=tum.de Received: from mailhost.frm2.tum.de (localhost [127.0.0.1]) by mailhost.frm2.tum.de (8.17.1/8.15.2) with ESMTP id 36R9duhK094853; Thu, 27 Jul 2023 11:39:56 +0200 (CEST) (envelope-from Joerg.Pulz@frm2.tum.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=frm2.tum.de; s=s2048; t=1690450796; bh=MF9Y+kePcZLuRfONU5QfAyl/7QIAgJzPzorsqBxhT5E=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=KpRgxksqDt0BAsv8lE0U8Ek6BtYosfI4Z2afIkgs6TWZkielz+HWM873OXJVoWHZw wdvVIQIOjgU6hoFERbsFpv925wmKyD7ah8HuC94Jh5ZgDyRqOHIYZbdfn4MmcbEnQ1 ASxrh/8Q8qx10NH+GaQr5K3agI6/waCWz6dQl1vXxalYmDXq6vnyEsxtAwXeBPJvcG 47jWEVN1O6yJ9LD1MIzZWZ1Mb05THTwS2RQV7APp/eaBJUCirSG+os2xUI0ckRq+NQ sOSdw9NcJ2xdGph7A/RWSQDtMMmKLcX6mr/7i/y3PMyZMTk2WBgyLPeXiFi7PGxlXX kFMeG47Fcew6Q== X-Virus-Scanned: at mailhost.frm2.tum.de Received: from hades.admin.frm2.tum.de (hades.admin.frm2.tum.de [172.25.1.10]) (authenticated bits=0) by mailhost.frm2.tum.de (8.17.1/8.15.2) with ESMTPSA id 36R9dc0W094831 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 11:39:54 +0200 (CEST) (envelope-from Joerg.Pulz@frm2.tum.de) Date: Thu, 27 Jul 2023 11:39:38 +0200 (CEST) From: Joerg Pulz To: Brian McGovern cc: questions@freebsd.org Subject: Re: isp support for QLogic 2722/firmware? In-Reply-To: Message-ID: <6on92p68-rpq2-594p-8q5s-979ns8p12653@sez2.ghz.qr> References: <5cf2f487-a5d2-55b7-49df-51690ac22412@aetern.org> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="2686833722-1682675635-1690450794=:21613" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (mailhost.frm2.tum.de [129.187.179.12]); Thu, 27 Jul 2023 11:39:54 +0200 (CEST) X-Spamd-Result: default: False [-5.68 / 15.00]; SIGNED_SMIME(-2.00)[]; DWL_DNSWL_LOW(-1.00)[tum.de:dkim]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.86)[-0.856]; NEURAL_HAM_MEDIUM(-0.73)[-0.727]; DMARC_POLICY_ALLOW(-0.50)[tum.de,none]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_DKIM_ALLOW(-0.20)[frm2.tum.de:s=s2048]; R_SPF_ALLOW(-0.20)[+ip6:2001:4ca0:2403::81bb:b30c]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TAGGED_RCPT(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; HAS_ATTACHMENT(0.00)[]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:12816, ipnet:2001:4ca0::/32, country:DE]; DKIM_TRACE(0.00)[frm2.tum.de:+]; FREEMAIL_TO(0.00)[gmail.com]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org] X-Rspamd-Queue-Id: 4RBQjL5qRmz42V6 X-Spamd-Bar: ----- --2686833722-1682675635-1690450794=:21613 Content-Type: text/plain; charset=US-ASCII; format=flowed On Wed, 26 Jul 2023, Brian McGovern wrote: > >> I'm curious if anyone has this working, and if so, any chance I can >>> obtain the firmware or process you are using? I'm hoping its something >>> like flashing an image to the card with some other OS first. TIA > >> Support for this (and some other newer HBAs) was added recently to >> 14-CURRENT, see latest commits in >> https://cgit.freebsd.org/src/log/sys/dev/isp > . > > Its getting late locally, so take this with a grain of salt... I'm pretty > sure I grabbed the main branch from git, and effectively did a MFC (working > with 13.2-RELEASE). Looking at the diffs you pointed me to vs. whats on the > disk, it looks like I have the latest bits, but I'll check it again > tomorrow to be sure. Its possible I'm missing something. > > The problem is consistent. When the adapters try to come up, and I'm using > them as kernel modules right now just so I can cycle through testing > faster, I continue to get > > "isp_2700 could not load firmware image, error 2" > > if I don't hack up the ispfw driver/module to have something that meets the > name requirements for "isp_2700" firmware. > > and if I try to create a firmware module it can install with the > bk014519.bin firmware file, it'll happily find something for firmware, but > then throws a: > isp0: Mailbox Command (0xb) Timeout (100000us) (isp_reset:373) > isp0: Mailbox Command 'LOAD RISC RAM' failed (TIMEOUT) > isp0: F/W download failed > isp0: isp_reinit: cannot reset card > device_attach: isp0 attach returned 6 > > So, what I think is missing is either a.) finding a good firmware image > that I can load via the driver, or b.) figuring out how to flash firmware > to the adapter via some other means, and figure out how to skip the load > step when the driver starts. Hence why I'm hoping to find someone who has > the card working, so I can clone their process. > > But, if anyone has other ideas, I'm all ears. > > -Brian > > On Wed, Jul 26, 2023 at 8:55?PM Yuri wrote: > >> Brian McGovern wrote: >>> Quick question about the isp and card support. I have an HPE branded >>> Qlogic ISP 2722 that I'm trying to bring online. Following the various >>> tutorials I loaded ispfw, then the isp driver. I got an error message >>> "isp_2700 could not load firmware image, error 2". The boards don't come >>> online. >>> >>> Looking at the man page, it appears supported on the Qlogic >>> 2740/2742/2764 (aka 2722/2714) line, so I tried to chase down some >>> firmware and duplicate the isp_2400 and isp_2500 functionality with the >>> .bin file. Now, it tries to load but I get a firmware loading failure. >>> I'm assuming that either current versions and .bin files are >>> incompatible with the other loading processes, or I just screwed >>> something up in all the translation (I found a bk014519.bin file). >>> >>> I'm curious if anyone has this working, and if so, any chance I can >>> obtain the firmware or process you are using? I'm hoping its something >>> like flashing an image to the card with some other OS first. TIA >> >> Support for this (and some other newer HBAs) was added recently to >> 14-CURRENT, see latest commits in >> https://cgit.freebsd.org/src/log/sys/dev/isp. Those HBAs are supported since 2018-02-28. So support for them is in 13.2 - I have systems running with those: # uname -r 13.2-RELEASE # dmesg -a |grep isp isp0: mem 0x93302000-0x93302fff,0x93300000-0x93301fff,0x93200000-0x932fffff at device 0.0 on pci1 # sysctl dev.isp.0 dev.isp.0.%pnpinfo: vendor=0x1077 device=0x2261 subvendor=0x1077 subdevice=0x029b class=0x0c0400 dev.isp.0.%driver: isp dev.isp.0.%desc: Qlogic ISP 2722 PCI FC Adapter Recent changes in CURRENT are for the next gen HABs (28XX) and FLT/NVRAM handling, so no need to backport anything. There is no firmware for those HBAs included in ispfw(4) and there is no need for it. You should not try to simply add firmware to ispfw(4) without knowing how the driver has to load it into the HBA. The isp(4) driver checks for firmware availability by itself. For your HBA the firmware is loaded by isp(4) from the HBAs flash. If this is not working than the firmware on your HBAs flash may be broken and should be reflashed. Without further information it is hard to guess what's happening. You should: - revert everything to a clean 13.2-RELEASE - provide verbose pciconf(8) output for your HBA - set isp(4) debug level using kenv(8) # kenv hint.isp.0.debug=0x3f - load isp(4) # kldload isp - provide dmesg(8) output for isp(4) load/attach Joerg -- The beginning is the most important part of the work. -Plato --2686833722-1682675635-1690450794=:21613 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: BASE64 Content-Description: S/MIME Cryptographic Signature Content-Disposition: attachment; filename=smime.p7s MIIK8wYJKoZIhvcNAQcCoIIK5DCCCuACAQExDzANBglghkgBZQMEAgEFADAL BgkqhkiG9w0BBwGgggdKMIIHRjCCBS6gAwIBAgIRAPbF0FqkCfgJVL93Ywop ZXswDQYJKoZIhvcNAQEMBQAwRjELMAkGA1UEBhMCTkwxGTAXBgNVBAoTEEdF QU5UIFZlcmVuaWdpbmcxHDAaBgNVBAMTE0dFQU5UIFBlcnNvbmFsIENBIDQw HhcNMjMwNjIxMDAwMDAwWhcNMjYwNjIwMjM1OTU5WjCBrzEOMAwGA1UEERMF ODAzMzMxKTAnBgNVBAoTIFRlY2huaXNjaGUgVW5pdmVyc2l0YWV0IE11ZW5j aGVuMRgwFgYDVQQJDA9BcmNpc3N0cmHDn2UgMjExDzANBgNVBAgTBkJheWVy bjELMAkGA1UEBhMCREUxEzARBgNVBAMTCkpvZXJnIFB1bHoxJTAjBgkqhkiG 9w0BCQEWFkpvZXJnLlB1bHpAZnJtMi50dW0uZGUwggIiMA0GCS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