get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55623,
    "url": "http://patches.dpdk.org/api/patches/55623/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190628182354.228-19-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-19-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190628182354.228-19-pbhagavatula@marvell.com",
    "date": "2019-06-28T18:23:29",
    "name": "[v3,18/42] event/octeontx2: add SSO dual GWS HW device operations",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "b172d6add569d03f0c536bd267b4e76b275efca4",
    "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-19-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/55623/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/55623/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=utjSNRC0hhjBwgRykYmtClWSiMmGih2ASsCnKSfb7IE=;\n\tb=gPUa1+7J432OIjLPcZIjD4Y4KVjTeDeLzezobih10p8Y0K+YECZIj2l8Wlhf04mAFk5G\n\tktA6Hq+OweQzQyqB37+lGB8FLJk2h0jKxlvm9d3mjapROgHeLuA/IsKKj2jpUma1EJex\n\tTz+QQ3n7b4HSip6wa8fJzuA3RRCKCdnKVOTebvmo0npuXWyeKQRJZJ3YGZxgwSmpzVjk\n\tVf8buh7U7VJNygL8HnB9HS0YAB29trMINovWzUlecJbwEMI4CaQbUECbFYiYqtRG4gwB\n\tl13I+kAGE6GuuozP34JNgs07kMpzkKFIrhlf0f2+Xrk8sjJxCILc3+3o2kaADYRnoWX1\n\tCA== ",
        "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 496341B9F4;\n\tFri, 28 Jun 2019 20:25:07 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n\t[67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 036ED1B955\n\tfor <dev@dpdk.org>; Fri, 28 Jun 2019 20:24:41 +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\tx5SILhn1011549 for <dev@dpdk.org>; Fri, 28 Jun 2019 11:24:41 -0700",
            "from sc-exch01.marvell.com ([199.233.58.181])\n\tby mx0a-0016f401.pphosted.com with ESMTP id 2tdd77agmc-2\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:41 -0700",
            "from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com\n\t(10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tFri, 28 Jun 2019 11:24:39 -0700",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com\n\t(10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n\tTransport; Fri, 28 Jun 2019 11:24:39 -0700",
            "from BG-LT7430.marvell.com (unknown [10.28.17.12])\n\tby maili.marvell.com (Postfix) with ESMTP id 335433F7040;\n\tFri, 28 Jun 2019 11:24:37 -0700 (PDT)"
        ],
        "X-Original-To": "patchwork@dpdk.org",
        "Content-Type": "text/plain",
        "Message-ID": "<20190628182354.228-19-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 18/42] event/octeontx2: add SSO dual GWS HW\n\tdevice operations",
        "Date": "Fri, 28 Jun 2019 23:53:29 +0530",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Precedence": "list"
    },
    "content": "From: Pavan Nikhilesh <pbhagavatula@marvell.com>\n\nAdd SSO dual workslot mode GWS HW device operations.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\nSigned-off-by: Jerin Jacob <jerinj@marvell.com>\n---\n drivers/event/octeontx2/Makefile           |  1 +\n drivers/event/octeontx2/meson.build        |  1 +\n drivers/event/octeontx2/otx2_worker_dual.c |  6 ++\n drivers/event/octeontx2/otx2_worker_dual.h | 76 ++++++++++++++++++++++\n 4 files changed, 84 insertions(+)\n create mode 100644 drivers/event/octeontx2/otx2_worker_dual.c\n create mode 100644 drivers/event/octeontx2/otx2_worker_dual.h",
    "diff": "diff --git a/drivers/event/octeontx2/Makefile b/drivers/event/octeontx2/Makefile\nindex a3de5ca23..dfecda599 100644\n--- a/drivers/event/octeontx2/Makefile\n+++ b/drivers/event/octeontx2/Makefile\n@@ -30,6 +30,7 @@ LIBABIVER := 1\n # all source are stored in SRCS-y\n #\n \n+SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) += otx2_worker_dual.c\n SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) += otx2_worker.c\n SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) += otx2_evdev.c\n SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) += otx2_evdev_irq.c\ndiff --git a/drivers/event/octeontx2/meson.build b/drivers/event/octeontx2/meson.build\nindex 1d2080b6d..c2a5f3e3d 100644\n--- a/drivers/event/octeontx2/meson.build\n+++ b/drivers/event/octeontx2/meson.build\n@@ -3,6 +3,7 @@\n #\n \n sources = files('otx2_worker.c',\n+\t\t'otx2_worker_dual.c',\n \t\t'otx2_evdev.c',\n \t\t'otx2_evdev_irq.c',\n \t\t)\ndiff --git a/drivers/event/octeontx2/otx2_worker_dual.c b/drivers/event/octeontx2/otx2_worker_dual.c\nnew file mode 100644\nindex 000000000..f762436aa\n--- /dev/null\n+++ b/drivers/event/octeontx2/otx2_worker_dual.c\n@@ -0,0 +1,6 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(C) 2019 Marvell International Ltd.\n+ */\n+\n+#include \"otx2_worker_dual.h\"\n+#include \"otx2_worker.h\"\ndiff --git a/drivers/event/octeontx2/otx2_worker_dual.h b/drivers/event/octeontx2/otx2_worker_dual.h\nnew file mode 100644\nindex 000000000..d8453d1f7\n--- /dev/null\n+++ b/drivers/event/octeontx2/otx2_worker_dual.h\n@@ -0,0 +1,76 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(C) 2019 Marvell International Ltd.\n+ */\n+\n+#ifndef __OTX2_WORKER_DUAL_H__\n+#define __OTX2_WORKER_DUAL_H__\n+\n+#include <rte_branch_prediction.h>\n+#include <rte_common.h>\n+\n+#include <otx2_common.h>\n+#include \"otx2_evdev.h\"\n+\n+/* SSO Operations */\n+static __rte_always_inline uint16_t\n+otx2_ssogws_dual_get_work(struct otx2_ssogws_state *ws,\n+\t\t\t  struct otx2_ssogws_state *ws_pair,\n+\t\t\t  struct rte_event *ev)\n+{\n+\tconst uint64_t set_gw = BIT_ULL(16) | 1;\n+\tunion otx2_sso_event event;\n+\tuint64_t get_work1;\n+\n+#ifdef RTE_ARCH_ARM64\n+\tasm volatile(\n+\t\t\t\"        ldr %[tag], [%[tag_loc]]    \\n\"\n+\t\t\t\"        ldr %[wqp], [%[wqp_loc]]    \\n\"\n+\t\t\t\"        tbz %[tag], 63, done%=      \\n\"\n+\t\t\t\"        sevl                        \\n\"\n+\t\t\t\"rty%=:  wfe                         \\n\"\n+\t\t\t\"        ldr %[tag], [%[tag_loc]]    \\n\"\n+\t\t\t\"        ldr %[wqp], [%[wqp_loc]]    \\n\"\n+\t\t\t\"        tbnz %[tag], 63, rty%=      \\n\"\n+\t\t\t\"done%=: str %[gw], [%[pong]]        \\n\"\n+\t\t\t\"        dmb ld                      \\n\"\n+\t\t\t\"        prfm pldl1keep, [%[wqp]]    \\n\"\n+\t\t\t: [tag] \"=&r\" (event.get_work0),\n+\t\t\t  [wqp] \"=&r\" (get_work1)\n+\t\t\t: [tag_loc] \"r\" (ws->tag_op),\n+\t\t\t  [wqp_loc] \"r\" (ws->wqp_op),\n+\t\t\t  [gw] \"r\" (set_gw),\n+\t\t\t  [pong] \"r\" (ws_pair->getwrk_op)\n+\t\t\t);\n+#else\n+\tevent.get_work0 = otx2_read64(ws->tag_op);\n+\twhile ((BIT_ULL(63)) & event.get_work0)\n+\t\tevent.get_work0 = otx2_read64(ws->tag_op);\n+\tget_work1 = otx2_read64(ws->wqp_op);\n+\totx2_write64(set_gw, ws_pair->getwrk_op);\n+\n+\trte_prefetch0((const void *)get_work1);\n+#endif\n+\tevent.get_work0 = (event.get_work0 & (0x3ull << 32)) << 6 |\n+\t\t(event.get_work0 & (0x3FFull << 36)) << 4 |\n+\t\t(event.get_work0 & 0xffffffff);\n+\tws->cur_tt = event.sched_type;\n+\tws->cur_grp = event.queue_id;\n+\n+\tev->event = event.get_work0;\n+\tev->u64 = get_work1;\n+\n+\treturn !!get_work1;\n+}\n+\n+static __rte_always_inline void\n+otx2_ssogws_dual_add_work(struct otx2_ssogws_dual *ws, const uint64_t event_ptr,\n+\t\t\t  const uint32_t tag, const uint8_t new_tt,\n+\t\t\t  const uint16_t grp)\n+{\n+\tuint64_t add_work0;\n+\n+\tadd_work0 = tag | ((uint64_t)(new_tt) << 32);\n+\totx2_store_pair(add_work0, event_ptr, ws->grps_base[grp]);\n+}\n+\n+#endif\n",
    "prefixes": [
        "v3",
        "18/42"
    ]
}