From nobody Thu Jul 27 02:13:19 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 4RBDp56tsWz4p36N for ; Thu, 27 Jul 2023 02:13:33 +0000 (UTC) (envelope-from rogan.mcgovern@gmail.com) Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RBDp54vWzz4Hqr for ; Thu, 27 Jul 2023 02:13:33 +0000 (UTC) (envelope-from rogan.mcgovern@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-9891c73e0fbso82852166b.1 for ; Wed, 26 Jul 2023 19:13:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690424011; x=1691028811; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZhJECrVK3pMZsovCKDzjUl4gk5DgWUBtgFf0TvLSrDs=; b=Wlj4qxJpbJZsQtPuvb+7sOFP5egvLdVISBzbdZQfu6CU6ol78SJtJAH1ZPjSlMjTQy FEqnAfgQWdxFpsd1H8BeJv1S9uWB5116NZMfGyQ/aPxR2+6LY0GxQ+8aA2lTWgyQGX+D s7y4+ds9NzAofuFRNlqm3FVepptnCKNzE/CSSEgaRsSK5D5MPildAfDdZQE2IYPoX8Q0 4DhNnnv3ZIVkRl8AWkcGqlWDP8ayA0BOMMSb0oKfPQrHjxVv4Zgnb3FectZJWdC1tW8+ Ka7luri7CB0l31ly9irmwMqstyIHGigcrzL3+Lm50d1p5PaMAWL0qVGRNlf9ogv+iHBl izNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690424011; x=1691028811; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZhJECrVK3pMZsovCKDzjUl4gk5DgWUBtgFf0TvLSrDs=; b=dwYcJ63aiavyJ0n1n6uAJ3rIOiFtzYQFaXpiQbR0ryanedzaloeudZzlI2Q+lwZs+n kSoFwa+rNF91nHMffvG4wU3tebCzA+UmR9G/e9akmszIwbZ0I70CoPHnUxoqr6o6SQA4 XHL39sPJoNUXwgZqTEQjZN0lkdRtcYvVoda7leB0JsFKuOP7pZnjobEP2UpXg2CzFQ3q 2n1t+6lDusFFwAV/+eHHA9pYGV9b2K3W9AzRjpQ4/MJTR3mB4PDPC4REnfG8IyrqChAe Bw5EEpVc9JaBXsovUiNmOOzb8RKeaIJKvn4DAn0RDr8Lv8qmun7KKLLghEAcS9oXvFh/ nGRA== X-Gm-Message-State: ABy/qLb1MSuLxQc/ev/BcwRt9g+7L2fngPJTuIFbe/xl+k0yWoZ+hrHa HG9OmDWAvSqzPGaIZgTtTwGpVIz1ospqQ0K9heLUo691Dyg= X-Google-Smtp-Source: APBJJlGQvGJ1XwN+MlqpSMjsatQzfHFdyneY1ow+NWjknfbBm+JNCvy68BNq59oUbxCvxpnv3erkljIM595sMEKrvKg= X-Received: by 2002:a17:907:a075:b0:99b:4bab:2841 with SMTP id ia21-20020a170907a07500b0099b4bab2841mr806522ejc.26.1690424010746; Wed, 26 Jul 2023 19:13:30 -0700 (PDT) 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 References: <5cf2f487-a5d2-55b7-49df-51690ac22412@aetern.org> In-Reply-To: <5cf2f487-a5d2-55b7-49df-51690ac22412@aetern.org> From: Brian McGovern Date: Wed, 26 Jul 2023 22:13:19 -0400 Message-ID: Subject: Re: isp support for QLogic 2722/firmware? To: Yuri Cc: questions@freebsd.org Content-Type: multipart/alternative; boundary="000000000000ae305106016e8207" X-Rspamd-Queue-Id: 4RBDp54vWzz4Hqr X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --000000000000ae305106016e8207 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable >> 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=E2=80=AFPM 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 com= e > > 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. > > --000000000000ae305106016e8207 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>> I'm curious if anyone has this workin= g, and if so, any chance I can
>> obtain the firmware or process you are using? I'm hoping its s= omething
>> 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


The problem is consisten= t. When the adapters try to come up, and I'm using them as kernel modul= es right now just so I can cycle through testing faster, I continue to get<= /div>

"isp_2700 could not load firmware image, erro= r 2"

<= span class=3D"gmail-im">if I don't hack up the ispfw driver/module to h= ave something that meets the name requirements for "isp_2700" fir= mware.

and if I try to create a firmwa= re module it can install with the bk014519.bin firmware file, it'll hap= pily find something for firmware, but then throws a:
isp0: Mailbo= x Command (0xb) Timeout (100000us) (isp_reset:373)
isp0: Mailbox = Command 'LOAD RISC RAM' failed (TIMEOUT)
isp0: F/W downlo= ad failed
isp0: isp_reinit: cannot reset card
device_at= tach: isp0 attach returned 6

So, what I think is m= issing 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 o= ther 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 c= an clone their process.

But, if anyone has other i= deas, I'm all ears.

=C2=A0=C2=A0=C2=A0=C2=A0 -= Brian

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 var= ious
> tutorials I loaded ispfw, then the isp driver. I got an error message<= br> > "isp_2700 could not load firmware image, error 2". The board= s 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 th= e
> .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 ca= n
> obtain the firmware or process you are using? I'm hoping its somet= hing
> 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.

--000000000000ae305106016e8207--