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 077A0A0471 for ; Mon, 17 Jun 2019 10:25:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C50D11BE17; Mon, 17 Jun 2019 10:25:32 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 4A5E11BB43 for ; Mon, 17 Jun 2019 10:25:31 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5H8ObXS032140 for ; Mon, 17 Jun 2019 01:25:30 -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=sszZDhX7+fYxl1roOINPwc/bPvpCrNDEx7uNxTC4HvY=; b=Bv1Q1LGcQAlxG6PUBwrnyuWzKRdolBiZTZjMOQ4RDq/1XfL7c4CsBOgkhrLS/8zZYZGD hnHNYxkBr4J1ATyXzw0yHpG3/FZbycW4x3nZM6MMUaLxBL7rvCTXMoqo5+bYPyvGjhr7 UuAFw89v1sZ7CG35eX2KfB+f8ayS+OPBkA2HxozgX34NP+f8u3rst0s79tjkECSoriMp 7WOcHVDgwWMM2D9WZf5KUOexRcuZdoVRf6g5tYWTQHOYAhgwSEA6c7fc7CdMjra+8d+e 1Jl5PLaCfyNYb6nadZlCogw2LsqrL9UTJYzMETgMYzAnhGYTThnh/mbCkcknhxa0t56i wQ== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2t506hwva5-7 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 17 Jun 2019 01:25:30 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 17 Jun 2019 01:25:23 -0700 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (104.47.45.54) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 17 Jun 2019 01:25:23 -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=sszZDhX7+fYxl1roOINPwc/bPvpCrNDEx7uNxTC4HvY=; b=G+/l804yKEldk4ay7P7u26PeGS0reea7A72ZnUB6OURqbvGWJ/VkQJMPTgJ2OVPfUgdT3sYJ3tEv7HUWKLmncdFb7co+KaWzEWRImS/5TNr+KDahuGq0/dUbz4bx85p+uQqByv24YhaoED3lUd+4ZcVJXg1YJ72GJdiK+JDMIWc= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2646.namprd18.prod.outlook.com (20.179.92.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Mon, 17 Jun 2019 08:25: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:25:22 +0000 From: Jerin Jacob Kollanukkaran To: Pavan Nikhilesh Bhagavatula , "Pavan Nikhilesh Bhagavatula" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 33/44] event/octeontx2: add TIM IRQ handlers Thread-Index: AQHVGKvPU5M9oW8b+E+qZXJuFz+jmqafmtow Date: Mon, 17 Jun 2019 08:25:22 +0000 Message-ID: References: <20190601185355.370-1-pbhagavatula@marvell.com> <20190601185355.370-34-pbhagavatula@marvell.com> In-Reply-To: <20190601185355.370-34-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: b8068eec-3fca-4b08-1581-08d6f2fd5752 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:BYAPR18MB2646; x-ms-traffictypediagnostic: BYAPR18MB2646: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:361; x-forefront-prvs: 0071BFA85B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39850400004)(396003)(366004)(346002)(376002)(189003)(199004)(13464003)(71200400001)(4326008)(229853002)(486006)(66446008)(14454004)(74316002)(66946007)(73956011)(11346002)(476003)(7736002)(305945005)(6246003)(8936002)(6436002)(446003)(81156014)(8676002)(33656002)(53936002)(81166006)(55016002)(64756008)(66556008)(76116006)(66476007)(6636002)(25786009)(66066001)(2906002)(86362001)(5660300002)(3846002)(6116002)(6506007)(256004)(9686003)(53546011)(316002)(7696005)(52536014)(186003)(102836004)(478600001)(55236004)(99286004)(110136005)(26005)(76176011)(71190400001)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2646; 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: n3ml4YDYnKSBvVsqI1340BKCIK2iB+H4InvSlewamKCdauFERVix1h/oA87Aw0947aGtt+sFvTIsx7OsvO28hbYmuekUAU5bOcnHhjy0xXymSZ5FUsFHfb5zCunw0QSsjZ+XsXidOSX4N6xBSPCawZgqj9vvu9x+MFkhPOQb2USy4+KK3rYJ3g7V85yl5L4WrlVfYj/RCNUFz8XGoO6PLgJ8F1OK+s4EXLKLUVCKfxkBbur7xB/OWRA3CZuF7HCxSpdgnniJLsjyzqTcfm0xY3jP4TI7RZ3tVYCtwXGEKU60rTPbXoM0WEvQ9kF94qas2Yx3lKkMQaXNswq4ZmrzjUOcRfvmq4a1rpYt0QFMcOBZdtmQaafFH8rYNo1dSkHHHkuYDVeM0LAoaKV+qS+c8Fcwq9GLx1pGSu7fRwRUM28= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: b8068eec-3fca-4b08-1581-08d6f2fd5752 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2019 08:25:22.3299 (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: BYAPR18MB2646 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 33/44] event/octeontx2: add TIM IRQ handlers 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 > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH 33/44] event/octeontx2: add TIM IRQ handlers >=20 > From: Pavan Nikhilesh >=20 > Register and implement TIM IRQ handlers for error interrupts >=20 > Signed-off-by: Pavan Nikhilesh > --- > drivers/event/octeontx2/otx2_evdev_irq.c | 99 ++++++++++++++++++++++++ > drivers/event/octeontx2/otx2_tim_evdev.c | 37 +++++++++ > drivers/event/octeontx2/otx2_tim_evdev.h | 14 ++++ > 3 files changed, 150 insertions(+) >=20 > diff --git a/drivers/event/octeontx2/otx2_evdev_irq.c > b/drivers/event/octeontx2/otx2_evdev_irq.c > index e10389703..80de2f407 100644 > --- a/drivers/event/octeontx2/otx2_evdev_irq.c > +++ b/drivers/event/octeontx2/otx2_evdev_irq.c > @@ -3,6 +3,7 @@ > */ >=20 > #include "otx2_evdev.h" > +#include "otx2_tim_evdev.h" >=20 > static void > sso_lf_irq(void *param) > @@ -177,3 +178,101 @@ sso_unregister_irqs(const struct rte_eventdev > *event_dev) > ssow_lf_unregister_irq(event_dev, dev->ssow_msixoff[i], base); > } > } > + > +static void > +tim_lf_irq(void *param) > +{ > + uintptr_t base =3D (uintptr_t)param; > + uint64_t intr; > + uint8_t ring; > + > + ring =3D (base >> 12) & 0xFF; > + > + intr =3D otx2_read64(base + TIM_LF_NRSPERR_INT); > + otx2_err("TIM RING %d TIM_LF_NRSPERR_INT=3D0x%" PRIx64 "", ring, > intr); > + intr =3D otx2_read64(base + TIM_LF_RAS_INT); > + otx2_err("TIM RING %d TIM_LF_RAS_INT=3D0x%" PRIx64 "", ring, intr); > + > + /* Clear interrupt */ > + otx2_write64(intr, base + TIM_LF_NRSPERR_INT); > + otx2_write64(intr, base + TIM_LF_RAS_INT); > + > + abort(); Remove abort() from driver.