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 0BB3BA0471 for ; Mon, 17 Jun 2019 10:19:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6B9201BE25; Mon, 17 Jun 2019 10:19:55 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id B7B281BCC3 for ; Mon, 17 Jun 2019 10:19:54 +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 x5H8AG6Y021424 for ; Mon, 17 Jun 2019 01:19:53 -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=7sqa1bwmeg9cFSO2uzbNPFUZffX7tliLcPXXhkNTl5c=; b=VBQbsIyPuPLwqiOuYI+vLBxHhPUSo+mxO3H2vTxT6tkrQ29gqEuJwE0Gt1w2AzfSjJY8 y+/PJxunRnhxW02/J+I44+CQ3+SGtS8Jk9pP7FO2A1cYuNEwikad66sIMoYBZCcuiYM3 0exzikeYxlwZVlj7QH3VeljNGFB5m2uIRMK6jwxLsiOUQ+J3rzoR732M8WPT8MEPNTkq rFeaRPBHW8my2sfenb3n/OOmrJqqT+HNsCgN2WqoRx35G9qodxEh0nBJwEfCvI0S6oGM Tx4PRW/tW9YdjXIgVWyQtPEUyf2OI9NZaBfDPT4c+fzUJtFCnYJqRPXy81unMrF/Z+Is vQ== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2t506hwupx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 17 Jun 2019 01:19:16 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 17 Jun 2019 01:18:51 -0700 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (104.47.45.57) 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:18:51 -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=7sqa1bwmeg9cFSO2uzbNPFUZffX7tliLcPXXhkNTl5c=; b=Pr6UMv0pwLnSqXOzYkHh1HtslJAver5vRvoAS97jGjnGzTQDvPPA2C4sJMqwTacFVwtfEM5p9ot0XCuMECbkCBoFh87aADjXqWVv0DNHs924gLDyUp3GLBqDDEHmLrSXEa381KZ5HtrdGM5QHwm5DW8keTF3lE775VopJaZCcA0= 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:18:50 +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:18:50 +0000 From: Jerin Jacob Kollanukkaran To: Pavan Nikhilesh Bhagavatula , "Pavan Nikhilesh Bhagavatula" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 25/44] event/octeontx2: add SSO selftest Thread-Index: AQHVGKus+m0xDGBN1E2Q1Y+zZ9BNEaafmHfA Date: Mon, 17 Jun 2019 08:18:50 +0000 Message-ID: References: <20190601185355.370-1-pbhagavatula@marvell.com> <20190601185355.370-26-pbhagavatula@marvell.com> In-Reply-To: <20190601185355.370-26-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: 044aee9f-490c-4d15-fec4-08d6f2fc6d9c 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:216; 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)(316002)(8936002)(3846002)(6116002)(229853002)(14454004)(11346002)(6636002)(66066001)(4326008)(33656002)(5660300002)(68736007)(52536014)(25786009)(476003)(486006)(66476007)(55016002)(66446008)(86362001)(446003)(186003)(66946007)(53936002)(76116006)(66556008)(64756008)(73956011)(256004)(14444005)(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: PUw60Bmf8sO2ajJ/oP9uVx8HOmGC3o9kmpBW8jgAaHm7FcNPHgG+1dBQEp7yx2KUU9Uao1WMXM5mrJfPAnZXdo3wRpbUJ5Zc3KU4XHWSZwWrG/tzyFuuJcV5yYHGhBtjNMLwEjazDiSQSCyrWvI4ZoxcJ1MN7jZJdONRUftE22JvOQQB5rQa4etIG8B9kbMn9VL8OKZyBhco7qFsFrTE+uKosMk9yRNC0f7EYsa8IM2NBqOfkIPhKFqK9SUNy1hni/uTlY36JPhAti8BIU0tUhXC9acc0hfEta6D6gqhJnFa6g8lyFUX2FnCuSG4GcH8Equzxvy7CzAF8mIi+ykq2jrbjpKK2rFWESlVmB7h9NxF+Sg4u9n6avreq8/LsLLMUAkqC9B66GO0yvrUUdEJbVKYA1rTrjAQsGBmghRKqjo= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 044aee9f-490c-4d15-fec4-08d6f2fc6d9c X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2019 08:18:50.2640 (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 25/44] event/octeontx2: add SSO selftest 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 25/44] event/octeontx2: add SSO selftest >=20 > From: Pavan Nikhilesh >=20 > Add selftest to verify sanity of SSO. > Can be run by passing devargs to SSO PF as follows: >=20 > --dev "0002:0e:00.0,selftest=3D1" >=20 > Signed-off-by: Pavan Nikhilesh > Signed-off-by: Jerin Jacob > --- > drivers/event/octeontx2/Makefile | 1 + > drivers/event/octeontx2/meson.build | 1 + > drivers/event/octeontx2/otx2_evdev.c | 11 +- > drivers/event/octeontx2/otx2_evdev.h | 3 + > drivers/event/octeontx2/otx2_evdev_selftest.c | 1511 +++++++++++++++++ > 5 files changed, 1526 insertions(+), 1 deletion(-) create mode 100644 > drivers/event/octeontx2/otx2_evdev_selftest.c >=20 > diff --git a/drivers/event/octeontx2/Makefile > b/drivers/event/octeontx2/Makefile > index dfecda599..d6cffc1f6 100644 > --- a/drivers/event/octeontx2/Makefile > +++ b/drivers/event/octeontx2/Makefile > @@ -33,6 +33,7 @@ LIBABIVER :=3D 1 > SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) +=3D > otx2_worker_dual.c > SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) +=3D otx2_worker.c > SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) +=3D otx2_evdev.c > +SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) +=3D > +otx2_evdev_selftest.c > SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_EVENTDEV) +=3D > otx2_evdev_irq.c >=20 > LDLIBS +=3D -lrte_eal -lrte_bus_pci -lrte_pci -lrte_kvargs diff --git > a/drivers/event/octeontx2/meson.build b/drivers/event/octeontx2/meson.bui= ld > index c2a5f3e3d..470564b08 100644 > --- a/drivers/event/octeontx2/meson.build > +++ b/drivers/event/octeontx2/meson.build > @@ -6,6 +6,7 @@ sources =3D files('otx2_worker.c', > 'otx2_worker_dual.c', > 'otx2_evdev.c', > 'otx2_evdev_irq.c', > + 'otx2_evdev_selftest.c', > ) >=20 > allow_experimental_apis =3D true > diff --git a/drivers/event/octeontx2/otx2_evdev.c > b/drivers/event/octeontx2/otx2_evdev.c > index 9260fdac4..7300da908 100644 > --- a/drivers/event/octeontx2/otx2_evdev.c > +++ b/drivers/event/octeontx2/otx2_evdev.c > @@ -1094,11 +1094,13 @@ static struct rte_eventdev_ops otx2_sso_ops =3D { > .dev_start =3D otx2_sso_start, > .dev_stop =3D otx2_sso_stop, > .dev_close =3D otx2_sso_close, > + .dev_selftest =3D otx2_sso_selftest, Please add one line hook to app/test/test_eventdev.c