get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/1253348/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1253348,
    "url": "http://patchwork.ozlabs.org/api/patches/1253348/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200312015818.1007882-10-jacob.e.keller@intel.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20200312015818.1007882-10-jacob.e.keller@intel.com>",
    "list_archive_url": null,
    "date": "2020-03-12T01:58:18",
    "name": "[v3,9/9] ice: add board identifier info to devlink .info_get",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "8bcb8dd2eab33b26cbef8b39ecf127916935459e",
    "submitter": {
        "id": 9784,
        "url": "http://patchwork.ozlabs.org/api/people/9784/?format=api",
        "name": "Jacob Keller",
        "email": "jacob.e.keller@intel.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200312015818.1007882-10-jacob.e.keller@intel.com/mbox/",
    "series": [
        {
            "id": 163869,
            "url": "http://patchwork.ozlabs.org/api/series/163869/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=163869",
            "date": "2020-03-12T01:58:10",
            "name": "ice devlink support",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/163869/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1253348/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1253348/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Authentication-Results": [
            "ozlabs.org; spf=pass (sender SPF authorized)\n\tsmtp.mailfrom=osuosl.org (client-ip=140.211.166.136;\n\thelo=silver.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=intel.com"
        ],
        "Received": [
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 48dBnV4lhlz9sPK\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 12 Mar 2020 12:58:38 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id DFFF0265AA;\n\tThu, 12 Mar 2020 01:58:36 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id KimnuXY9dqRJ; Thu, 12 Mar 2020 01:58:32 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id CC97726545;\n\tThu, 12 Mar 2020 01:58:29 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id B88C01BF9B9\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 12 Mar 2020 01:58:24 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id B63A286193\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 12 Mar 2020 01:58:24 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id YlFKnTIYL1hA for <intel-wired-lan@lists.osuosl.org>;\n\tThu, 12 Mar 2020 01:58:23 +0000 (UTC)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id A0372863A1\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 12 Mar 2020 01:58:23 +0000 (UTC)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Mar 2020 18:58:22 -0700",
            "from jekeller-desk.amr.corp.intel.com ([10.166.241.33])\n\tby orsmga008.jf.intel.com with ESMTP; 11 Mar 2020 18:58:21 -0700"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.70,543,1574150400\"; d=\"scan'208\";a=\"236656324\"",
        "From": "Jacob Keller <jacob.e.keller@intel.com>",
        "To": "Intel Wired LAN <intel-wired-lan@lists.osuosl.org>",
        "Date": "Wed, 11 Mar 2020 18:58:18 -0700",
        "Message-Id": "<20200312015818.1007882-10-jacob.e.keller@intel.com>",
        "X-Mailer": "git-send-email 2.24.1",
        "In-Reply-To": "<20200312015818.1007882-1-jacob.e.keller@intel.com>",
        "References": "<20200312015818.1007882-1-jacob.e.keller@intel.com>",
        "MIME-Version": "1.0",
        "Subject": "[Intel-wired-lan] [PATCH v3 9/9] ice: add board identifier info to\n\tdevlink .info_get",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "Cc": "Jakub Kicinski <kuba@kernel.org>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "Export a unique board identifier using \"board.id\" for devlink's\n.info_get command.\n\nObtain this by reading the NVM for the PBA identification string.\n\nSigned-off-by: Jacob Keller <jacob.e.keller@intel.com>\nReviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>\n---\n Documentation/networking/devlink/ice.rst     |   4 +\n drivers/net/ethernet/intel/ice/ice_common.c  |  66 ----------\n drivers/net/ethernet/intel/ice/ice_common.h  |   3 -\n drivers/net/ethernet/intel/ice/ice_devlink.c |  16 ++-\n drivers/net/ethernet/intel/ice/ice_nvm.c     | 125 +++++++++++++++++++\n drivers/net/ethernet/intel/ice/ice_nvm.h     |   5 +\n drivers/net/ethernet/intel/ice/ice_type.h    |   1 +\n 7 files changed, 150 insertions(+), 70 deletions(-)",
    "diff": "diff --git a/Documentation/networking/devlink/ice.rst b/Documentation/networking/devlink/ice.rst\nindex 56739a51cdfe..37fbbd40a5e5 100644\n--- a/Documentation/networking/devlink/ice.rst\n+++ b/Documentation/networking/devlink/ice.rst\n@@ -19,6 +19,10 @@ The ``ice`` driver reports the following versions\n       - Type\n       - Example\n       - Description\n+    * - ``board.id``\n+      - fixed\n+      - K65390-000\n+      - The Product Board Assembly (PBA) identifier of the board.\n     * - ``fw.mgmt``\n       - running\n       - 2.1.7\ndiff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c\nindex a16ec5c6a0bc..c760fae4aed4 100644\n--- a/drivers/net/ethernet/intel/ice/ice_common.c\n+++ b/drivers/net/ethernet/intel/ice/ice_common.c\n@@ -935,72 +935,6 @@ enum ice_status ice_reset(struct ice_hw *hw, enum ice_reset_req req)\n \treturn ice_check_reset(hw);\n }\n \n-/**\n- * ice_get_pfa_module_tlv - Reads sub module TLV from NVM PFA\n- * @hw: pointer to hardware structure\n- * @module_tlv: pointer to module TLV to return\n- * @module_tlv_len: pointer to module TLV length to return\n- * @module_type: module type requested\n- *\n- * Finds the requested sub module TLV type from the Preserved Field\n- * Area (PFA) and returns the TLV pointer and length. The caller can\n- * use these to read the variable length TLV value.\n- */\n-enum ice_status\n-ice_get_pfa_module_tlv(struct ice_hw *hw, u16 *module_tlv, u16 *module_tlv_len,\n-\t\t       u16 module_type)\n-{\n-\tenum ice_status status;\n-\tu16 pfa_len, pfa_ptr;\n-\tu16 next_tlv;\n-\n-\tstatus = ice_read_sr_word(hw, ICE_SR_PFA_PTR, &pfa_ptr);\n-\tif (status) {\n-\t\tice_debug(hw, ICE_DBG_INIT, \"Preserved Field Array pointer.\\n\");\n-\t\treturn status;\n-\t}\n-\tstatus = ice_read_sr_word(hw, pfa_ptr, &pfa_len);\n-\tif (status) {\n-\t\tice_debug(hw, ICE_DBG_INIT, \"Failed to read PFA length.\\n\");\n-\t\treturn status;\n-\t}\n-\t/* Starting with first TLV after PFA length, iterate through the list\n-\t * of TLVs to find the requested one.\n-\t */\n-\tnext_tlv = pfa_ptr + 1;\n-\twhile (next_tlv < pfa_ptr + pfa_len) {\n-\t\tu16 tlv_sub_module_type;\n-\t\tu16 tlv_len;\n-\n-\t\t/* Read TLV type */\n-\t\tstatus = ice_read_sr_word(hw, next_tlv, &tlv_sub_module_type);\n-\t\tif (status) {\n-\t\t\tice_debug(hw, ICE_DBG_INIT, \"Failed to read TLV type.\\n\");\n-\t\t\tbreak;\n-\t\t}\n-\t\t/* Read TLV length */\n-\t\tstatus = ice_read_sr_word(hw, next_tlv + 1, &tlv_len);\n-\t\tif (status) {\n-\t\t\tice_debug(hw, ICE_DBG_INIT, \"Failed to read TLV length.\\n\");\n-\t\t\tbreak;\n-\t\t}\n-\t\tif (tlv_sub_module_type == module_type) {\n-\t\t\tif (tlv_len) {\n-\t\t\t\t*module_tlv = next_tlv;\n-\t\t\t\t*module_tlv_len = tlv_len;\n-\t\t\t\treturn 0;\n-\t\t\t}\n-\t\t\treturn ICE_ERR_INVAL_SIZE;\n-\t\t}\n-\t\t/* Check next TLV, i.e. current TLV pointer + length + 2 words\n-\t\t * (for current TLV's type and length)\n-\t\t */\n-\t\tnext_tlv = next_tlv + tlv_len + 2;\n-\t}\n-\t/* Module does not exist */\n-\treturn ICE_ERR_DOES_NOT_EXIST;\n-}\n-\n /**\n  * ice_copy_rxq_ctx_to_hw\n  * @hw: pointer to the hardware structure\ndiff --git a/drivers/net/ethernet/intel/ice/ice_common.h b/drivers/net/ethernet/intel/ice/ice_common.h\nindex ded704236643..db63fd6b5608 100644\n--- a/drivers/net/ethernet/intel/ice/ice_common.h\n+++ b/drivers/net/ethernet/intel/ice/ice_common.h\n@@ -15,9 +15,6 @@ enum ice_status ice_nvm_validate_checksum(struct ice_hw *hw);\n \n enum ice_status ice_init_hw(struct ice_hw *hw);\n void ice_deinit_hw(struct ice_hw *hw);\n-enum ice_status\n-ice_get_pfa_module_tlv(struct ice_hw *hw, u16 *module_tlv, u16 *module_tlv_len,\n-\t\t       u16 module_type);\n enum ice_status ice_check_reset(struct ice_hw *hw);\n enum ice_status ice_reset(struct ice_hw *hw, enum ice_reset_req req);\n enum ice_status ice_create_all_ctrlq(struct ice_hw *hw);\ndiff --git a/drivers/net/ethernet/intel/ice/ice_devlink.c b/drivers/net/ethernet/intel/ice/ice_devlink.c\nindex 410e2b531e5d..27c5034c039a 100644\n--- a/drivers/net/ethernet/intel/ice/ice_devlink.c\n+++ b/drivers/net/ethernet/intel/ice/ice_devlink.c\n@@ -19,6 +19,18 @@ static int ice_info_get_dsn(struct ice_pf *pf, char *buf, size_t len)\n \treturn 0;\n }\n \n+static int ice_info_pba(struct ice_pf *pf, char *buf, size_t len)\n+{\n+\tstruct ice_hw *hw = &pf->hw;\n+\tenum ice_status status;\n+\n+\tstatus = ice_read_pba_string(hw, (u8 *)buf, len);\n+\tif (status)\n+\t\treturn -EIO;\n+\n+\treturn 0;\n+}\n+\n static int ice_info_fw_mgmt(struct ice_pf *pf, char *buf, size_t len)\n {\n \tstruct ice_hw *hw = &pf->hw;\n@@ -93,6 +105,7 @@ static int ice_info_ddp_pkg_version(struct ice_pf *pf, char *buf, size_t len)\n \treturn 0;\n }\n \n+#define fixed(key, getter) { ICE_VERSION_FIXED, key, getter }\n #define running(key, getter) { ICE_VERSION_RUNNING, key, getter }\n \n enum ice_version_type {\n@@ -106,6 +119,7 @@ static const struct ice_devlink_version {\n \tconst char *key;\n \tint (*getter)(struct ice_pf *pf, char *buf, size_t len);\n } ice_devlink_versions[] = {\n+\tfixed(DEVLINK_INFO_VERSION_GENERIC_BOARD_ID, ice_info_pba),\n \trunning(DEVLINK_INFO_VERSION_GENERIC_FW_MGMT, ice_info_fw_mgmt),\n \trunning(\"fw.mgmt.api\", ice_info_fw_api),\n \trunning(\"fw.mgmt.build\", ice_info_fw_build),\n@@ -125,7 +139,7 @@ static const struct ice_devlink_version {\n  * Callback for the devlink .info_get operation. Reports information about the\n  * device.\n  *\n- * @returns zero on success or an error code on failure.\n+ * Return: zero on success or an error code on failure.\n  */\n static int ice_devlink_info_get(struct devlink *devlink,\n \t\t\t\tstruct devlink_info_req *req,\ndiff --git a/drivers/net/ethernet/intel/ice/ice_nvm.c b/drivers/net/ethernet/intel/ice/ice_nvm.c\nindex 08909d1c7cce..8beb675d676b 100644\n--- a/drivers/net/ethernet/intel/ice/ice_nvm.c\n+++ b/drivers/net/ethernet/intel/ice/ice_nvm.c\n@@ -185,6 +185,131 @@ enum ice_status ice_read_sr_word(struct ice_hw *hw, u16 offset, u16 *data)\n \treturn status;\n }\n \n+/**\n+ * ice_get_pfa_module_tlv - Reads sub module TLV from NVM PFA\n+ * @hw: pointer to hardware structure\n+ * @module_tlv: pointer to module TLV to return\n+ * @module_tlv_len: pointer to module TLV length to return\n+ * @module_type: module type requested\n+ *\n+ * Finds the requested sub module TLV type from the Preserved Field\n+ * Area (PFA) and returns the TLV pointer and length. The caller can\n+ * use these to read the variable length TLV value.\n+ */\n+enum ice_status\n+ice_get_pfa_module_tlv(struct ice_hw *hw, u16 *module_tlv, u16 *module_tlv_len,\n+\t\t       u16 module_type)\n+{\n+\tenum ice_status status;\n+\tu16 pfa_len, pfa_ptr;\n+\tu16 next_tlv;\n+\n+\tstatus = ice_read_sr_word(hw, ICE_SR_PFA_PTR, &pfa_ptr);\n+\tif (status) {\n+\t\tice_debug(hw, ICE_DBG_INIT, \"Preserved Field Array pointer.\\n\");\n+\t\treturn status;\n+\t}\n+\tstatus = ice_read_sr_word(hw, pfa_ptr, &pfa_len);\n+\tif (status) {\n+\t\tice_debug(hw, ICE_DBG_INIT, \"Failed to read PFA length.\\n\");\n+\t\treturn status;\n+\t}\n+\t/* Starting with first TLV after PFA length, iterate through the list\n+\t * of TLVs to find the requested one.\n+\t */\n+\tnext_tlv = pfa_ptr + 1;\n+\twhile (next_tlv < pfa_ptr + pfa_len) {\n+\t\tu16 tlv_sub_module_type;\n+\t\tu16 tlv_len;\n+\n+\t\t/* Read TLV type */\n+\t\tstatus = ice_read_sr_word(hw, next_tlv, &tlv_sub_module_type);\n+\t\tif (status) {\n+\t\t\tice_debug(hw, ICE_DBG_INIT, \"Failed to read TLV type.\\n\");\n+\t\t\tbreak;\n+\t\t}\n+\t\t/* Read TLV length */\n+\t\tstatus = ice_read_sr_word(hw, next_tlv + 1, &tlv_len);\n+\t\tif (status) {\n+\t\t\tice_debug(hw, ICE_DBG_INIT, \"Failed to read TLV length.\\n\");\n+\t\t\tbreak;\n+\t\t}\n+\t\tif (tlv_sub_module_type == module_type) {\n+\t\t\tif (tlv_len) {\n+\t\t\t\t*module_tlv = next_tlv;\n+\t\t\t\t*module_tlv_len = tlv_len;\n+\t\t\t\treturn 0;\n+\t\t\t}\n+\t\t\treturn ICE_ERR_INVAL_SIZE;\n+\t\t}\n+\t\t/* Check next TLV, i.e. current TLV pointer + length + 2 words\n+\t\t * (for current TLV's type and length)\n+\t\t */\n+\t\tnext_tlv = next_tlv + tlv_len + 2;\n+\t}\n+\t/* Module does not exist */\n+\treturn ICE_ERR_DOES_NOT_EXIST;\n+}\n+\n+/**\n+ * ice_read_pba_string - Reads part number string from NVM\n+ * @hw: pointer to hardware structure\n+ * @pba_num: stores the part number string from the NVM\n+ * @pba_num_size: part number string buffer length\n+ *\n+ * Reads the part number string from the NVM.\n+ */\n+enum ice_status\n+ice_read_pba_string(struct ice_hw *hw, u8 *pba_num, u32 pba_num_size)\n+{\n+\tu16 pba_tlv, pba_tlv_len;\n+\tenum ice_status status;\n+\tu16 pba_word, pba_size;\n+\tu16 i;\n+\n+\tstatus = ice_get_pfa_module_tlv(hw, &pba_tlv, &pba_tlv_len,\n+\t\t\t\t\tICE_SR_PBA_BLOCK_PTR);\n+\tif (status) {\n+\t\tice_debug(hw, ICE_DBG_INIT, \"Failed to read PBA Block TLV.\\n\");\n+\t\treturn status;\n+\t}\n+\n+\t/* pba_size is the next word */\n+\tstatus = ice_read_sr_word(hw, (pba_tlv + 2), &pba_size);\n+\tif (status) {\n+\t\tice_debug(hw, ICE_DBG_INIT, \"Failed to read PBA Section size.\\n\");\n+\t\treturn status;\n+\t}\n+\n+\tif (pba_tlv_len < pba_size) {\n+\t\tice_debug(hw, ICE_DBG_INIT, \"Invalid PBA Block TLV size.\\n\");\n+\t\treturn ICE_ERR_INVAL_SIZE;\n+\t}\n+\n+\t/* Subtract one to get PBA word count (PBA Size word is included in\n+\t * total size)\n+\t */\n+\tpba_size--;\n+\tif (pba_num_size < (((u32)pba_size * 2) + 1)) {\n+\t\tice_debug(hw, ICE_DBG_INIT, \"Buffer too small for PBA data.\\n\");\n+\t\treturn ICE_ERR_PARAM;\n+\t}\n+\n+\tfor (i = 0; i < pba_size; i++) {\n+\t\tstatus = ice_read_sr_word(hw, (pba_tlv + 2 + 1) + i, &pba_word);\n+\t\tif (status) {\n+\t\t\tice_debug(hw, ICE_DBG_INIT, \"Failed to read PBA Block word %d.\\n\", i);\n+\t\t\treturn status;\n+\t\t}\n+\n+\t\tpba_num[(i * 2)] = (pba_word >> 8) & 0xFF;\n+\t\tpba_num[(i * 2) + 1] = pba_word & 0xFF;\n+\t}\n+\tpba_num[(pba_size * 2)] = '\\0';\n+\n+\treturn status;\n+}\n+\n /**\n  * ice_get_orom_ver_info - Read Option ROM version information\n  * @hw: pointer to the HW struct\ndiff --git a/drivers/net/ethernet/intel/ice/ice_nvm.h b/drivers/net/ethernet/intel/ice/ice_nvm.h\nindex 7375f6b96919..999f273ba6ad 100644\n--- a/drivers/net/ethernet/intel/ice/ice_nvm.h\n+++ b/drivers/net/ethernet/intel/ice/ice_nvm.h\n@@ -10,6 +10,11 @@ void ice_release_nvm(struct ice_hw *hw);\n enum ice_status\n ice_read_flat_nvm(struct ice_hw *hw, u32 offset, u32 *length, u8 *data,\n \t\t  bool read_shadow_ram);\n+enum ice_status\n+ice_get_pfa_module_tlv(struct ice_hw *hw, u16 *module_tlv, u16 *module_tlv_len,\n+\t\t       u16 module_type);\n+enum ice_status\n+ice_read_pba_string(struct ice_hw *hw, u8 *pba_num, u32 pba_num_size);\n enum ice_status ice_init_nvm(struct ice_hw *hw);\n enum ice_status ice_read_sr_word(struct ice_hw *hw, u16 offset, u16 *data);\n #endif /* _ICE_NVM_H_ */\ndiff --git a/drivers/net/ethernet/intel/ice/ice_type.h b/drivers/net/ethernet/intel/ice/ice_type.h\nindex 200aceae4323..26e00f41dd89 100644\n--- a/drivers/net/ethernet/intel/ice/ice_type.h\n+++ b/drivers/net/ethernet/intel/ice/ice_type.h\n@@ -643,6 +643,7 @@ struct ice_hw_port_stats {\n /* Checksum and Shadow RAM pointers */\n #define ICE_SR_BOOT_CFG_PTR\t\t0x132\n #define ICE_NVM_OROM_VER_OFF\t\t0x02\n+#define ICE_SR_PBA_BLOCK_PTR\t\t0x16\n #define ICE_SR_NVM_DEV_STARTER_VER\t0x18\n #define ICE_SR_NVM_EETRACK_LO\t\t0x2D\n #define ICE_SR_NVM_EETRACK_HI\t\t0x2E\n",
    "prefixes": [
        "v3",
        "9/9"
    ]
}