Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/54052/?format=api
http://patches.dpdk.org/api/patches/54052/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190601185355.370-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": "<20190601185355.370-42-pbhagavatula@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190601185355.370-42-pbhagavatula@marvell.com", "date": "2019-06-01T18:53:51", "name": "[41/44] event/octeontx2: add even timer adapter start and stop", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "9268ca37ab15030f73a446c0ebd9bb816961ddcf", "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/20190601185355.370-42-pbhagavatula@marvell.com/mbox/", "series": [ { "id": 4847, "url": "http://patches.dpdk.org/api/series/4847/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4847", "date": "2019-06-01T18:53:10", "name": "OCTEON TX2 event device driver", "version": 1, "mbox": "http://patches.dpdk.org/series/4847/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/54052/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/54052/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 3BEA01BB91;\n\tSat, 1 Jun 2019 20:57:18 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n\t[67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 641731B9E8\n\tfor <dev@dpdk.org>; Sat, 1 Jun 2019 20:56:46 +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\tx51It56u029939 for <dev@dpdk.org>; Sat, 1 Jun 2019 11:56:45 -0700", "from sc-exch01.marvell.com ([199.233.58.181])\n\tby mx0b-0016f401.pphosted.com with ESMTP id 2survk12ju-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n\tfor <dev@dpdk.org>; Sat, 01 Jun 2019 11:56:45 -0700", "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH01.marvell.com\n\t(10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tSat, 1 Jun 2019 11:56:44 -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; Sat, 1 Jun 2019 11:56:44 -0700", "from BG-LT7430.marvell.com (unknown [10.28.17.28])\n\tby maili.marvell.com (Postfix) with ESMTP id 26BA33F7043;\n\tSat, 1 Jun 2019 11:56:42 -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=xv8aYM5/fhtIy+nhLrlXR3ErC9hjRYOiIBpwccJ19O0=;\n\tb=fMDlUsNqGTudWaZHvYMGplBrRuJVePnyKRFhn9hcDxULWAgM9Bo+IWw7G0tLZbtqCLHN\n\thSzqoXkXxDtTFU6bdJKpNyFAra9tac2s2cjqZbao4YtKLgbvvZAblCpcbhSEcfX9g1x0\n\tFCjsZljnC8YtH1OX0g7lfU1rfKmxJWax2m6ByhoihKGvPVWVYEcyJfmafHrCiYouiL7J\n\tjiRpCEjuLEFC19ydck1s7BftsQpK8LcZex3XcdTG9NptKsAF5BOX15U1ulRd+K1HXUnk\n\tfbTrtaYeX8gfxwX3HuyR73Q2OfnHGe8Yq21Y84z6ft67irRr7FSyZEDa6pVUTPbyT9h9\n\tZQ== ", "From": "<pbhagavatula@marvell.com>", "To": "<jerinj@marvell.com>, Pavan Nikhilesh <pbhagavatula@marvell.com>", "CC": "<dev@dpdk.org>", "Date": "Sun, 2 Jun 2019 00:23:51 +0530", "Message-ID": "<20190601185355.370-42-pbhagavatula@marvell.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190601185355.370-1-pbhagavatula@marvell.com>", "References": "<20190601185355.370-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-01_13:, , signatures=0", "Subject": "[dpdk-dev] [PATCH 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 b9953bbcb..2849b8858 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 = otx2_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 = otx2_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 = otx2_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": [ "41/44" ] }{ "id": 54052, "url": "