Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/68719/?format=api
http://patches.dpdk.org/api/patches/68719/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1587098436-7493-7-git-send-email-nicolas.chautru@intel.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": "<1587098436-7493-7-git-send-email-nicolas.chautru@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1587098436-7493-7-git-send-email-nicolas.chautru@intel.com", "date": "2020-04-17T04:40:31", "name": "[v3,06/11] baseband/fpga_5gnr_fec: add HW error capture", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "73f4eaaf6dc67496bba649b1a614a98be51fc4a8", "submitter": { "id": 1314, "url": "http://patches.dpdk.org/api/people/1314/?format=api", "name": "Chautru, Nicolas", "email": "nicolas.chautru@intel.com" }, "delegate": { "id": 6690, "url": "http://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1587098436-7493-7-git-send-email-nicolas.chautru@intel.com/mbox/", "series": [ { "id": 9446, "url": "http://patches.dpdk.org/api/series/9446/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=9446", "date": "2020-04-17T04:40:25", "name": "drivers/baseband: PMD for FPGA 5GNR FEC", "version": 3, "mbox": "http://patches.dpdk.org/series/9446/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/68719/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/68719/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D38B4A0588;\n\tFri, 17 Apr 2020 06:42:34 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A09E41DE6E;\n\tFri, 17 Apr 2020 06:41:47 +0200 (CEST)", "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by dpdk.org (Postfix) with ESMTP id D02AA1DE26\n for <dev@dpdk.org>; Fri, 17 Apr 2020 06:41:39 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Apr 2020 21:41:39 -0700", "from skx-5gnr-sc12-4.sc.intel.com ([172.25.69.210])\n by orsmga002.jf.intel.com with ESMTP; 16 Apr 2020 21:41:38 -0700" ], "IronPort-SDR": [ "\n N4W2IPvWdd9H4N4/y0Bh0r0GqgUgH5NSjptL65NUA1IOTb2GlwTKNpVgLsC4Hjq80z+TVBxzkd\n FQCoojZhAP1Q==", "\n 2pGLg7+Zhw/8QdvMXZxFGDq9yS3gfPWYugdrv8c2DPLhYVKUe1YuMZ6u7Znd4AcaP+pJUvDbwA\n Agb2dfC2gNIQ==" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.72,393,1580803200\"; d=\"scan'208\";a=\"272304060\"", "From": "Nicolas Chautru <nicolas.chautru@intel.com>", "To": "dev@dpdk.org,\n\takhil.goyal@nxp.com", "Cc": "bruce.richardson@intel.com,\n\tNicolas Chautru <nicolas.chautru@intel.com>", "Date": "Thu, 16 Apr 2020 21:40:31 -0700", "Message-Id": "<1587098436-7493-7-git-send-email-nicolas.chautru@intel.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1587098436-7493-1-git-send-email-nicolas.chautru@intel.com>", "References": "<1587098436-7493-1-git-send-email-nicolas.chautru@intel.com>", "Subject": "[dpdk-dev] [PATCH v3 06/11] baseband/fpga_5gnr_fec: add HW error\n\tcapture", "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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Adding HW specific parsing of error report for\nnegative scenarios. Not hit through unit test.\n\nSigned-off-by: Nicolas Chautru <nicolas.chautru@intel.com>\n---\n drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c | 56 ++++++++++++++++++++++\n 1 file changed, 56 insertions(+)", "diff": "diff --git a/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c b/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c\nindex b1c883a..9dc92fc 100644\n--- a/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c\n+++ b/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c\n@@ -519,6 +519,54 @@\n \treturn bitmap & bitmask;\n }\n \n+/* Print an error if a descriptor error has occurred.\n+ * Return 0 on success, 1 on failure\n+ */\n+static inline int\n+check_desc_error(uint32_t error_code) {\n+\tswitch (error_code) {\n+\tcase DESC_ERR_NO_ERR:\n+\t\treturn 0;\n+\tcase DESC_ERR_K_P_OUT_OF_RANGE:\n+\t\trte_bbdev_log(ERR, \"Encode block size K' is out of range\");\n+\t\tbreak;\n+\tcase DESC_ERR_Z_C_NOT_LEGAL:\n+\t\trte_bbdev_log(ERR, \"Zc is illegal\");\n+\t\tbreak;\n+\tcase DESC_ERR_DESC_OFFSET_ERR:\n+\t\trte_bbdev_log(ERR,\n+\t\t\t\t\"Queue offset does not meet the expectation in the FPGA\"\n+\t\t\t\t);\n+\t\tbreak;\n+\tcase DESC_ERR_DESC_READ_FAIL:\n+\t\trte_bbdev_log(ERR, \"Unsuccessful completion for descriptor read\");\n+\t\tbreak;\n+\tcase DESC_ERR_DESC_READ_TIMEOUT:\n+\t\trte_bbdev_log(ERR, \"Descriptor read time-out\");\n+\t\tbreak;\n+\tcase DESC_ERR_DESC_READ_TLP_POISONED:\n+\t\trte_bbdev_log(ERR, \"Descriptor read TLP poisoned\");\n+\t\tbreak;\n+\tcase DESC_ERR_CB_READ_FAIL:\n+\t\trte_bbdev_log(ERR, \"Unsuccessful completion for code block\");\n+\t\tbreak;\n+\tcase DESC_ERR_CB_READ_TIMEOUT:\n+\t\trte_bbdev_log(ERR, \"Code block read time-out\");\n+\t\tbreak;\n+\tcase DESC_ERR_CB_READ_TLP_POISONED:\n+\t\trte_bbdev_log(ERR, \"Code block read TLP poisoned\");\n+\t\tbreak;\n+\tcase DESC_ERR_HBSTORE_ERR:\n+\t\trte_bbdev_log(ERR, \"Hbstroe exceeds HARQ buffer size.\");\n+\t\tbreak;\n+\tdefault:\n+\t\trte_bbdev_log(ERR, \"Descriptor error unknown error code %u\",\n+\t\t\t\terror_code);\n+\t\tbreak;\n+\t}\n+\treturn 1;\n+}\n+\n /* Compute value of k0.\n * Based on 3GPP 38.212 Table 5.4.2.1-2\n * Starting position of different redundancy versions, k0\n@@ -1000,6 +1048,11 @@\n \n \trte_bbdev_log_debug(\"DMA response desc %p\", desc);\n \n+\t*op = desc->enc_req.op_addr;\n+\t/* Check the descriptor error field, return 1 on error */\n+\tdesc_error = check_desc_error(desc->enc_req.error);\n+\t(*op)->status = desc_error << RTE_BBDEV_DATA_ERROR;\n+\n \treturn 1;\n }\n \n@@ -1036,6 +1089,9 @@\n \t\t(*op)->status = 1 << RTE_BBDEV_CRC_ERROR;\n \t/* et_pass = 0 when decoder fails */\n \t(*op)->status |= !(desc->dec_req.et_pass) << RTE_BBDEV_SYNDROME_ERROR;\n+\t/* Check the descriptor error field, return 1 on error */\n+\tdesc_error = check_desc_error(desc->dec_req.error);\n+\t(*op)->status |= desc_error << RTE_BBDEV_DATA_ERROR;\n \treturn 1;\n }\n \n", "prefixes": [ "v3", "06/11" ] }{ "id": 68719, "url": "