Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/123965/?format=api
http://patches.dpdk.org/api/patches/123965/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230215170949.60569-5-hernan.vargas@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": "<20230215170949.60569-5-hernan.vargas@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230215170949.60569-5-hernan.vargas@intel.com", "date": "2023-02-15T17:09:37", "name": "[v2,04/16] test/bbdev: add timeout for latency tests", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "b4db89ff64eace370845f900fa329320004d73fe", "submitter": { "id": 2659, "url": "http://patches.dpdk.org/api/people/2659/?format=api", "name": "Hernan Vargas", "email": "hernan.vargas@intel.com" }, "delegate": { "id": 2642, "url": "http://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230215170949.60569-5-hernan.vargas@intel.com/mbox/", "series": [ { "id": 27026, "url": "http://patches.dpdk.org/api/series/27026/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27026", "date": "2023-02-15T17:09:33", "name": "test/bbdev: changes for 23.03", "version": 2, "mbox": "http://patches.dpdk.org/series/27026/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/123965/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/123965/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 1944141CA8;\n\tWed, 15 Feb 2023 18:13:40 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A922E42D30;\n\tWed, 15 Feb 2023 18:13:06 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id 1AE8241141\n for <dev@dpdk.org>; Wed, 15 Feb 2023 18:13:00 +0100 (CET)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 15 Feb 2023 09:09:59 -0800", "from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103])\n by FMSMGA003.fm.intel.com with ESMTP; 15 Feb 2023 09:09:57 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1676481181; x=1708017181;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=YbqSPEQMfjcvB8EsBe9R/pEXrCtHt7MVWdL5NTioHGw=;\n b=Mhj7Kvk5WrOj86IFi5WNsR5Z6JIFdBL19jJBTeGR2S9xtc2Q7kfyNBIK\n jZlxqnkUDGgr6IlwJsJuP3GSFfYP2RHu3ExzR8SqyGh7T+eUvYMPxSuoT\n M7SRXP1hGtvrLoHyDdFsCHUeqxvFMaTOshf4LYn9aeSrahWLId42Zw+e1\n 9IfQ6lnx6x7BqfFeUeA9FixRYMDfHWhPT0NMTmxdSAg//fPozy0UTdOmj\n /51DMN7W8Z+fNYVb0x34bu6LHF0xDFC1Rofqu63sR06Ia8OVqTzPPlYCX\n EJLtJ2qOTdijJXfFiCvwPghiThv2aGKTR6VFGCj827H6d4CnA65PQ+moB Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10622\"; a=\"332789800\"", "E=Sophos;i=\"5.97,300,1669104000\"; d=\"scan'208\";a=\"332789800\"", "E=McAfee;i=\"6500,9779,10622\"; a=\"758489616\"", "E=Sophos;i=\"5.97,300,1669104000\"; d=\"scan'208\";a=\"758489616\"" ], "X-ExtLoop1": "1", "From": "Hernan Vargas <hernan.vargas@intel.com>", "To": "dev@dpdk.org, maxime.coquelin@redhat.com, gakhil@marvell.com,\n trix@redhat.com", "Cc": "nicolas.chautru@intel.com, qi.z.zhang@intel.com,\n Hernan Vargas <hernan.vargas@intel.com>", "Subject": "[PATCH v2 04/16] test/bbdev: add timeout for latency tests", "Date": "Wed, 15 Feb 2023 09:09:37 -0800", "Message-Id": "<20230215170949.60569-5-hernan.vargas@intel.com>", "X-Mailer": "git-send-email 2.37.1", "In-Reply-To": "<20230215170949.60569-1-hernan.vargas@intel.com>", "References": "<20230215170949.60569-1-hernan.vargas@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "Add a timeout to force exit the latency tests in case dequeue never\nhappens.\n\nSigned-off-by: Hernan Vargas <hernan.vargas@intel.com>\n---\n app/test-bbdev/test_bbdev_perf.c | 24 +++++++++++++++++++-----\n 1 file changed, 19 insertions(+), 5 deletions(-)", "diff": "diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c\nindex 19b9a5b119..dede0f900e 100644\n--- a/app/test-bbdev/test_bbdev_perf.c\n+++ b/app/test-bbdev/test_bbdev_perf.c\n@@ -26,6 +26,7 @@\n \n #define MAX_QUEUES RTE_MAX_LCORE\n #define TEST_REPETITIONS 100\n+#define TIME_OUT_POLL 1e8\n #define WAIT_OFFLOAD_US 1000\n \n #ifdef RTE_BASEBAND_FPGA_LTE_FEC\n@@ -4546,6 +4547,7 @@ latency_test_ldpc_dec(struct rte_mempool *mempool,\n \n \tfor (i = 0, dequeued = 0; dequeued < num_to_process; ++i) {\n \t\tuint16_t enq = 0, deq = 0;\n+\t\tuint32_t time_out = 0;\n \t\tbool first_time = true;\n \t\tlast_time = 0;\n \n@@ -4597,7 +4599,8 @@ latency_test_ldpc_dec(struct rte_mempool *mempool,\n \t\t\t\tlast_time = rte_rdtsc_precise() - start_time;\n \t\t\t\tfirst_time = false;\n \t\t\t}\n-\t\t} while (unlikely(burst_sz != deq));\n+\t\t\ttime_out++;\n+\t\t} while ((burst_sz != deq) && (time_out < TIME_OUT_POLL));\n \n \t\t*max_time = RTE_MAX(*max_time, last_time);\n \t\t*min_time = RTE_MIN(*min_time, last_time);\n@@ -4606,7 +4609,12 @@ latency_test_ldpc_dec(struct rte_mempool *mempool,\n \t\tif (extDdr)\n \t\t\tretrieve_harq_ddr(dev_id, queue_id, ops_enq, burst_sz);\n \n-\t\tif (test_vector.op_type != RTE_BBDEV_OP_NONE) {\n+\t\tif (burst_sz != deq) {\n+\t\t\tstruct rte_bbdev_info info;\n+\t\t\tret = TEST_FAILED;\n+\t\t\trte_bbdev_info_get(dev_id, &info);\n+\t\t\tTEST_ASSERT_SUCCESS(ret, \"Dequeue timeout!\");\n+\t\t} else if (test_vector.op_type != RTE_BBDEV_OP_NONE) {\n \t\t\tret = validate_ldpc_dec_op(ops_deq, burst_sz, ref_op,\n \t\t\t\t\tvector_mask);\n \t\t\tTEST_ASSERT_SUCCESS(ret, \"Validation failed!\");\n@@ -4632,6 +4640,7 @@ latency_test_enc(struct rte_mempool *mempool,\n \n \tfor (i = 0, dequeued = 0; dequeued < num_to_process; ++i) {\n \t\tuint16_t enq = 0, deq = 0;\n+\t\tuint32_t time_out = 0;\n \t\tbool first_time = true;\n \t\tlast_time = 0;\n \n@@ -4667,13 +4676,18 @@ latency_test_enc(struct rte_mempool *mempool,\n \t\t\t\tlast_time += rte_rdtsc_precise() - start_time;\n \t\t\t\tfirst_time = false;\n \t\t\t}\n-\t\t} while (unlikely(burst_sz != deq));\n+\t\t\ttime_out++;\n+\t\t} while ((burst_sz != deq) && (time_out < TIME_OUT_POLL));\n \n \t\t*max_time = RTE_MAX(*max_time, last_time);\n \t\t*min_time = RTE_MIN(*min_time, last_time);\n \t\t*total_time += last_time;\n-\n-\t\tif (test_vector.op_type != RTE_BBDEV_OP_NONE) {\n+\t\tif (burst_sz != deq) {\n+\t\t\tstruct rte_bbdev_info info;\n+\t\t\tret = TEST_FAILED;\n+\t\t\trte_bbdev_info_get(dev_id, &info);\n+\t\t\tTEST_ASSERT_SUCCESS(ret, \"Dequeue timeout!\");\n+\t\t} else if (test_vector.op_type != RTE_BBDEV_OP_NONE) {\n \t\t\tret = validate_enc_op(ops_deq, burst_sz, ref_op);\n \t\t\tTEST_ASSERT_SUCCESS(ret, \"Validation failed!\");\n \t\t}\n", "prefixes": [ "v2", "04/16" ] }{ "id": 123965, "url": "