From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 0A63AA0471 for ; Mon, 17 Jun 2019 10:20:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C86721BE4A; Mon, 17 Jun 2019 10:20:27 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 76B021BE44 for ; Mon, 17 Jun 2019 10:20:26 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5H8FeCG019620; Mon, 17 Jun 2019 01:20:25 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=iXPPPx1GjdiT/JNzAZuzOIr+MpxjRMOcT/v605bAzO0=; b=vxXFdGpTcTGFUQ73iowQGhRqaSkj6OVOOD78Koy+BllGFHbjJzRb0b7L95Jl6wwIpXex FpWGcSzLJ4CcgUWotcUpY/HmqWsxkc3zDf2t+D4j4ZSmqpTS6svRckyuoEYcRw+X8C8z dPjxE0PaCNR29Q/LScPoXXsqhnGt9R7OhWecrjxfmGHGxDfa221decgcoF2GO+Ey8RRE aMK+QT6uxlmjEAnxaNlm2YyosUL71qy8+NgMem4zeQOHKkL8lhvJnRtlYLbV1xgePApX TabhtfH2n6QDeopZu2/bO+S1j9yzdidTCxDOb2OHSwPQpNBcj/eumaWWzNIavIdunopr lw== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2t6537rdvv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 17 Jun 2019 01:20:25 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 17 Jun 2019 01:20:24 -0700 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (104.47.46.58) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 17 Jun 2019 01:20:24 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iXPPPx1GjdiT/JNzAZuzOIr+MpxjRMOcT/v605bAzO0=; b=OtPj+s6C/pQGtf3EQh5nUw/SL5QAczMbnm8HGaUK8xUphS2URKbz9NTDCpgb286gtwZVn59tQR7VyvLMsr9OxgU+9vgMzN6NAH4RrD/twQ2+Fr7tt5LKc3sFkq78CGhCDUJ/8+SI8UE4wFrrwtFjsWumxvmdz6tkm7T+2Uq18NM= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2534.namprd18.prod.outlook.com (20.179.93.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.13; Mon, 17 Jun 2019 08:20:22 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::75fd:a528:a1bf:bef4]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::75fd:a528:a1bf:bef4%3]) with mapi id 15.20.1987.014; Mon, 17 Jun 2019 08:20:22 +0000 From: Jerin Jacob Kollanukkaran To: Pavan Nikhilesh Bhagavatula , "Pavan Nikhilesh Bhagavatula" , Anatoly Burakov CC: "dev@dpdk.org" , Erik Gabriel Carrillo Thread-Topic: [dpdk-dev] [PATCH 27/44] event/octeontx2: add event timer support Thread-Index: AQHVGKu+B+0i9BkdvEyZDqSRj2jqVKafmWyA Date: Mon, 17 Jun 2019 08:20:22 +0000 Message-ID: References: <20190601185355.370-1-pbhagavatula@marvell.com> <20190601185355.370-28-pbhagavatula@marvell.com> In-Reply-To: <20190601185355.370-28-pbhagavatula@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.140.231.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4b036e31-700b-4f7a-3796-08d6f2fca496 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BYAPR18MB2534; x-ms-traffictypediagnostic: BYAPR18MB2534: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:239; x-forefront-prvs: 0071BFA85B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(346002)(366004)(39850400004)(376002)(136003)(189003)(199004)(13464003)(6436002)(7736002)(99286004)(305945005)(71190400001)(478600001)(71200400001)(2906002)(81166006)(81156014)(8676002)(7696005)(74316002)(110136005)(54906003)(316002)(8936002)(3846002)(6116002)(229853002)(14454004)(11346002)(66066001)(4326008)(33656002)(5660300002)(68736007)(52536014)(25786009)(476003)(486006)(66476007)(55016002)(66446008)(86362001)(446003)(186003)(66946007)(53936002)(76116006)(66556008)(64756008)(73956011)(256004)(9686003)(6246003)(26005)(55236004)(102836004)(76176011)(53546011)(6506007); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2534; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Iq+OY3kRFeyPZn0s1cXdpC5laQXBcXdh/lEBBRNUE+Wj/7IbdDpRkxnPE9zO+hpqVs4PbRZrFLyOx8bPinR88L9gFrDoCAGugnlnaaDGwoN6KfiYgNvodjoeO6UvykA4+JT+lnMcI0pYOsCVKM2gSP1s9ClVp+Pvz+MzbYTR8ykgCTtQPPEBuH14ewYoXcf9jSG5BugZyfXDjwClrk0xFQEgGiWoSpS3v+PBy8CnFMHxwsOohAdDNh1E6Tap0SD0p3hNR9+dFndS1VPHezdLvJWOeyzEl35RnjpMuBn9Ecasj62v+mr8bNbsJYF+vS9py3RSWB2q3up++wVn2yeYOvcRhm2orVmy7vYwHfd46IOkYZ4EbZO4PQmNDQNejKmflIvGhOX71XH2Y35fBMluQnRSId9aMzYzIF1Sk0mARPU= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 4b036e31-700b-4f7a-3796-08d6f2fca496 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2019 08:20:22.4873 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jerinj@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2534 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-17_05:, , signatures=0 Subject: Re: [dpdk-dev] [PATCH 27/44] event/octeontx2: add event timer support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: pbhagavatula@marvell.com > Sent: Sunday, June 2, 2019 12:24 AM > To: Jerin Jacob Kollanukkaran ; Pavan Nikhilesh > Bhagavatula ; Anatoly Burakov > > Cc: dev@dpdk.org; Erik Gabriel Carrillo > Subject: [dpdk-dev] [PATCH 27/44] event/octeontx2: add event timer suppor= t >=20 > From: Pavan Nikhilesh >=20 > Add event timer adapter aka TIM initilization on SSO probe. >=20 > Signed-off-by: Pavan Nikhilesh > --- > Cc: Erik Gabriel Carrillo >=20 > drivers/event/octeontx2/Makefile | 1 + > drivers/event/octeontx2/meson.build | 1 + > drivers/event/octeontx2/otx2_evdev.c | 2 + > drivers/event/octeontx2/otx2_tim_evdev.c | 61 ++++++++++++++++++++++++ > drivers/event/octeontx2/otx2_tim_evdev.h | 23 +++++++++ > 5 files changed, 88 insertions(+) > create mode 100644 drivers/event/octeontx2/otx2_tim_evdev.c > create mode 100644 drivers/event/octeontx2/otx2_tim_evdev.h >=20 > diff --git a/drivers/event/octeontx2/Makefile > diff --git a/drivers/event/octeontx2/otx2_tim_evdev.h > b/drivers/event/octeontx2/otx2_tim_evdev.h > new file mode 100644 > index 000000000..14bbaf43c > --- /dev/null > +++ b/drivers/event/octeontx2/otx2_tim_evdev.h > @@ -0,0 +1,23 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(C) 2019 Marvell International Ltd. > + */ > + > +#ifndef __OTX2_TIM_EVDEV_H__ > +#define __OTX2_TIM_EVDEV_H__ > + > +#include > + > +#include "otx2_dev.h" > + > +#define OTX2_TIM_EVDEV_NAME otx2_tim_eventdev > + > +struct otx2_tim_evdev { > + struct rte_pci_device *pci_dev; > + struct otx2_mbox *mbox; > + uint16_t nb_rings; > + uintptr_t bar2; > +}; > + > +void otx2_tim_init(struct rte_pci_device *pci_dev, struct otx2_dev > +*cmn_dev); Please add counter part_fini as well. > + > +#endif /* __OTX2_TIM_EVDEV_H__ */ > -- > 2.21.0