Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/55576/?format=api
http://patches.dpdk.org/api/patches/55576/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190628075024.404-42-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": "<20190628075024.404-42-pbhagavatula@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190628075024.404-42-pbhagavatula@marvell.com", "date": "2019-06-28T07:50:20", "name": "[v2,41/44] event/octeontx2: add even timer adapter start and stop", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "0661982658d2854c4c7beeeee2acb5f38e556d1d", "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": "jerinj@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190628075024.404-42-pbhagavatula@marvell.com/mbox/", "series": [ { "id": 5217, "url": "http://patches.dpdk.org/api/series/5217/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5217", "date": "2019-06-28T07:49:39", "name": "OCTEONTX2 event device driver", "version": 2, "mbox": "http://patches.dpdk.org/series/5217/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/55576/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/55576/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0A34C1BB5C;\n\tFri, 28 Jun 2019 09:52:56 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n\t[67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 20C041B9ED\n\tfor <dev@dpdk.org>; Fri, 28 Jun 2019 09:51:55 +0200 (CEST)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n\tby mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id\n\tx5S7oS6O025270 for <dev@dpdk.org>; Fri, 28 Jun 2019 00:51:54 -0700", "from sc-exch03.marvell.com ([199.233.58.183])\n\tby mx0b-0016f401.pphosted.com with ESMTP id 2tcvnhc6mb-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n\tfor <dev@dpdk.org>; Fri, 28 Jun 2019 00:51:54 -0700", "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com\n\t(10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tFri, 28 Jun 2019 00:51:52 -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 00:51:52 -0700", "from BG-LT7430.marvell.com (bg-lt7430.marvell.com [10.28.10.255])\n\tby maili.marvell.com (Postfix) with ESMTP id DBE5E3F7040;\n\tFri, 28 Jun 2019 00:51:51 -0700 (PDT)" ], "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=J1khgfkhzS5zaSR9xLKFOQQdcCQrnFowhMLxnwCHOm4=;\n\tb=LY0xc+9t7RsFgJNLNXJWC4vpVEXVnVi+/0LQrQ0v/ZPxs4xiUkTq62x6bLpuF00Rl47i\n\tMW2XkkSBAhtXZ+a76cVsM7KT2tF7sR8mW2UiPVg6qh0Clo6ApTxizWyN+ubn2BmU3rDw\n\tAZNz0iwNQNmOUDc7R2IbR4zOtsjKKlQh4vbthMI1gMuLZ8llhGBG9n5qD6898VHkuPxv\n\trCnBYIfylEGN8Al4Zow8NN1yDqVQY6T44I4hpSiOD1qPUg8Qrw7D7ih4oNc+W5/zvPYa\n\tLlG3rFleGFuC8TvyOnz26RsBkgbPcfg6wTLGybMxfzhlq2/AhncSNgD+hTpXRPgEJ1Hb\n\tOw== ", "From": "<pbhagavatula@marvell.com>", "To": "<jerinj@marvell.com>", "CC": "<dev@dpdk.org>, Pavan Nikhilesh <pbhagavatula@marvell.com>", "Date": "Fri, 28 Jun 2019 13:20:20 +0530", "Message-ID": "<20190628075024.404-42-pbhagavatula@marvell.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190628075024.404-1-pbhagavatula@marvell.com>", "References": "<20190628075024.404-1-pbhagavatula@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:, ,\n\tdefinitions=2019-06-28_02:, , signatures=0", "Subject": "[dpdk-dev] [PATCH v2 41/44] event/octeontx2: add even timer adapter\n\tstart and stop", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Pavan Nikhilesh <pbhagavatula@marvell.com>\n\nAdd event timer adapter start and stop functions.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n drivers/event/octeontx2/otx2_tim_evdev.c | 66 ++++++++++++++++++++++++\n 1 file changed, 66 insertions(+)", "diff": "diff --git a/drivers/event/octeontx2/otx2_tim_evdev.c b/drivers/event/octeontx2/otx2_tim_evdev.c\nindex af68254f5..cd9a679fb 100644\n--- a/drivers/event/octeontx2/otx2_tim_evdev.c\n+++ b/drivers/event/octeontx2/otx2_tim_evdev.c\n@@ -377,6 +377,69 @@ otx2_tim_ring_create(struct rte_event_timer_adapter *adptr)\n \treturn rc;\n }\n \n+static int\n+otx2_tim_ring_start(const struct rte_event_timer_adapter *adptr)\n+{\n+\tstruct otx2_tim_ring *tim_ring = adptr->data->adapter_priv;\n+\tstruct otx2_tim_evdev *dev = tim_priv_get();\n+\tstruct tim_enable_rsp *rsp;\n+\tstruct tim_ring_req *req;\n+\tint rc;\n+\n+\tif (dev == NULL)\n+\t\treturn -ENODEV;\n+\n+\treq = otx2_mbox_alloc_msg_tim_enable_ring(dev->mbox);\n+\treq->ring = tim_ring->ring_id;\n+\n+\trc = otx2_mbox_process_msg(dev->mbox, (void **)&rsp);\n+\tif (rc < 0) {\n+\t\ttim_err_desc(rc);\n+\t\tgoto fail;\n+\t}\n+#ifdef RTE_ARM_EAL_RDTSC_USE_PMU\n+\tuint64_t tenns_stmp, tenns_diff;\n+\tuint64_t pmu_stmp;\n+\n+\tpmu_stmp = rte_rdtsc();\n+\tasm volatile(\"mrs %0, cntvct_el0\" : \"=r\" (tenns_stmp));\n+\n+\ttenns_diff = tenns_stmp - rsp->timestarted;\n+\tpmu_stmp = pmu_stmp - (NSEC2TICK(tenns_diff * 10, rte_get_timer_hz()));\n+\ttim_ring->ring_start_cyc = pmu_stmp;\n+#else\n+\ttim_ring->ring_start_cyc = rsp->timestarted;\n+#endif\n+\ttim_ring->tck_int = NSEC2TICK(tim_ring->tck_nsec, rte_get_timer_hz());\n+\ttim_ring->fast_div = rte_reciprocal_value_u64(tim_ring->tck_int);\n+\n+fail:\n+\treturn rc;\n+}\n+\n+static int\n+otx2_tim_ring_stop(const struct rte_event_timer_adapter *adptr)\n+{\n+\tstruct otx2_tim_ring *tim_ring = adptr->data->adapter_priv;\n+\tstruct otx2_tim_evdev *dev = tim_priv_get();\n+\tstruct tim_ring_req *req;\n+\tint rc;\n+\n+\tif (dev == NULL)\n+\t\treturn -ENODEV;\n+\n+\treq = otx2_mbox_alloc_msg_tim_disable_ring(dev->mbox);\n+\treq->ring = tim_ring->ring_id;\n+\n+\trc = otx2_mbox_process(dev->mbox);\n+\tif (rc < 0) {\n+\t\ttim_err_desc(rc);\n+\t\trc = -EBUSY;\n+\t}\n+\n+\treturn rc;\n+}\n+\n static int\n otx2_tim_ring_free(struct rte_event_timer_adapter *adptr)\n {\n@@ -438,11 +501,14 @@ otx2_tim_caps_get(const struct rte_eventdev *evdev, uint64_t flags,\n \tstruct otx2_tim_evdev *dev = tim_priv_get();\n \n \tRTE_SET_USED(flags);\n+\n \tif (dev == NULL)\n \t\treturn -ENODEV;\n \n \totx2_tim_ops.init = otx2_tim_ring_create;\n \totx2_tim_ops.uninit = otx2_tim_ring_free;\n+\totx2_tim_ops.start = otx2_tim_ring_start;\n+\totx2_tim_ops.stop = otx2_tim_ring_stop;\n \totx2_tim_ops.get_info\t= otx2_tim_ring_info_get;\n \n \tif (dev->enable_stats) {\n", "prefixes": [ "v2", "41/44" ] }{ "id": 55576, "url": "