From nobody Fri Dec 24 09:04:17 2021 X-Original-To: dev-commits-src-all@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 C9B94190A17B; Fri, 24 Dec 2021 09:04:17 +0000 (UTC) (envelope-from git@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 4JL1Mj44kMz4mW0; Fri, 24 Dec 2021 09:04:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 6B5A72144C; Fri, 24 Dec 2021 09:04:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BO94HY3057718; Fri, 24 Dec 2021 09:04:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BO94HQb057717; Fri, 24 Dec 2021 09:04:17 GMT (envelope-from git) Date: Fri, 24 Dec 2021 09:04:17 GMT Message-Id: <202112240904.1BO94HQb057717@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ram Kishore Vegesna Subject: git: cc3114e17b24 - stable/13 - ocs_fc: Populate subvendor and subdevice ids. Enable serialnumber reporting. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ram X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: cc3114e17b247536979bd365185f3de950fe0b62 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640336657; 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=0LFA7foQ2WU07GsKhjNf7HFPSOu4ANiQjbYQ537eqVE=; b=O/y8gDdx9mxs7XqIxDCN4Rrwq0NfsOV3nFqnRdUJaEI4+HVoOu1je9eJ3Sw1D/w6z1SbZd j0VkUntQKj3eDbeLB0P6no/Gxj60AmGcHCg0uEU+lYujTqEYjAFGLbtrsQ0jpupPASCJDz GHCski3uH0emcD5nLlUCZJijJx3ehoVch9/3IVb83A6+13+ZBtf7gbh4LuCsiz8ZbKG/oH 0B1OcfmHZtlBsjiCxWGNDZ/ewxsqz61RZiKwxEAnkrgubb3v5I2l6h2+sA9ikrRx+2KsOS p3xxOStyQjd895MCDz0o7PNlIYCStp+RFJG/3zyGoXYKbAKzcTAsfYHaMLS5aA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640336657; a=rsa-sha256; cv=none; b=EvYB28CfGeeBbA71Qvwg/9XHQkMor9c0sZGguWSg6GBHtmG0HHsckgarE4/YlWiEpHKP7I +EOaDd14lLgB/Ey76UjCVOkcsF3a8YGDpHCfT2aP8rp3TaQQjx+JwlNjmgn/Gq0M+cSI7k KByJO8r6ZVB8UXK3GL+OH9nRnHBYY8HnPNQHFtXh0PlVQJ2RCTwDtZj2Tzh16IMgRfZ8jw Nyc2A00yidMstbSYB8i5mzCUXErY7ER//WqeBe58MeGhv1DUrUYzRn2yiSzBO7OkD4hREW D5OihFw7WZvVIHT6yvqyexvbmPqYoZWsIAYAyMFlhfCrwDnlYR+skrZQqqLIbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by ram: URL: https://cgit.FreeBSD.org/src/commit/?id=cc3114e17b247536979bd365185f3de950fe0b62 commit cc3114e17b247536979bd365185f3de950fe0b62 Author: Ram Kishore Vegesna AuthorDate: 2021-12-20 12:25:13 +0000 Commit: Ram Kishore Vegesna CommitDate: 2021-12-24 08:58:15 +0000 ocs_fc: Populate subvendor and subdevice ids. Enable serialnumber reporting. Reviewed by: mav MFC after: 3 days (cherry picked from commit cba757ef2a7ec2bb985fbcd67e8d616328b7209a) ocs_fs(4): Fix some common typos in source code comments - s/transfered/transferred/ - s/associted/associated/ MFC after: 3 days (cherry picked from commit 16b71d98d96a3a9a2ac666440aa80f12d478959d) --- sys/dev/ocs_fc/ocs_gendump.c | 2 +- sys/dev/ocs_fc/ocs_hw_queues.c | 2 +- sys/dev/ocs_fc/ocs_pci.c | 3 +++ sys/dev/ocs_fc/ocs_scsi.c | 4 ---- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sys/dev/ocs_fc/ocs_gendump.c b/sys/dev/ocs_fc/ocs_gendump.c index d24870f39668..83155d90c3a3 100644 --- a/sys/dev/ocs_fc/ocs_gendump.c +++ b/sys/dev/ocs_fc/ocs_gendump.c @@ -234,7 +234,7 @@ ocs_fdb_dump(ocs_t *ocs) * @par Description * This function creates a DMA buffer to hold a Lancer dump, * sets the dump location to point to that buffer, then calls - * ocs_gen_dump to cause a dump to be transfered to the buffer. + * ocs_gen_dump to cause a dump to be transferred to the buffer. * After the dump is complete it copies the dump to the provided * user space buffer. * diff --git a/sys/dev/ocs_fc/ocs_hw_queues.c b/sys/dev/ocs_fc/ocs_hw_queues.c index 242b2f0df115..704eb951d2b7 100644 --- a/sys/dev/ocs_fc/ocs_hw_queues.c +++ b/sys/dev/ocs_fc/ocs_hw_queues.c @@ -966,7 +966,7 @@ hw_queue_teardown(ocs_hw_t *hw) * If wq_steering is OCS_HW_WQ_STEERING_REQUEST, then a WQ from the EQ that * the IO request came in on is selected. * - * If wq_steering is OCS_HW_WQ_STEERING_CPU, then a WQ associted with the + * If wq_steering is OCS_HW_WQ_STEERING_CPU, then a WQ associated with the * CPU the request is made on is selected. * * @param hw pointer to HW object diff --git a/sys/dev/ocs_fc/ocs_pci.c b/sys/dev/ocs_fc/ocs_pci.c index 8714c242a212..f50172fdada6 100644 --- a/sys/dev/ocs_fc/ocs_pci.c +++ b/sys/dev/ocs_fc/ocs_pci.c @@ -529,6 +529,9 @@ ocs_pci_attach(device_t dev) ocs->pci_vendor = pci_get_vendor(dev); ocs->pci_device = pci_get_device(dev); + ocs->pci_subsystem_vendor = pci_get_subvendor(dev); + ocs->pci_subsystem_device = pci_get_subdevice(dev); + snprintf(ocs->businfo, sizeof(ocs->businfo), "%02X:%02X:%02X", pci_get_bus(dev), pci_get_slot(dev), pci_get_function(dev)); diff --git a/sys/dev/ocs_fc/ocs_scsi.c b/sys/dev/ocs_fc/ocs_scsi.c index b1d98c7c0e3d..8938c0e2819f 100644 --- a/sys/dev/ocs_fc/ocs_scsi.c +++ b/sys/dev/ocs_fc/ocs_scsi.c @@ -43,9 +43,7 @@ #include "ocs.h" #include "ocs_els.h" #include "ocs_scsi.h" -#if defined(OCS_ENABLE_VPD_SUPPORT) #include "ocs_vpd.h" -#endif #include "ocs_utils.h" #include "ocs_device.h" @@ -2808,7 +2806,6 @@ void *ocs_scsi_get_property_ptr(ocs_t *ocs, ocs_scsi_property_e prop) case OCS_SCSI_BIOS_VERSION_STRING: rc = ocs_hw_get_ptr(&ocs->hw, OCS_HW_BIOS_VERSION_STRING); break; -#if defined(OCS_ENABLE_VPD_SUPPORT) case OCS_SCSI_SERIALNUMBER: { uint8_t *pvpd; @@ -2859,7 +2856,6 @@ void *ocs_scsi_get_property_ptr(ocs_t *ocs, ocs_scsi_property_e prop) } break; } -#endif default: break; }