Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/64706/?format=api
http://patches.dpdk.org/api/patches/64706/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200115143211.6176-2-arkadiuszx.kusztal@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": "<20200115143211.6176-2-arkadiuszx.kusztal@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200115143211.6176-2-arkadiuszx.kusztal@intel.com", "date": "2020-01-15T14:32:08", "name": "[v5,1/4] common/qat: remove tail write coalescing feature", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "3d0be55fd0c646fe2b8f060bbc59575e68d93ccd", "submitter": { "id": 452, "url": "http://patches.dpdk.org/api/people/452/?format=api", "name": "Arkadiusz Kusztal", "email": "arkadiuszx.kusztal@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/20200115143211.6176-2-arkadiuszx.kusztal@intel.com/mbox/", "series": [ { "id": 8137, "url": "http://patches.dpdk.org/api/series/8137/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8137", "date": "2020-01-15T14:32:07", "name": "Add dual threading in QAT PMD", "version": 5, "mbox": "http://patches.dpdk.org/series/8137/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/64706/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/64706/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 A3C91A0513;\n\tWed, 15 Jan 2020 15:32:32 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 084AF1C10D;\n\tWed, 15 Jan 2020 15:32:26 +0100 (CET)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by dpdk.org (Postfix) with ESMTP id 5F5311C031\n for <dev@dpdk.org>; Wed, 15 Jan 2020 15:32:22 +0100 (CET)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 15 Jan 2020 06:32:17 -0800", "from akusztax-mobl.ger.corp.intel.com ([10.103.102.194])\n by fmsmga004.fm.intel.com with ESMTP; 15 Jan 2020 06:32:16 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.70,322,1574150400\"; d=\"scan'208\";a=\"248428329\"", "From": "Arek Kusztal <arkadiuszx.kusztal@intel.com>", "To": "dev@dpdk.org", "Cc": "akhil.goyal@nxp.com, fiona.trahe@intel.com, declan.doherty@intel.com,\n Arek Kusztal <arkadiuszx.kusztal@intel.com>", "Date": "Wed, 15 Jan 2020 15:32:08 +0100", "Message-Id": "<20200115143211.6176-2-arkadiuszx.kusztal@intel.com>", "X-Mailer": "git-send-email 2.19.1.windows.1", "In-Reply-To": "<20200115143211.6176-1-arkadiuszx.kusztal@intel.com>", "References": "<20200115143211.6176-1-arkadiuszx.kusztal@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v5 1/4] common/qat: remove tail write coalescing\n\tfeature", "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": "From: Fiona Trahe <fiona.trahe@intel.com>\n\nThe feature Coalescing Tail Writes on Enqueue is removed\nas it is not thread-safe and a dual-thread feature will be added shortly.\n\nSigned-off-by: Fiona Trahe <fiona.trahe@intel.com>\nSigned-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>\n---\n drivers/common/qat/qat_qp.c | 16 +++-------------\n drivers/common/qat/qat_qp.h | 6 ------\n 2 files changed, 3 insertions(+), 19 deletions(-)", "diff": "diff --git a/drivers/common/qat/qat_qp.c b/drivers/common/qat/qat_qp.c\nindex 03f11f8..01ddce0 100644\n--- a/drivers/common/qat/qat_qp.c\n+++ b/drivers/common/qat/qat_qp.c\n@@ -538,7 +538,6 @@ static inline void\n txq_write_tail(struct qat_qp *qp, struct qat_queue *q) {\n \tWRITE_CSR_RING_TAIL(qp->mmap_bar_addr, q->hw_bundle_number,\n \t\t\tq->hw_queue_number, q->tail);\n-\tq->nb_pending_requests = 0;\n \tq->csr_tail = q->tail;\n }\n \n@@ -622,25 +621,20 @@ qat_enqueue_op_burst(void *qp, void **ops, uint16_t nb_ops)\n kick_tail:\n \tqueue->tail = tail;\n \ttmp_qp->stats.enqueued_count += nb_ops_sent;\n-\tqueue->nb_pending_requests += nb_ops_sent;\n-\tif (tmp_qp->inflights16 < QAT_CSR_TAIL_FORCE_WRITE_THRESH ||\n-\t\t queue->nb_pending_requests > QAT_CSR_TAIL_WRITE_THRESH) {\n-\t\ttxq_write_tail(tmp_qp, queue);\n-\t}\n+\ttxq_write_tail(tmp_qp, queue);\n \treturn nb_ops_sent;\n }\n \n uint16_t\n qat_dequeue_op_burst(void *qp, void **ops, uint16_t nb_ops)\n {\n-\tstruct qat_queue *rx_queue, *tx_queue;\n+\tstruct qat_queue *rx_queue;\n \tstruct qat_qp *tmp_qp = (struct qat_qp *)qp;\n \tuint32_t head;\n \tuint32_t resp_counter = 0;\n \tuint8_t *resp_msg;\n \n \trx_queue = &(tmp_qp->rx_q);\n-\ttx_queue = &(tmp_qp->tx_q);\n \thead = rx_queue->head;\n \tresp_msg = (uint8_t *)rx_queue->base_addr + rx_queue->head;\n \n@@ -677,11 +671,7 @@ qat_dequeue_op_burst(void *qp, void **ops, uint16_t nb_ops)\n \t\t\t\t\t\tQAT_CSR_HEAD_WRITE_THRESH)\n \t\t\trxq_free_desc(tmp_qp, rx_queue);\n \t}\n-\t/* also check if tail needs to be advanced */\n-\tif (tmp_qp->inflights16 <= QAT_CSR_TAIL_FORCE_WRITE_THRESH &&\n-\t\ttx_queue->tail != tx_queue->csr_tail) {\n-\t\ttxq_write_tail(tmp_qp, tx_queue);\n-\t}\n+\n \treturn resp_counter;\n }\n \ndiff --git a/drivers/common/qat/qat_qp.h b/drivers/common/qat/qat_qp.h\nindex 980c2ba..9212ca4 100644\n--- a/drivers/common/qat/qat_qp.h\n+++ b/drivers/common/qat/qat_qp.h\n@@ -11,10 +11,6 @@ struct qat_pci_device;\n \n #define QAT_CSR_HEAD_WRITE_THRESH 32U\n /* number of requests to accumulate before writing head CSR */\n-#define QAT_CSR_TAIL_WRITE_THRESH 32U\n-/* number of requests to accumulate before writing tail CSR */\n-#define QAT_CSR_TAIL_FORCE_WRITE_THRESH 256U\n-/* number of inflights below which no tail write coalescing should occur */\n \n typedef int (*build_request_t)(void *op,\n \t\tuint8_t *req, void *op_cookie,\n@@ -64,8 +60,6 @@ struct qat_queue {\n \tuint32_t\tcsr_tail;\t\t/* last written tail value */\n \tuint16_t\tnb_processed_responses;\n \t/* number of responses processed since last CSR head write */\n-\tuint16_t\tnb_pending_requests;\n-\t/* number of requests pending since last CSR tail write */\n };\n \n struct qat_qp {\n", "prefixes": [ "v5", "1/4" ] }{ "id": 64706, "url": "