Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/55704/?format=api
http://patches.dpdk.org/api/patches/55704/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190630180609.36705-29-jerinj@marvell.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20190630180609.36705-29-jerinj@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190630180609.36705-29-jerinj@marvell.com", "date": "2019-06-30T18:05:40", "name": "[v2,28/57] net/octeontx2: add module EEPROM dump", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e60b9f915b5bef8251d86f1409a094a8b5075f02", "submitter": { "id": 1188, "url": "http://patches.dpdk.org/api/people/1188/?format=api", "name": "Jerin Jacob Kollanukkaran", "email": "jerinj@marvell.com" }, "delegate": { "id": 310, "url": "http://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190630180609.36705-29-jerinj@marvell.com/mbox/", "series": [ { "id": 5236, "url": "http://patches.dpdk.org/api/series/5236/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5236", "date": "2019-06-30T18:05:12", "name": "OCTEON TX2 Ethdev driver", "version": 2, "mbox": "http://patches.dpdk.org/series/5236/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/55704/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/55704/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1162A1BB09;\n\tSun, 30 Jun 2019 20:08:47 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n\t[67.231.148.174]) by dpdk.org (Postfix) with ESMTP id E667E1B9B2\n\tfor <dev@dpdk.org>; Sun, 30 Jun 2019 20:08:00 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n\tby mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id\n\tx5UI5DtY027158; Sun, 30 Jun 2019 11:08:00 -0700", "from sc-exch03.marvell.com ([199.233.58.183])\n\tby mx0a-0016f401.pphosted.com with ESMTP id 2te5bn4gjh-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); \n\tSun, 30 Jun 2019 11:08:00 -0700", "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com\n\t(10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tSun, 30 Jun 2019 11:07:59 -0700", "from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com\n\t(10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n\tTransport; Sun, 30 Jun 2019 11:07:59 -0700", "from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14])\n\tby maili.marvell.com (Postfix) with ESMTP id 08A463F703F;\n\tSun, 30 Jun 2019 11:07:56 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n\th=from : to : cc :\n\tsubject : date : message-id : in-reply-to : references : mime-version\n\t: content-transfer-encoding : content-type; s=pfpt0818;\n\tbh=/E2NnPXfYu6rdsYmE/UMHNDzAcWwZke1p1VuLL6oAw8=;\n\tb=QvUop7jadIIWxDX7isr16OwAdr3lOH8b6j9n8eK2JngP3dG8UghkOHpVZzgA36ZAGNNv\n\ttB9KxvZw5AQ9BeXTM99qi0Cgi0CwAia20cPXvaKnA17BkNNl4/RIl6K8myzP96x3DbEA\n\thCEeFt50OrlR8bSTedn8LcqZrq9Z3SL2J7n5q/4R06TsEkFr2AT4AH08Z1aAc8OfTdiA\n\t6EP5Mp9ZW27OeTPZXdxuoxAFuhTsUNC28jNGv5bXSxwC0HDbyuWAFFyRqqgWGy6OaDGU\n\tBvF+M18D6v8WbC4VT+1JJ5EBA1b5JnfUuyJGqffDotLdQOuRwRDHQzd9YMf49cibFvaW\n\t5g== ", "From": "<jerinj@marvell.com>", "To": "<dev@dpdk.org>, John McNamara <john.mcnamara@intel.com>, Marko Kovacevic\n\t<marko.kovacevic@intel.com>, Jerin Jacob <jerinj@marvell.com>, \"Nithin\n\tDabilpuram\" <ndabilpuram@marvell.com>, Kiran Kumar K\n\t<kirankumark@marvell.com>", "CC": "Vamsi Attunuru <vattunuru@marvell.com>", "Date": "Sun, 30 Jun 2019 23:35:40 +0530", "Message-ID": "<20190630180609.36705-29-jerinj@marvell.com>", "X-Mailer": "git-send-email 2.21.0", "In-Reply-To": "<20190630180609.36705-1-jerinj@marvell.com>", "References": "<20190602152434.23996-1-jerinj@marvell.com>\n\t<20190630180609.36705-1-jerinj@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:, ,\n\tdefinitions=2019-06-30_08:, , signatures=0", "Subject": "[dpdk-dev] [PATCH v2 28/57] net/octeontx2: add module EEPROM dump", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Vamsi Attunuru <vattunuru@marvell.com>\n\nadd module EEPROM dump operation.\n\nSigned-off-by: Vamsi Attunuru <vattunuru@marvell.com>\n---\n doc/guides/nics/features/octeontx2.ini | 1 +\n doc/guides/nics/features/octeontx2_vec.ini | 1 +\n doc/guides/nics/features/octeontx2_vf.ini | 1 +\n drivers/net/octeontx2/otx2_ethdev.c | 2 +\n drivers/net/octeontx2/otx2_ethdev.h | 4 ++\n drivers/net/octeontx2/otx2_ethdev_ops.c | 51 ++++++++++++++++++++++\n 6 files changed, 60 insertions(+)", "diff": "diff --git a/doc/guides/nics/features/octeontx2.ini b/doc/guides/nics/features/octeontx2.ini\nindex f07b64f24..87141244a 100644\n--- a/doc/guides/nics/features/octeontx2.ini\n+++ b/doc/guides/nics/features/octeontx2.ini\n@@ -26,6 +26,7 @@ Rx descriptor status = Y\n Basic stats = Y\n Stats per queue = Y\n Extended stats = Y\n+Module EEPROM dump = Y\n Registers dump = Y\n Linux VFIO = Y\n ARMv8 = Y\ndiff --git a/doc/guides/nics/features/octeontx2_vec.ini b/doc/guides/nics/features/octeontx2_vec.ini\nindex 911c926e4..dafbe003c 100644\n--- a/doc/guides/nics/features/octeontx2_vec.ini\n+++ b/doc/guides/nics/features/octeontx2_vec.ini\n@@ -26,6 +26,7 @@ Rx descriptor status = Y\n Basic stats = Y\n Extended stats = Y\n Stats per queue = Y\n+Module EEPROM dump = Y\n Registers dump = Y\n Linux VFIO = Y\n ARMv8 = Y\ndiff --git a/doc/guides/nics/features/octeontx2_vf.ini b/doc/guides/nics/features/octeontx2_vf.ini\nindex e275e6469..7fba7e1d9 100644\n--- a/doc/guides/nics/features/octeontx2_vf.ini\n+++ b/doc/guides/nics/features/octeontx2_vf.ini\n@@ -22,6 +22,7 @@ Rx descriptor status = Y\n Basic stats = Y\n Extended stats = Y\n Stats per queue = Y\n+Module EEPROM dump = Y\n Registers dump = Y\n Linux VFIO = Y\n ARMv8 = Y\ndiff --git a/drivers/net/octeontx2/otx2_ethdev.c b/drivers/net/octeontx2/otx2_ethdev.c\nindex feeba5c96..58c2f97b5 100644\n--- a/drivers/net/octeontx2/otx2_ethdev.c\n+++ b/drivers/net/octeontx2/otx2_ethdev.c\n@@ -1300,6 +1300,8 @@ static const struct eth_dev_ops otx2_eth_dev_ops = {\n \t.rx_descriptor_status = otx2_nix_rx_descriptor_status,\n \t.tx_done_cleanup = otx2_nix_tx_done_cleanup,\n \t.pool_ops_supported = otx2_nix_pool_ops_supported,\n+\t.get_module_info = otx2_nix_get_module_info,\n+\t.get_module_eeprom = otx2_nix_get_module_eeprom,\n };\n \n static inline int\ndiff --git a/drivers/net/octeontx2/otx2_ethdev.h b/drivers/net/octeontx2/otx2_ethdev.h\nindex 8f2691c80..5dd5d8c8b 100644\n--- a/drivers/net/octeontx2/otx2_ethdev.h\n+++ b/drivers/net/octeontx2/otx2_ethdev.h\n@@ -274,6 +274,10 @@ otx2_eth_pmd_priv(struct rte_eth_dev *eth_dev)\n /* Ops */\n void otx2_nix_info_get(struct rte_eth_dev *eth_dev,\n \t\t struct rte_eth_dev_info *dev_info);\n+int otx2_nix_get_module_info(struct rte_eth_dev *eth_dev,\n+\t\t\t struct rte_eth_dev_module_info *modinfo);\n+int otx2_nix_get_module_eeprom(struct rte_eth_dev *eth_dev,\n+\t\t\t struct rte_dev_eeprom_info *info);\n int otx2_nix_pool_ops_supported(struct rte_eth_dev *eth_dev, const char *pool);\n void otx2_nix_rxq_info_get(struct rte_eth_dev *eth_dev, uint16_t queue_id,\n \t\t\t struct rte_eth_rxq_info *qinfo);\ndiff --git a/drivers/net/octeontx2/otx2_ethdev_ops.c b/drivers/net/octeontx2/otx2_ethdev_ops.c\nindex 44cc17200..2a949439a 100644\n--- a/drivers/net/octeontx2/otx2_ethdev_ops.c\n+++ b/drivers/net/octeontx2/otx2_ethdev_ops.c\n@@ -220,6 +220,57 @@ otx2_nix_pool_ops_supported(struct rte_eth_dev *eth_dev, const char *pool)\n \treturn -ENOTSUP;\n }\n \n+static struct cgx_fw_data *\n+nix_get_fwdata(struct otx2_eth_dev *dev)\n+{\n+\tstruct otx2_mbox *mbox = dev->mbox;\n+\tstruct cgx_fw_data *rsp = NULL;\n+\n+\totx2_mbox_alloc_msg_cgx_get_aux_link_info(mbox);\n+\n+\totx2_mbox_process_msg(mbox, (void *)&rsp);\n+\n+\treturn rsp;\n+}\n+\n+int\n+otx2_nix_get_module_info(struct rte_eth_dev *eth_dev,\n+\t\t\t struct rte_eth_dev_module_info *modinfo)\n+{\n+\tstruct otx2_eth_dev *dev = otx2_eth_pmd_priv(eth_dev);\n+\tstruct cgx_fw_data *rsp;\n+\n+\trsp = nix_get_fwdata(dev);\n+\tif (rsp == NULL)\n+\t\treturn -EIO;\n+\n+\tmodinfo->type = rsp->fwdata.sfp_eeprom.sff_id;\n+\tmodinfo->eeprom_len = SFP_EEPROM_SIZE;\n+\n+\treturn 0;\n+}\n+\n+int\n+otx2_nix_get_module_eeprom(struct rte_eth_dev *eth_dev,\n+\t\t\t struct rte_dev_eeprom_info *info)\n+{\n+\tstruct otx2_eth_dev *dev = otx2_eth_pmd_priv(eth_dev);\n+\tstruct cgx_fw_data *rsp;\n+\n+\tif (!info->data || !info->length ||\n+\t (info->offset + info->length > SFP_EEPROM_SIZE))\n+\t\treturn -EINVAL;\n+\n+\trsp = nix_get_fwdata(dev);\n+\tif (rsp == NULL)\n+\t\treturn -EIO;\n+\n+\totx2_mbox_memcpy(info->data, rsp->fwdata.sfp_eeprom.buf + info->offset,\n+\t\t\t info->length);\n+\n+\treturn 0;\n+}\n+\n void\n otx2_nix_info_get(struct rte_eth_dev *eth_dev, struct rte_eth_dev_info *devinfo)\n {\n", "prefixes": [ "v2", "28/57" ] }{ "id": 55704, "url": "