get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 104994,
    "url": "http://patchwork.dpdk.org/api/patches/104994/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20211207183143.27145-2-lironh@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": "<20211207183143.27145-2-lironh@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211207183143.27145-2-lironh@marvell.com",
    "date": "2021-12-07T18:31:40",
    "name": "[v4,1/4] common/cnxk: add REE HW definitions",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "596c24f1b65a229e8c8eaca582721a62154437f7",
    "submitter": {
        "id": 996,
        "url": "http://patchwork.dpdk.org/api/people/996/?format=api",
        "name": "Liron Himi",
        "email": "lironh@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patchwork.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20211207183143.27145-2-lironh@marvell.com/mbox/",
    "series": [
        {
            "id": 20887,
            "url": "http://patchwork.dpdk.org/api/series/20887/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=20887",
            "date": "2021-12-07T18:31:39",
            "name": "regex/cn9k: use cnxk infrastructure",
            "version": 4,
            "mbox": "http://patchwork.dpdk.org/series/20887/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/104994/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/104994/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 36CA7A0093;\n\tTue,  7 Dec 2021 19:32:03 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id ECF5A426E0;\n\tTue,  7 Dec 2021 19:31:56 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 0C85F41229\n for <dev@dpdk.org>; Tue,  7 Dec 2021 19:31:55 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 1B7FUFg6018337\n for <dev@dpdk.org>; Tue, 7 Dec 2021 10:31:55 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3ct2q92wmc-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Tue, 07 Dec 2021 10:31:54 -0800",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Tue, 7 Dec 2021 10:31:53 -0800",
            "from pt-lxl0023.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Tue, 7 Dec 2021 10:31:52 -0800"
        ],
        "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=IL998KnSVribeIkGKCP8Zh+/dQQwVG49IXCwpOALq8I=;\n b=PbBSZjple7hBUFAcwz2xPbfXt8pGQCawgwqI0OJPamjaGKkIbnEax5L0DzdWqG3X/EuO\n PVAfNBiDb/DEuq00NmUPToybA8AjyhqnVsk7EI5mg61YQwvcGDrEIY96Pu2dSZ5erMQy\n P9BMVHN5F4hTiG3Bvfexs5ZGD5JgF6ewd9BS+h7DoAJems0qlDSM+vU7GkaXuIy43uoM\n HpCWg6vRw38dHxYoSKT86N72825wwEkn3wcJFv0gj+k1CwOmHar4aO87DQTLOFMK/IOg\n TRMPPGf0cAf5tDRIJDhnGBfr7RJpuuHpVWB2CIPHKZ9Ds+qGs7rfLeINMvGlRiAszO3m 4w==",
        "From": "<lironh@marvell.com>",
        "To": "<jerinj@marvell.com>",
        "CC": "<dev@dpdk.org>, Liron Himi <lironh@marvell.com>",
        "Subject": "[PATCH v4 1/4] common/cnxk: add REE HW definitions",
        "Date": "Tue, 7 Dec 2021 20:31:40 +0200",
        "Message-ID": "<20211207183143.27145-2-lironh@marvell.com>",
        "X-Mailer": "git-send-email 2.28.0",
        "In-Reply-To": "<20211207183143.27145-1-lironh@marvell.com>",
        "References": "<20211129194736.14518-3-lironh@marvell.com>\n <20211207183143.27145-1-lironh@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "29GmY0_yMkZkFHD0pnHx2Js18VfDWEov",
        "X-Proofpoint-ORIG-GUID": "29GmY0_yMkZkFHD0pnHx2Js18VfDWEov",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513\n definitions=2021-12-07_07,2021-12-06_02,2021-12-02_01",
        "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": "From: Liron Himi <lironh@marvell.com>\n\nadding REE (Regular Expression Engine) HW definitions\n\nSigned-off-by: Liron Himi <lironh@marvell.com>\n---\n drivers/common/cnxk/hw/ree.h | 126 +++++++++++++++++++++++++++++++++++\n drivers/common/cnxk/hw/rvu.h |   5 ++\n 2 files changed, 131 insertions(+)\n create mode 100644 drivers/common/cnxk/hw/ree.h",
    "diff": "diff --git a/drivers/common/cnxk/hw/ree.h b/drivers/common/cnxk/hw/ree.h\nnew file mode 100644\nindex 0000000000..30af61d704\n--- /dev/null\n+++ b/drivers/common/cnxk/hw/ree.h\n@@ -0,0 +1,126 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(C) 2021 Marvell.\n+ */\n+\n+#ifndef __REE_HW_H__\n+#define __REE_HW_H__\n+\n+/* REE instruction queue length */\n+#define REE_IQ_LEN (1 << 13)\n+\n+#define REE_DEFAULT_CMD_QLEN REE_IQ_LEN\n+\n+/* Status register bits */\n+#define REE_STATUS_PMI_EOJ_BIT\t   BIT_ULL(14)\n+#define REE_STATUS_PMI_SOJ_BIT\t   BIT_ULL(13)\n+#define REE_STATUS_MP_CNT_DET_BIT  BIT_ULL(7)\n+#define REE_STATUS_MM_CNT_DET_BIT  BIT_ULL(6)\n+#define REE_STATUS_ML_CNT_DET_BIT  BIT_ULL(5)\n+#define REE_STATUS_MST_CNT_DET_BIT BIT_ULL(4)\n+#define REE_STATUS_MPT_CNT_DET_BIT BIT_ULL(3)\n+\n+/* Register offsets */\n+/* REE LF registers */\n+#define REE_LF_DONE_INT\t\t0x120ull\n+#define REE_LF_DONE_INT_W1S\t0x130ull\n+#define REE_LF_DONE_INT_ENA_W1S 0x138ull\n+#define REE_LF_DONE_INT_ENA_W1C 0x140ull\n+#define REE_LF_MISC_INT\t\t0x300ull\n+#define REE_LF_MISC_INT_W1S\t0x310ull\n+#define REE_LF_MISC_INT_ENA_W1S 0x320ull\n+#define REE_LF_MISC_INT_ENA_W1C 0x330ull\n+#define REE_LF_ENA\t\t0x10ull\n+#define REE_LF_SBUF_ADDR\t0x20ull\n+#define REE_LF_DONE\t\t0x100ull\n+#define REE_LF_DONE_ACK\t\t0x110ull\n+#define REE_LF_DONE_WAIT\t0x148ull\n+#define REE_LF_DOORBELL\t\t0x400ull\n+#define REE_LF_OUTSTAND_JOB\t0x410ull\n+\n+/* BAR 0 */\n+#define REE_AF_REEXM_MAX_MATCH (0x80c8ull)\n+#define REE_AF_QUE_SBUF_CTL(a) (0x1200ull | (uint64_t)(a) << 3)\n+#define REE_PRIV_LF_CFG(a)     (0x41000ull | (uint64_t)(a) << 3)\n+\n+#define REE_AF_QUEX_GMCTL(a) (0x800 | (a) << 3)\n+\n+#define REE_AF_INT_VEC_RAS\t(0x0ull)\n+#define REE_AF_INT_VEC_RVU\t(0x1ull)\n+#define REE_AF_INT_VEC_QUE_DONE (0x2ull)\n+#define REE_AF_INT_VEC_AQ\t(0x3ull)\n+\n+\n+#define REE_LF_INT_VEC_QUE_DONE (0x0ull)\n+#define REE_LF_INT_VEC_MISC\t(0x1ull)\n+\n+#define REE_LF_SBUF_ADDR_OFF_MASK GENMASK_ULL(6, 0)\n+#define REE_LF_SBUF_ADDR_PTR_MASK GENMASK_ULL(52, 7)\n+\n+#define REE_LF_ENA_ENA_MASK BIT_ULL(0)\n+\n+#define REE_LF_BAR2(vf, q_id)                                                  \\\n+\t((vf)->dev->bar2 + (((vf)->block_address << 20) | ((q_id) << 12)))\n+\n+#define REE_QUEUE_HI_PRIO 0x1\n+\n+enum ree_desc_type_e {\n+\tREE_TYPE_JOB_DESC = 0x0,\n+\tREE_TYPE_RESULT_DESC = 0x1,\n+\tREE_TYPE_ENUM_LAST = 0x2\n+};\n+\n+union ree_res_status {\n+\tuint64_t u;\n+\tstruct {\n+\t\tuint64_t job_type : 3;\n+\t\tuint64_t mpt_cnt_det : 1;\n+\t\tuint64_t mst_cnt_det : 1;\n+\t\tuint64_t ml_cnt_det : 1;\n+\t\tuint64_t mm_cnt_det : 1;\n+\t\tuint64_t mp_cnt_det : 1;\n+\t\tuint64_t mode : 2;\n+\t\tuint64_t reserved_10_11 : 2;\n+\t\tuint64_t reserved_12_12 : 1;\n+\t\tuint64_t pmi_soj : 1;\n+\t\tuint64_t pmi_eoj : 1;\n+\t\tuint64_t reserved_15_15 : 1;\n+\t\tuint64_t reserved_16_63 : 48;\n+\t} s;\n+};\n+\n+union ree_res {\n+\tuint64_t u[8];\n+\tstruct ree_res_s_98 {\n+\t\tuint64_t done : 1;\n+\t\tuint64_t hwjid : 7;\n+\t\tuint64_t ree_res_job_id : 24;\n+\t\tuint64_t ree_res_status : 16;\n+\t\tuint64_t ree_res_dmcnt : 8;\n+\t\tuint64_t ree_res_mcnt : 8;\n+\t\tuint64_t ree_meta_ptcnt : 16;\n+\t\tuint64_t ree_meta_icnt : 16;\n+\t\tuint64_t ree_meta_lcnt : 16;\n+\t\tuint64_t ree_pmi_min_byte_ptr : 16;\n+\t\tuint64_t ree_err : 1;\n+\t\tuint64_t reserved_129_190 : 62;\n+\t\tuint64_t doneint : 1;\n+\t\tuint64_t reserved_192_255 : 64;\n+\t\tuint64_t reserved_256_319 : 64;\n+\t\tuint64_t reserved_320_383 : 64;\n+\t\tuint64_t reserved_384_447 : 64;\n+\t\tuint64_t reserved_448_511 : 64;\n+\t} s;\n+};\n+\n+union ree_match {\n+\tuint64_t u;\n+\tstruct {\n+\t\tuint64_t ree_rule_id : 32;\n+\t\tuint64_t start_ptr : 14;\n+\t\tuint64_t reserved_46_47 : 2;\n+\t\tuint64_t match_length : 15;\n+\t\tuint64_t reserved_63_6 : 1;\n+\t} s;\n+};\n+\n+#endif /* __REE_HW_H__ */\ndiff --git a/drivers/common/cnxk/hw/rvu.h b/drivers/common/cnxk/hw/rvu.h\nindex 632d9499ea..daf758f0b5 100644\n--- a/drivers/common/cnxk/hw/rvu.h\n+++ b/drivers/common/cnxk/hw/rvu.h\n@@ -130,6 +130,7 @@\n #define RVU_BLOCK_TYPE_RAD  (0xdull)\n #define RVU_BLOCK_TYPE_DFA  (0xeull)\n #define RVU_BLOCK_TYPE_HNA  (0xfull)\n+#define RVU_BLOCK_TYPE_REE  (0xeull)\n \n #define RVU_BLOCK_ADDR_RVUM    (0x0ull)\n #define RVU_BLOCK_ADDR_LMT     (0x1ull)\n@@ -147,6 +148,8 @@\n #define RVU_BLOCK_ADDR_NDC2    (0xeull)\n #define RVU_BLOCK_ADDR_R_END   (0x1full)\n #define RVU_BLOCK_ADDR_R_START (0x14ull)\n+#define RVU_BLOCK_ADDR_REE0    (0x14ull)\n+#define RVU_BLOCK_ADDR_REE1    (0x15ull)\n \n #define RVU_VF_INT_VEC_MBOX (0x0ull)\n \n@@ -167,6 +170,7 @@\n #define NPA_AF_BAR2_SEL\t (0x9000000ull)\n #define CPT_AF_BAR2_SEL\t (0x9000000ull)\n #define RVU_AF_BAR2_SEL\t (0x9000000ull)\n+#define REE_AF_BAR2_SEL\t (0x9000000ull)\n \n #define AF_BAR2_ALIASX(a, b)                                                   \\\n \t(0x9100000ull | (uint64_t)(a) << 12 | (uint64_t)(b))\n@@ -177,6 +181,7 @@\n #define NPA_AF_BAR2_ALIASX(a, b)  AF_BAR2_ALIASX(0, b)\n #define CPT_AF_BAR2_ALIASX(a, b)  AF_BAR2_ALIASX(a, b)\n #define RVU_AF_BAR2_ALIASX(a, b)  AF_BAR2_ALIASX(a, b)\n+#define REE_AF_BAR2_ALIASX(a, b)  AF_BAR2_ALIASX(a, b)\n \n /* Structures definitions */\n \n",
    "prefixes": [
        "v4",
        "1/4"
    ]
}