get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55624,
    "url": "http://patches.dpdk.org/api/patches/55624/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190628182354.228-20-pbhagavatula@marvell.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": "<20190628182354.228-20-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190628182354.228-20-pbhagavatula@marvell.com",
    "date": "2019-06-28T18:23:30",
    "name": "[v3,19/42] event/octeontx2: add worker dual GWS enqueue functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "ae3fb8764d5f62bcea2cbe0682216aee2500545e",
    "submitter": {
        "id": 1183,
        "url": "http://patches.dpdk.org/api/people/1183/?format=api",
        "name": "Pavan Nikhilesh Bhagavatula",
        "email": "pbhagavatula@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerin.jacob@caviumnetworks.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190628182354.228-20-pbhagavatula@marvell.com/mbox/",
    "series": [
        {
            "id": 5227,
            "url": "http://patches.dpdk.org/api/series/5227/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5227",
            "date": "2019-06-28T18:23:11",
            "name": "OCTEONTX2 event device driver",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/5227/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/55624/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/55624/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "X-BeenThere": "dev@dpdk.org",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "MIME-Version": "1.0",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>, Pavan Nikhilesh <pbhagavatula@marvell.com>",
        "CC": "<dev@dpdk.org>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:, ,\n\tdefinitions=2019-06-28_08:, , signatures=0",
        "In-Reply-To": "<20190628182354.228-1-pbhagavatula@marvell.com>",
        "Delivered-To": "patchwork@dpdk.org",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-Mailer": "git-send-email 2.17.1",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n\th=from : to : cc :\n\tsubject : date : message-id : in-reply-to : references : mime-version\n\t: content-transfer-encoding : content-type; s=pfpt0818;\n\tbh=H2e8XHnNX3HsyRMXQCs/qfVOOfDoJJ9PAscdDpf9/fI=;\n\tb=tnXl9MK8qkSda6z475OiRS+TbB0hJqmhAJLYSE0jDybVSRVWdapi/jfjvMqUh9OvIe7g\n\tuHchUEu9AP1wGsulSDx8XTd7MrE458PuHOQYVyY8kJy2B5ljY8py0wwXFL/dNg9lExNk\n\tj7dzWaWCD9V0YE0Jt5xPfaNwDgOXJ3YU8h+UoSkny2lasG3VgDa+uCfcRTp+QVwBfcpE\n\tArODt8NazfC1TrURRBL8FKlgVQGeEshrzxs3W5t/n6ZjwityKbMat9dgrCghJ2ctqSCC\n\tGepJjNB4/t8vXrS8kKVdiyakAEmrc7uLRYXZdM5ah+nnPbSQZSHC0qb97KthzW+gJS/R\n\taw== ",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D213C1B9F8;\n\tFri, 28 Jun 2019 20:25:09 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n\t[67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 4E15F1B9BE\n\tfor <dev@dpdk.org>; Fri, 28 Jun 2019 20:24:43 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n\tby mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id\n\tx5SIKhoQ010889 for <dev@dpdk.org>; Fri, 28 Jun 2019 11:24:42 -0700",
            "from sc-exch04.marvell.com ([199.233.58.184])\n\tby mx0a-0016f401.pphosted.com with ESMTP id 2tdd77agmk-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n\tfor <dev@dpdk.org>; Fri, 28 Jun 2019 11:24:42 -0700",
            "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com\n\t(10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tFri, 28 Jun 2019 11:24:41 -0700",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com\n\t(10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n\tTransport; Fri, 28 Jun 2019 11:24:41 -0700",
            "from BG-LT7430.marvell.com (unknown [10.28.17.12])\n\tby maili.marvell.com (Postfix) with ESMTP id 46E233F7040;\n\tFri, 28 Jun 2019 11:24:40 -0700 (PDT)"
        ],
        "X-Original-To": "patchwork@dpdk.org",
        "Content-Type": "text/plain",
        "Message-ID": "<20190628182354.228-20-pbhagavatula@marvell.com>",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Version": "2.1.15",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "References": "<20190628182354.228-1-pbhagavatula@marvell.com>",
        "Subject": "[dpdk-dev] [PATCH v3 19/42] event/octeontx2: add worker dual GWS\n\tenqueue functions",
        "Date": "Fri, 28 Jun 2019 23:53:30 +0530",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Precedence": "list"
    },
    "content": "From: Pavan Nikhilesh <pbhagavatula@marvell.com>\n\nAdd dual workslot mode event enqueue functions.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\nSigned-off-by: Jerin Jacob <jerinj@marvell.com>\n---\n drivers/event/octeontx2/otx2_evdev.h       |   9 ++\n drivers/event/octeontx2/otx2_worker_dual.c | 135 +++++++++++++++++++++\n 2 files changed, 144 insertions(+)",
    "diff": "diff --git a/drivers/event/octeontx2/otx2_evdev.h b/drivers/event/octeontx2/otx2_evdev.h\nindex 72de9ace5..fd2a4c330 100644\n--- a/drivers/event/octeontx2/otx2_evdev.h\n+++ b/drivers/event/octeontx2/otx2_evdev.h\n@@ -187,6 +187,7 @@ parse_kvargs_value(const char *key, const char *value, void *opaque)\n \treturn 0;\n }\n \n+/* Single WS API's */\n uint16_t otx2_ssogws_enq(void *port, const struct rte_event *ev);\n uint16_t otx2_ssogws_enq_burst(void *port, const struct rte_event ev[],\n \t\t\t       uint16_t nb_events);\n@@ -204,6 +205,14 @@ uint16_t otx2_ssogws_deq_timeout(void *port, struct rte_event *ev,\n uint16_t otx2_ssogws_deq_timeout_burst(void *port, struct rte_event ev[],\n \t\t\t\t       uint16_t nb_events,\n \t\t\t\t       uint64_t timeout_ticks);\n+/* Dual WS API's */\n+uint16_t otx2_ssogws_dual_enq(void *port, const struct rte_event *ev);\n+uint16_t otx2_ssogws_dual_enq_burst(void *port, const struct rte_event ev[],\n+\t\t\t\t    uint16_t nb_events);\n+uint16_t otx2_ssogws_dual_enq_new_burst(void *port, const struct rte_event ev[],\n+\t\t\t\t\tuint16_t nb_events);\n+uint16_t otx2_ssogws_dual_enq_fwd_burst(void *port, const struct rte_event ev[],\n+\t\t\t\t\tuint16_t nb_events);\n \n /* Init and Fini API's */\n int otx2_sso_init(struct rte_eventdev *event_dev);\ndiff --git a/drivers/event/octeontx2/otx2_worker_dual.c b/drivers/event/octeontx2/otx2_worker_dual.c\nindex f762436aa..661c78c23 100644\n--- a/drivers/event/octeontx2/otx2_worker_dual.c\n+++ b/drivers/event/octeontx2/otx2_worker_dual.c\n@@ -4,3 +4,138 @@\n \n #include \"otx2_worker_dual.h\"\n #include \"otx2_worker.h\"\n+\n+static __rte_noinline uint8_t\n+otx2_ssogws_dual_new_event(struct otx2_ssogws_dual *ws,\n+\t\t\t   const struct rte_event *ev)\n+{\n+\tconst uint32_t tag = (uint32_t)ev->event;\n+\tconst uint8_t new_tt = ev->sched_type;\n+\tconst uint64_t event_ptr = ev->u64;\n+\tconst uint16_t grp = ev->queue_id;\n+\n+\tif (ws->xaq_lmt <= *ws->fc_mem)\n+\t\treturn 0;\n+\n+\totx2_ssogws_dual_add_work(ws, event_ptr, tag, new_tt, grp);\n+\n+\treturn 1;\n+}\n+\n+static __rte_always_inline void\n+otx2_ssogws_dual_fwd_swtag(struct otx2_ssogws_state *ws,\n+\t\t\t   const struct rte_event *ev)\n+{\n+\tconst uint32_t tag = (uint32_t)ev->event;\n+\tconst uint8_t new_tt = ev->sched_type;\n+\tconst uint8_t cur_tt = ws->cur_tt;\n+\n+\t/* 96XX model\n+\t * cur_tt/new_tt     SSO_SYNC_ORDERED SSO_SYNC_ATOMIC SSO_SYNC_UNTAGGED\n+\t *\n+\t * SSO_SYNC_ORDERED        norm           norm             untag\n+\t * SSO_SYNC_ATOMIC         norm           norm\t\t   untag\n+\t * SSO_SYNC_UNTAGGED       norm           norm             NOOP\n+\t */\n+\tif (new_tt == SSO_SYNC_UNTAGGED) {\n+\t\tif (cur_tt != SSO_SYNC_UNTAGGED)\n+\t\t\totx2_ssogws_swtag_untag((struct otx2_ssogws *)ws);\n+\t} else {\n+\t\totx2_ssogws_swtag_norm((struct otx2_ssogws *)ws, tag, new_tt);\n+\t}\n+}\n+\n+static __rte_always_inline void\n+otx2_ssogws_dual_fwd_group(struct otx2_ssogws_state *ws,\n+\t\t\t   const struct rte_event *ev, const uint16_t grp)\n+{\n+\tconst uint32_t tag = (uint32_t)ev->event;\n+\tconst uint8_t new_tt = ev->sched_type;\n+\n+\totx2_write64(ev->u64, OTX2_SSOW_GET_BASE_ADDR(ws->getwrk_op) +\n+\t\t     SSOW_LF_GWS_OP_UPD_WQP_GRP1);\n+\trte_smp_wmb();\n+\totx2_ssogws_swtag_desched((struct otx2_ssogws *)ws, tag, new_tt, grp);\n+}\n+\n+static __rte_always_inline void\n+otx2_ssogws_dual_forward_event(struct otx2_ssogws_dual *ws,\n+\t\t\t       struct otx2_ssogws_state *vws,\n+\t\t\t       const struct rte_event *ev)\n+{\n+\tconst uint8_t grp = ev->queue_id;\n+\n+\t/* Group hasn't changed, Use SWTAG to forward the event */\n+\tif (vws->cur_grp == grp) {\n+\t\totx2_ssogws_dual_fwd_swtag(vws, ev);\n+\t\tws->swtag_req = 1;\n+\t} else {\n+\t/*\n+\t * Group has been changed for group based work pipelining,\n+\t * Use deschedule/add_work operation to transfer the event to\n+\t * new group/core\n+\t */\n+\t\totx2_ssogws_dual_fwd_group(vws, ev, grp);\n+\t}\n+}\n+\n+uint16_t __hot\n+otx2_ssogws_dual_enq(void *port, const struct rte_event *ev)\n+{\n+\tstruct otx2_ssogws_dual *ws = port;\n+\tstruct otx2_ssogws_state *vws = &ws->ws_state[!ws->vws];\n+\n+\tswitch (ev->op) {\n+\tcase RTE_EVENT_OP_NEW:\n+\t\trte_smp_mb();\n+\t\treturn otx2_ssogws_dual_new_event(ws, ev);\n+\tcase RTE_EVENT_OP_FORWARD:\n+\t\totx2_ssogws_dual_forward_event(ws, vws, ev);\n+\t\tbreak;\n+\tcase RTE_EVENT_OP_RELEASE:\n+\t\totx2_ssogws_swtag_flush((struct otx2_ssogws *)vws);\n+\t\tbreak;\n+\tdefault:\n+\t\treturn 0;\n+\t}\n+\n+\treturn 1;\n+}\n+\n+uint16_t __hot\n+otx2_ssogws_dual_enq_burst(void *port, const struct rte_event ev[],\n+\t\t\t   uint16_t nb_events)\n+{\n+\tRTE_SET_USED(nb_events);\n+\treturn otx2_ssogws_dual_enq(port, ev);\n+}\n+\n+uint16_t __hot\n+otx2_ssogws_dual_enq_new_burst(void *port, const struct rte_event ev[],\n+\t\t\t       uint16_t nb_events)\n+{\n+\tstruct otx2_ssogws_dual *ws = port;\n+\tuint16_t i, rc = 1;\n+\n+\trte_smp_mb();\n+\tif (ws->xaq_lmt <= *ws->fc_mem)\n+\t\treturn 0;\n+\n+\tfor (i = 0; i < nb_events && rc; i++)\n+\t\trc = otx2_ssogws_dual_new_event(ws, &ev[i]);\n+\n+\treturn nb_events;\n+}\n+\n+uint16_t __hot\n+otx2_ssogws_dual_enq_fwd_burst(void *port, const struct rte_event ev[],\n+\t\t\t       uint16_t nb_events)\n+{\n+\tstruct otx2_ssogws_dual *ws = port;\n+\tstruct otx2_ssogws_state *vws = &ws->ws_state[!ws->vws];\n+\n+\tRTE_SET_USED(nb_events);\n+\totx2_ssogws_dual_forward_event(ws, vws, ev);\n+\n+\treturn 1;\n+}\n",
    "prefixes": [
        "v3",
        "19/42"
    ]
}