From nobody Mon Aug 21 15:39:09 2023 X-Original-To: bugs@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 4RTxV61L5Yz4qwYh for ; Mon, 21 Aug 2023 15:39:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RTxV55gR3z4Kf0 for ; Mon, 21 Aug 2023 15:39:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692632349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8IRDiATWFXQHls7ZFNA7sqEQC6KDoDqU8DIsfczdpjE=; b=Zxm45LpyZl9PQ/dxv6jBce6IKUl5t/q/+q4YF92chQUDerNrPyRugCOwoGQE+dMnoF3fU5 jLPUQJ2qJhO3MrS+Sf6dk9ZKKQHKGvcG0z8afwrLGylhkw+OfVX2a8DtSLA0HuUPm2zQgb gBd/wrJcnDTDMeZWNhVQWSiO0khXEOwlbkRzW+rWp/vlpE5KmORaovTVWkk/AFBE4GT4X6 tMPoMHnlir1/0IhN1NRiL+Bax6V5ckfViipyMoDLtbM0PWFkM48uwbuQHzZX5Aj0CR3ldZ YP1WsPnT3/YDECPgSspdf0SWM2jmCiP/5K7m7K6XtkSgwUxcUtoRMKXNttkvrw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692632349; a=rsa-sha256; cv=none; b=OYhdjVfAChlUafJTqvvvvcIVHUOTVGD/CQIxgcwWHY2XpXXVZJHAkwlUM5pB6qWr63TX9p 0OWg3DXU8V47KOFkgoI6TnnosxTI4l7RwcrMZcTlm6aseeZENsAW4zvn6QXeQGCtkposgK omPRJ9hwbsjxToERol6PTTdG8eyFwTWZFAPeA/JdmthrawkJSxZ8xtpqRPE3+7A23Qv5M9 XPcEpmu07iNI+RPEeuM/9/FMrYyTmkI6W+q9E4c3AMBiDatLxjLLEjkImkkqzGqaLMM0AM Y43uRXd+JxK2lbboz5MTvjdQBf8t/ZWXqbs6kHxX5H6tJhwzNDD4t4vAr4iObA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RTxV54f0vzBK2 for ; Mon, 21 Aug 2023 15:39:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 37LFd9X5001535 for ; Mon, 21 Aug 2023 15:39:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37LFd90S001534 for bugs@FreeBSD.org; Mon, 21 Aug 2023 15:39:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 273263] isp(4): 32Gbit Qlogic cards do not work Date: Mon, 21 Aug 2023 15:39:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: vermaden@interia.pl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273263 Bug ID: 273263 Summary: isp(4): 32Gbit Qlogic cards do not work Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: vermaden@interia.pl Created attachment 244253 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D244253&action= =3Dedit DEBUG_WITH_ISPFW.tar.gz TL;DR This will be quite long bug report so to summarize it: 32 Gbit/s Qlogic cards does not work with isp(4) driver on Lenovo ThinkSyst= em SR665 system. We have tried everything and still are not able to make them work: - we tried internal card firmware - we tried FreeBSD firmware with ISPFW=3D"YES" - we tried CUSTOM kernel with ISP_TARGET_MODE - we tried 13.2-RELEASE and 13.2-STABLE and 14.1-ALPHA1 (and earlier 14.x series) and TrueNAS - UEFI boot - legacy CSM/BIOS boot Automatic switching the Qlogic card to initiator mode during kernel boot le= ads to a detachment of the card (can be prevented with ISP_TARGET_MODE kernel option). Switching the card with sysctl dev.isp.X.role=3D2 shows: - Mailbox Command 'INIT FIRMWARE' failed (HOST INTERFACE ERROR) ... and does not bring the card online. Now ... According to isp(4) following cards are supported: - Qlogic 2740/2742/2764 (aka 2722/2714) Optical 32Gb Fibre Channel PCIe cards. The cards we have itself identify in BIOS as QLE2742 model. FreeBSD sees them as 2722 model: (maybe that is the root cause but we do nt know) isp0: mem 0x60170105000-0x60170105fff,0x60170102000-0x60170103fff,0x60170000000-0x601= 700fffff irq 248 at device 0.0 numa-domain 1 on pci29 isp0@pci0:129:0:0: class=3D0x0c0400 rev=3D0x01 hdr=3D0x00 vendor=3D0= x1077 device=3D0x2261 subvendor=3D0x1077 subdevice=3D0x02b3 vendor =3D 'QLogic Corp.' device =3D 'ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter' class =3D serial bus subclass =3D Fibre Channel The Qlogic cards have firmware version 8.07.00 (2017). The firmware which is installed on the card is: isp0: Board Type 2700, Chip Revision 0x1, resident F/W Revision 8.8.231 One of errors: isp0: Internal Firmware Error @ RISC Address 0xf9c2 !!! I will attach each group of logs as separate attachment to make it more readable: - WITHOUT_ISPFW.tar.gz - WITH_ISPFW.tar.gz - DEBUG_WITHOUT_ISPFW.tar.gz - DEBUG_WITH_ISPFW.tar.gz We're not sure whether the firmware upload to the card works and do not understand the kernel message in verbose mode as we have two 2742 cards bui= lt into the system. I hope that would organize the bug report more. Thanks in advance for any help. Regards, vermaden --=20 You are receiving this mail because: You are the assignee for the bug.=