From nobody Wed May 03 07:43:29 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 4QB8822xvWz493KV for ; Wed, 3 May 2023 07:43:30 +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 4QB8821pnJz4Y4W for ; Wed, 3 May 2023 07:43:30 +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=1683099810; 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: in-reply-to:in-reply-to:references:references; bh=+jj2KkgRjZL8EP8r2xCKrIZcZZcftRh4ZRaFvgbtDns=; b=FpT3WDpxBRVdT/QrTHep5teYOo37wIoCwIpuUz8nL+UlS2Amasq/QUbs1hUDhK/GlVwAvM NxYVkQn91RXF7E6sLI0CMgkARv96ic5bUteRMZeiQ4UBdt26zCIv4muWbeLKUfbBRi/LmG 8+GgFG7cQAIrg0dv8Olf5Y38UqRvMnp74TEaiLWkIirqT5mdbGydqGGorGF96E04Ctu+9Q Td8LEfnWUS8ZQ7rhhRCqqfqyU5r4bSOJ5vI9bIRphYNZMo15DqaKeTqaOmT6QWEHBAJEZd g8PBparja/QZqnSjTQnrx2S1q1p1CGnCZe7g/X/5tdTkxxRqFyqTI0xjeTeUJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683099810; a=rsa-sha256; cv=none; b=f/lqAcYQaMGCF8dDSgVJBvuXp+Zlk8fyYo0XQTuoNJ9Ju93AXp59hejwyA9jv6AuGI1Ef6 gv8rLA8Pezt9r9aFDKXQx3BiO0AOZDWrdlwEH8huDptIiAleIGFuimYweJJxtWtQh8jy99 7RseGdNqT9MRKMs0M5F4GVmDHJaWJBZhroDba9BTriBBe1lKIkBipfw4ZZP4VcULcr1wZ6 RDe9fXqKygdw0BgsZMikow79ED/0gonQI4w/RUSoNFIcjpNudy8BN5WeH/5wEbJ3o2u93Z 8zVuwbRisYCbDT+wYH/5q2SVohbu1rKEvzULw0OlOoMmGKrRpYW5RKqoXFRsOw== 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 4QB8820vHfzMdD for ; Wed, 3 May 2023 07:43:30 +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 3437hUXx039942 for ; Wed, 3 May 2023 07:43:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3437hUji039941 for bugs@FreeBSD.org; Wed, 3 May 2023 07:43:30 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 271062] add support for 28xx based device to isp(4) Date: Wed, 03 May 2023 07:43:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: Joerg.Pulz@frm2.tum.de X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271062 Joerg Pulz changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #241908|0 |1 is obsolete| | --- Comment #11 from Joerg Pulz --- Created attachment 241948 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D241948&action= =3Dedit patch v5 for CURRENT and RELENG-13.2 Use the FLT on all supported controllers but explicit leave the 26xx ones i= s. The 26xx are a bit special as those are known as 83xx (2031 and 8031 for re= al). I don't have such a device around so i will investigate the 26xx later. Cosmetics: - rename functions and defines as they are no longer specific to 28xx - set reasonable log levels - sort FLT and NVRAM functions (in the order they are used) Tested and approved to work on real hardware with: - Qlogic ISP 2532 (QLogic QLE2562 8Gb 2Port FC Adapter) - Qlogic ISP 2722 (QLogic QLE2690 16Gb FC Adapter) - Qlogic ISP 2812 (QLogic QLE2772 32Gbit 2Port FC Adapter) dmesg(8) debug outputs (slightly stripped to the most important parts) for Qlogic ISP 2532 (QLogic QLE2562 8Gb 2Port FC Adapter) ----- isp0: port 0x8200-0x82ff mem 0xb8a04000-0xb8a07fff,0xb8900000-0xb89fffff at device 0.0 numa-domain 0 on = pci9 isp0: loaded firmware isp_2500 isp0: set PCI line size to 16 from 0 isp0: set PCI latency to 64 isp0: Board Type 2532, Chip Revision 0x2, resident F/W Revision 8.7.0 isp0: Attributes: Class2 MultiID T10CRC MQ MSIX VP0_Decoupling NPMOFF isp0: 2048 max I/O command limit set isp0: request area @ 0x1f7e56000/0x80000 isp0: response area @ 0x1f7ed6000/0x10000 isp0: FLTL[DEF]: 0x50400 isp0: FLT[DEF]: version=3D0x1 length=3D0x290(656) checksum=3D0xb62a isp0: FLT[DEF]: regions=3D40 isp0: FLT[FLT]: boot=3D0x0 fw=3D0x20000 vpd_nvram=3D0x48000 vpd=3D0x48000 n= vram 0x48080 fdt=3D0x50000 flt=3D0x50400 npiv=3D0x5c000 fcp_prif_cfg=3D0x3c000 isp0: NVRAM 0x0000000000000000 0x21000024ff3f6fc8 maxframelen 2048 isp0: NVRAM loopid 0 fwopt1 0x2006 fwopt2 0x20 fwopt3 0x4008 isp0: Chan 0 0x20000024ff3f6fc8/0x21000024ff3f6fc8 Role Initiator isp0: Setting ICB Node 0x20000024ff3f6fc8 Port 0x21000024ff3f6fc8 isp0: isp_init: fwopt1 0x6006 fwopt2 0x1020 fwopt3 0x402a isp0: isp_init: rqst 00000001f7e56000 rsp 00000001f7ed6000 isp0: isp_init: isp0: 0x00000000: 01 00 00 00 00 08 ff ff 00 00 00 00 21 00 00 24 isp0: 0x00000010: ff 3f 6f c8 20 00 00 24 ff 3f 6f c8 00 00 00 00 isp0: 0x00000020: 03 00 00 00 00 04 00 20 00 00 00 00 00 60 e5 f7 isp0: 0x00000030: 01 00 00 00 00 60 ed f7 01 00 00 00 00 00 00 00 isp0: 0x00000040: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 isp0: 0x00000050: 00 00 00 00 00 00 00 00 00 00 0a 00 06 60 00 00 isp0: 0x00000060: 20 10 00 00 2a 40 00 00 00 00 00 00 00 00 00 00 isp0: 0x00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 isp0: INIT F/W from 000000011186e000 ----- for Qlogic ISP 2722 (QLogic QLE2690 16Gb FC Adapter) ----- isp0: mem 0xb8902000-0xb8902fff,0xb8900000-0xb8901fff,0xb8800000-0xb88fffff at device= 0.0 numa-domain 0 on pci9 isp0: set PCI line size to 16 from 0 isp0: set PCI latency to 64 isp0: loading firmware from flash isp0: Board Type 2700, Chip Revision 0x1, resident F/W Revision 8.8.231 isp0: Attributes: Class2 MultiID T10CRC MQ MSIX VP0_Decoupling HotFW EXMOFF NPMOFF DIFCHOP ASICTMP ATIOMQ (unknown 0x0000020078020000) isp0: 2048 max I/O command limit set isp0: request area @ 0x578e21000/0x80000 isp0: response area @ 0x578ea1000/0x10000 isp0: FLTL[DEF]: 0xfc400 isp0: FLT[DEF]: version=3D0x1 length=3D0x448(1096) checksum=3D0x6e23 isp0: FLT[DEF]: regions=3D68 isp0: FLT[FLT]: boot=3D0x200000 fw=3D0x240000 vpd_nvram=3D0x270000 vpd=3D0x= 270000 nvram 0x270080 fdt=3D0xfc000 flt=3D0xfc400 npiv=3D0x2a8000 fcp_prif_cfg=3D0x0 isp0: NVRAM 0x0000000000000000 0x210034800d3ebaac maxframelen 2048 isp0: NVRAM loopid 0 fwopt1 0x20c6 fwopt2 0x26 fwopt3 0x4000 isp0: Chan 0 0x200034800d3ebaac/0x210034800d3ebaac Role Initiator isp0: Setting ICB Node 0x200034800d3ebaac Port 0x210034800d3ebaac isp0: isp_init: fwopt1 0x60c6 fwopt2 0x4401026 fwopt3 0x4022 isp0: isp_init: rqst 0000000578e21000 rsp 0000000578ea1000 isp0: isp_init: isp0: 0x00000000: 01 00 00 00 00 08 00 00 00 00 00 00 21 00 34 80 isp0: 0x00000010: 0d 3e ba ac 20 00 34 80 0d 3e ba ac 00 00 00 00 isp0: 0x00000020: 03 00 00 00 00 04 00 20 00 00 00 00 00 10 e2 78 isp0: 0x00000030: 05 00 00 00 00 10 ea 78 05 00 00 00 00 00 00 00 isp0: 0x00000040: 00 00 00 00 01 00 02 00 00 00 00 00 00 00 00 00 isp0: 0x00000050: 00 00 00 00 00 00 00 00 00 00 0a 00 c6 60 00 00 isp0: 0x00000060: 26 10 40 04 22 40 00 00 00 00 00 00 00 00 00 00 isp0: 0x00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 isp0: INIT F/W from 0000000112698000 ----- for Qlogic ISP 2812 (QLogic QLE2772 32Gbit 2Port FC Adapter) ----- isp2: mem 0xeea05000-0xeea05fff,0xeea02000-0xeea03fff,0xee900000-0xee9fffff at device= 0.0 numa-domain 1 on pci14 isp2: set PCI line size to 16 from 0 isp2: set PCI latency to 64 isp2: loading firmware from flash isp2: Board Type 2800, Chip Revision 0x2, resident F/W Revision 9.4.1 isp2: Attributes: Class2 MultiID T10CRC MQ MSIX VP0_Decoupling HotFW EXMOFF NPMOFF DIFCHOP ASICTMP ATIOMQ (unknown 0x0000162078020000) isp2: 2048 max I/O command limit set isp2: request area @ 0x30d6a80000/0x80000 isp2: response area @ 0x30c54f0000/0x10000 isp2: FLTL[DEF]: 0x4400 isp2: FLT[DEF]: version=3D0x1 length=3D0xc38(3128) checksum=3D0xea11 isp2: FLT[DEF]: regions=3D195 isp2: FLT[FLT]: boot=3D0x240000 fw=3D0xf0000 vpd_nvram=3D0x300000 vpd=3D0x3= 00000 nvram 0x300080 fdt=3D0x4000 flt=3D0x4400 npiv=3D0x320000 fcp_prif_cfg=3D0x338000 isp2: NVRAM 0x2000f4c7aa0212b0 0x2100f4c7aa0212b0 maxframelen 2048 isp2: NVRAM loopid 0 fwopt1 0x6006 fwopt2 0x26 fwopt3 0x4000 isp2: Chan 0 0x2000f4c7aa0212b0/0x2100f4c7aa0212b0 Role Initiator isp2: Setting ICB Node 0x2000f4c7aa0212b0 Port 0x2100f4c7aa0212b0 isp2: isp_init: fwopt1 0x6006 fwopt2 0x4401026 fwopt3 0x4022 isp2: isp_init: rqst 00000030d6a80000 rsp 00000030c54f0000 isp2: isp_init: isp2: 0x00000000: 01 00 00 00 00 08 00 00 00 00 00 00 21 00 f4 c7 isp2: 0x00000010: aa 02 12 b0 20 00 f4 c7 aa 02 12 b0 00 00 00 00 isp2: 0x00000020: 03 00 00 00 00 04 00 20 00 00 00 00 00 00 a8 d6 isp2: 0x00000030: 30 00 00 00 00 00 4f c5 30 00 00 00 00 00 00 00 isp2: 0x00000040: 00 00 00 00 01 00 02 00 00 00 00 00 00 00 00 00 isp2: 0x00000050: 00 00 00 00 00 00 00 00 00 00 0a 00 06 60 00 00 isp2: 0x00000060: 26 10 40 04 22 40 00 00 00 00 00 00 00 00 00 00 isp2: 0x00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 isp2: INIT F/W from 0000003094b09000 --=20 You are receiving this mail because: You are the assignee for the bug.=