get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 128793,
    "url": "http://patchwork.dpdk.org/api/patches/128793/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230619124528.3967275-5-ktejasree@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20230619124528.3967275-5-ktejasree@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230619124528.3967275-5-ktejasree@marvell.com",
    "date": "2023-06-19T12:45:24",
    "name": "[4/8] crypto/cnxk: enable context cache for 103XX",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e0339fdd17026b81aa6c154e1be4d9f458269805",
    "submitter": {
        "id": 1789,
        "url": "http://patchwork.dpdk.org/api/people/1789/?format=api",
        "name": "Tejasree Kondoj",
        "email": "ktejasree@marvell.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230619124528.3967275-5-ktejasree@marvell.com/mbox/",
    "series": [
        {
            "id": 28566,
            "url": "http://patchwork.dpdk.org/api/series/28566/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=28566",
            "date": "2023-06-19T12:45:20",
            "name": "fixes and improvements to CNXK crypto PMD",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/28566/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/128793/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/128793/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 63C4142CFA;\n\tMon, 19 Jun 2023 14:46:04 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B066242D2C;\n\tMon, 19 Jun 2023 14:45:45 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 6F6C3410F6\n for <dev@dpdk.org>; Mon, 19 Jun 2023 14:45:44 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 35JBOGin020833 for <dev@dpdk.org>; Mon, 19 Jun 2023 05:45:43 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3r9a6n5hmc-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Mon, 19 Jun 2023 05:45:43 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Mon, 19 Jun 2023 05:45:42 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Mon, 19 Jun 2023 05:45:42 -0700",
            "from hyd1554.marvell.com (unknown [10.29.57.11])\n by maili.marvell.com (Postfix) with ESMTP id 0AAF85C68EB;\n Mon, 19 Jun 2023 05:45:39 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=D5yrDooSPeeEyhPu5UV7ZZrQjiWUeS5qWoBUuOQeE7I=;\n b=ZqkSsuCuwuwtLhgEXiTy4YW8MRLNwr7jVjPgHx6Fr/BQmEmKJEgSYcXW3HBxESvpEv51\n Wy5cO0Sr/9HlgXDZWjvgUTTZrdjGSBfdbvgKJ5YhL7IIPQTt+PuFXlO6QdfCLvrLhcnJ\n BIqRKC22jPAYsWMcIKrCKwX4nX9SqHcrBdI2iUeB0oFNDuwQhAlC3UjqQCFLjTwF434x\n D8tVweUuxxCbW4oapgUx+XbrxXA+3/g02c9eOTYHWqHKJX21ZOtBGlgh/PwIebVwP7PV\n TQhdbXrbIBzNYldvDZluXowfGG2p/eQW+2iDmBPMG9R710kMvNrDg9E/MSZ9qNoh5ImP hw==",
        "From": "Tejasree Kondoj <ktejasree@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>",
        "CC": "Anoob Joseph <anoobj@marvell.com>, Aakash Sasidharan\n <asasidharan@marvell.com>, Gowrishankar Muthukrishnan\n <gmuthukrishn@marvell.com>,\n Vidya Sagar Velumuri <vvelumuri@marvell.com>, <dev@dpdk.org>",
        "Subject": "[PATCH 4/8] crypto/cnxk: enable context cache for 103XX",
        "Date": "Mon, 19 Jun 2023 18:15:24 +0530",
        "Message-ID": "<20230619124528.3967275-5-ktejasree@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230619124528.3967275-1-ktejasree@marvell.com>",
        "References": "<20230619124528.3967275-1-ktejasree@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "j_Uy5hmc9oVI_Co8YQYVBGtiebO2pZtq",
        "X-Proofpoint-GUID": "j_Uy5hmc9oVI_Co8YQYVBGtiebO2pZtq",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26\n definitions=2023-06-19_09,2023-06-16_01,2023-05-22_02",
        "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": "Enabling context cache for SE instructions on 106B0\nand 103XX.\n\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\n---\n drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 6 +++---\n drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 8 ++++++++\n 2 files changed, 11 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_ops.c b/drivers/crypto/cnxk/cnxk_cryptodev_ops.c\nindex 2018b0eba5..d0c99d37e8 100644\n--- a/drivers/crypto/cnxk/cnxk_cryptodev_ops.c\n+++ b/drivers/crypto/cnxk/cnxk_cryptodev_ops.c\n@@ -653,7 +653,7 @@ cnxk_cpt_inst_w7_get(struct cnxk_se_sess *sess, struct roc_cpt *roc_cpt)\n \n \tinst_w7.s.cptr = (uint64_t)&sess->roc_se_ctx.se_ctx;\n \n-\tif (roc_errata_cpt_hang_on_mixed_ctx_val())\n+\tif (hw_ctx_cache_enable())\n \t\tinst_w7.s.ctx_val = 1;\n \telse\n \t\tinst_w7.s.cptr += 8;\n@@ -729,7 +729,7 @@ sym_session_configure(struct roc_cpt *roc_cpt, struct rte_crypto_sym_xform *xfor\n \n \tsess_priv->cpt_inst_w7 = cnxk_cpt_inst_w7_get(sess_priv, roc_cpt);\n \n-\tif (roc_errata_cpt_hang_on_mixed_ctx_val())\n+\tif (hw_ctx_cache_enable())\n \t\troc_se_ctx_init(&sess_priv->roc_se_ctx);\n \n \treturn 0;\n@@ -755,7 +755,7 @@ sym_session_clear(struct rte_cryptodev_sym_session *sess, bool is_session_less)\n \tstruct cnxk_se_sess *sess_priv = (struct cnxk_se_sess *)sess;\n \n \t/* Trigger CTX flush + invalidate to remove from CTX_CACHE */\n-\tif (roc_errata_cpt_hang_on_mixed_ctx_val())\n+\tif (hw_ctx_cache_enable())\n \t\troc_cpt_lf_ctx_flush(sess_priv->lf, &sess_priv->roc_se_ctx.se_ctx, true);\n \n \tif (sess_priv->roc_se_ctx.auth_key != NULL)\ndiff --git a/drivers/crypto/cnxk/cnxk_cryptodev_ops.h b/drivers/crypto/cnxk/cnxk_cryptodev_ops.h\nindex b1a40e8e25..6ee4cbda70 100644\n--- a/drivers/crypto/cnxk/cnxk_cryptodev_ops.h\n+++ b/drivers/crypto/cnxk/cnxk_cryptodev_ops.h\n@@ -13,6 +13,7 @@\n #include \"roc_constants.h\"\n #include \"roc_cpt.h\"\n #include \"roc_cpt_sg.h\"\n+#include \"roc_errata.h\"\n #include \"roc_se.h\"\n \n #define CNXK_CPT_MIN_HEADROOM_REQ\t 32\n@@ -180,4 +181,11 @@ alloc_op_meta(struct roc_se_buf_ptr *buf, int32_t len, struct rte_mempool *cpt_m\n \n \treturn mdata;\n }\n+\n+static __rte_always_inline bool\n+hw_ctx_cache_enable(void)\n+{\n+\treturn roc_errata_cpt_hang_on_mixed_ctx_val() || roc_model_is_cn10ka_b0() ||\n+\t       roc_model_is_cn10kb_a0();\n+}\n #endif /* _CNXK_CRYPTODEV_OPS_H_ */\n",
    "prefixes": [
        "4/8"
    ]
}