From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8B76EA034C; Thu, 28 Apr 2022 17:50:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7433B42819; Thu, 28 Apr 2022 17:50:57 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id F119540E50 for ; Thu, 28 Apr 2022 17:50:55 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 23SA4iPC013350 for ; Thu, 28 Apr 2022 08:50:54 -0700 Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2170.outbound.protection.outlook.com [104.47.58.170]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3fqpvs1st9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 28 Apr 2022 08:50:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZuEvxTVZ7mrVgdqh35feR8ACzQypi0Do5g/Gp7fQhFVfLOP+eygS5G4ebq5GqT60Uj3C3oUplPIkidD7NKEGmMFFwkGL0R6qUSC1pf7TUSwBuPpJ3yMGtKuJrdQSEiv2WAo8Cz6qnAuxCTSoTZm0rUSdcS75pVcuVBONaC4TYJ+QxTxIroQsOIt47AlYFCcv6+bca3huIC0alhuAl/3TcQt83rdOi6gGPsnlCEJ6bYO6xUB4QNjxbLrHfXla0BLWojeQckEyt/CoWzPGqMoVt8ZSk8t4cjy5nXvR1dc78W+cO0tAkjQkRynbMkqMWK1f4Oz3sQgES6zezvZSj0Lj6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QOjww3RZDHAMhhzyAB6Bws2JpEauUZq2fKvWPefFoXw=; b=O1GWNFzw1ljkulA7suY+7GzSlCQCrGtvmtb0ODDgqipLcpce/elv+wr1k2GfQ3W8hgTp+kCs9zEE117icsisGcmAAwrbSkxj4/JXbWPUg1GpoawgEvKQ7rdx1YvL3LzTSeoL8s34qDzN5DwMO/19lb72GkDKgIo0sRWxEjFH9CXtQf+aSLC4AG9+G/MfwR4dzDtFTas2C60Qreiv82ROaawTcgO0f4kIS/BYLFYk9D60F6Nlr9o/2PT+iEt9hzte34MRpBYRfAPcn18/aPzaNof0i6lP7XVdY2GMALyVEUK5xDIxB5nJkKDHi4IBaCL8M1Ht//w0ThrCAfdBvDKxRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QOjww3RZDHAMhhzyAB6Bws2JpEauUZq2fKvWPefFoXw=; b=NJCfJfmbztoO0WADhfOd4LYV/uNR7MsjQeqAzOIxRoJe67kpq5ukPvJ+FOwci6VAdOZFcjV2NAbdbfjoq7H6xl0hrhZvvWv1uQRf9TFsCtknWBpQfXUfTDI4HpzvygguiD/0RZi7wZJSX8q2uCJhHc3oqYl9WGGi09ZU7EZWQbM= Received: from PH0PR18MB4489.namprd18.prod.outlook.com (2603:10b6:510:e2::20) by CH0PR18MB4292.namprd18.prod.outlook.com (2603:10b6:610:d0::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.14; Thu, 28 Apr 2022 15:50:52 +0000 Received: from PH0PR18MB4489.namprd18.prod.outlook.com ([fe80::20f8:71b9:caef:abfd]) by PH0PR18MB4489.namprd18.prod.outlook.com ([fe80::20f8:71b9:caef:abfd%9]) with mapi id 15.20.5206.014; Thu, 28 Apr 2022 15:50:52 +0000 From: Ashish Gupta To: Mahipal Challa , "dev@dpdk.org" CC: Jerin Jacob Kollanukkaran , Narayana Prasad Raju Athreya Subject: RE: [EXT] [dpdk-dev] [PATCH v1 1/1] compress/octeontx: add octeontx2 SoC family support Thread-Topic: [EXT] [dpdk-dev] [PATCH v1 1/1] compress/octeontx: add octeontx2 SoC family support Thread-Index: AQHYLFT8s05BZaNOjkeN9jBq94XK4q0F1nmA Date: Thu, 28 Apr 2022 15:50:51 +0000 Message-ID: References: <20220228034035.635651-1-mchalla@marvell.com> In-Reply-To: <20220228034035.635651-1-mchalla@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 39533832-5cda-4c43-ed91-08da292edf67 x-ms-traffictypediagnostic: CH0PR18MB4292:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SQ6aNDokBa5ExCTznFKljISo/O5IvMpxR5/19bZtorrZABeciBwmQl9VwslLm5971aVKDCB4qlWo+DP02CbFlrkxkH5AzX5KMSJutLU9l6z4i5RVIH6r4SoCgXJaEGNU9BHxyCU3GeuV65Zm+TU+NlKJcEYMImD2csYAF0qI9Vq3eeICm2xvt2f4ZnKx2MmssNg8cMEj34oAEAWE3xG7OgMXJvek4b/VofpajMWl77B1cafAShlyDk8esxr1sIm7S0dMxa68I4/FK5adqbaUDBvVJr7mG4tYhOCj2Mbwp3D0uxq7Kg0qx/b/NVQsvjknWr5sMnMi9ozvGxWLok9ILuacJAgbVW08Vvze37THBSWj0xann1KmxPbxdTV6a7opQAjnQHWtI4UhTRquI3WnJ3PcaQVy0wNkWU/e9Ve586jKArcLihqmpdwP8ygqvCqKywJkXFjMRhbRPbwUy0jI9bqUP32goKMosJngkNOhBWotlgX99rr1a7J7bLPzmCJfkUnJBJBmWR0LKCP4AEWV6M3GpSaAw2vNvK2c++Andk5QAG9nt+G9ZKvYiHgjcIOlQsoBhpfQvHo1Z+kkUvWbvph7kNiCQFq8zhdoaWv2TBjlJZhqYLLAWnA4VY1nQ8J6psjvsiBBb1dujs73rdoLja1zMuNPVxGtypQK7bo+EY76p0tQ7lum7rITUZV7BObgolY3bfZQ1b7NTlQTTjfe/g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4489.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(53546011)(9686003)(2906002)(26005)(38070700005)(33656002)(86362001)(54906003)(83380400001)(110136005)(122000001)(7696005)(186003)(316002)(6506007)(64756008)(4326008)(66476007)(8676002)(66446008)(66946007)(66556008)(71200400001)(76116006)(52536014)(8936002)(55016003)(508600001)(107886003)(5660300002)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?addRfZQ34Vap+BN7WQFLqId4uW09+kAePT+pT9MqKXz+yCNnNCaO04hLy+5s?= =?us-ascii?Q?xjRFKC0UTdjes1lduiYCmqsOClLy8hOxDKuMMuasUC0QVcybPOprO5FlRF32?= =?us-ascii?Q?MHwl6YxMBgeiGREP5FxcL63QnrU0nxJRcoRAziG6lL7yl8poC4rG5grI2Kgm?= =?us-ascii?Q?FMjM71+NljulJgijmy/s5Se2LAOUlnqoRnG/3obw3YGIY1strN1DPg+dfQcb?= =?us-ascii?Q?e44Z5rcd1AxAjMKC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BimzA1n/UW?= =?us-ascii?Q?IfHgkJF501MetBSEbI8R8qUbCd/fJHN090CIuGHT+/AfV13uQTDY47DWK6gV?= =?us-ascii?Q?ny7qt7uAw92ry0OwOwttW4QITjJXbgyGFJKQPK9a7waOCrpVYADqGQd4RBON?= =?us-ascii?Q?xqGTa7ucDcJ/nKGThMW1NA8+dIONuwb6m4DWUpeeNQ9/eZuJ2Tj1iVWNLAxh?= =?us-ascii?Q?ndSGMrt+6FhqhLrsIkLd82ptcl8PQhg+cOO+YTCWoOLxgHbX0EiDltvpPnaC?= =?us-ascii?Q?uOMnZmRGW/PNV3qIVdf8cnP1nGidH50+D19Ql1tsSBYuFHOZuyjSYAVEAmSI?= =?us-ascii?Q?fV6V5UEkq8RrKGvVzMOa5zOgkfqRoZQGtldBYaT1qHS9fo2lXQ+msOug3A7D?= =?us-ascii?Q?r31fk/HJstgtVuWLQz4CNDBETwJZmyGD5YFYViL5SK7le5ZxsF0PLBem778t?= =?us-ascii?Q?E/5eczDxU1mKEhjc1TsApiYONPCbkC6lqvnFJsJ0a2HleBNXvEGwb11/mBYt?= =?us-ascii?Q?VH/m4SGikKIRzpjXcf+5Gt/xlkbkp3P0j0gLzMZTqyFqgN8Kp7SX/mEkzoRP?= =?us-ascii?Q?LCCdwEvRG2ht4YGYEBc6/cQyNH+2RVi+KhbGAdCGllcgAzacgP/5NtiFwlhy?= =?us-ascii?Q?95DxL/NeAA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB4489.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39533832-5cda-4c43-ed91-08da292edf67 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Apr 2022 15:50:51.9398 (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: T3hDocjGrbwfyw119QTwrRS8snSoymMaS2li2YQKeXYjod6vDMwzu2n9QURz4oeW77vMPfoPjukQTbdYnxbGJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR18MB4292 X-Proofpoint-GUID: lyS-GUw0hY8zRTeH3BH1ZpfYwIPz9oa6 X-Proofpoint-ORIG-GUID: lyS-GUw0hY8zRTeH3BH1ZpfYwIPz9oa6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-28_02,2022-04-28_01,2022-02-23_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Mahipal Challa > Sent: Monday, February 28, 2022 9:11 AM > To: dev@dpdk.org > Cc: Jerin Jacob Kollanukkaran ; Narayana Prasad Raju > Athreya > Subject: [EXT] [dpdk-dev] [PATCH v1 1/1] compress/octeontx: add octeontx2 > SoC family support >=20 > External Email >=20 > ---------------------------------------------------------------------- > The octeontx2 9xxx SoC family support is added. >=20 > Signed-off-by: Mahipal Challa > --- > drivers/compress/octeontx/include/zip_regs.h | 12 ++++++++++++ > drivers/compress/octeontx/otx_zip.c | 6 +++++- > drivers/compress/octeontx/otx_zip.h | 1 + > drivers/compress/octeontx/otx_zip_pmd.c | 6 ++++++ > 4 files changed, 24 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/compress/octeontx/include/zip_regs.h > b/drivers/compress/octeontx/include/zip_regs.h > index 94a48cde66..a7fcccc055 100644 > --- a/drivers/compress/octeontx/include/zip_regs.h > +++ b/drivers/compress/octeontx/include/zip_regs.h > @@ -63,6 +63,18 @@ typedef union { > uint64_t reserved_49_63 : 15; > #endif /* Word 0 - End */ > } s; > + > + struct zip_vqx_sbuf_addr_s9x { > +#if defined(__BIG_ENDIAN_BITFIELD) /* Word 0 - Big Endian */ > + uint64_t reserved_53_63 : 11; > + uint64_t ptr : 46; > + uint64_t off : 7; > +#else /* Word 0 - Little Endian */ > + uint64_t off : 7; > + uint64_t ptr : 46; > + uint64_t reserved_53_63 : 11; > +#endif /* Word 0 - End */ > + } s9x; > } zip_vqx_sbuf_addr_t; >=20 > /** > diff --git a/drivers/compress/octeontx/otx_zip.c > b/drivers/compress/octeontx/otx_zip.c > index a9046ff351..11471dcbb4 100644 > --- a/drivers/compress/octeontx/otx_zip.c > +++ b/drivers/compress/octeontx/otx_zip.c > @@ -58,7 +58,11 @@ zipvf_q_init(struct zipvf_qp *qp) > cmdq->iova =3D iova; >=20 > que_sbuf_addr.u =3D 0ull; > - que_sbuf_addr.s.ptr =3D (cmdq->iova >> 7); > + if (vf->pdev->id.device_id =3D=3D PCI_DEVICE_ID_OCTEONTX2_ZIPVF) > + que_sbuf_addr.s9x.ptr =3D (cmdq->iova >> 7); > + else > + que_sbuf_addr.s.ptr =3D (cmdq->iova >> 7); > + > zip_reg_write64(vf->vbar0, ZIP_VQ_SBUF_ADDR, que_sbuf_addr.u); >=20 > zip_q_enable(qp); > diff --git a/drivers/compress/octeontx/otx_zip.h > b/drivers/compress/octeontx/otx_zip.h > index 118a95d738..46c80c8dc2 100644 > --- a/drivers/compress/octeontx/otx_zip.h > +++ b/drivers/compress/octeontx/otx_zip.h > @@ -30,6 +30,7 @@ extern int octtx_zip_logtype_driver; > #define PCI_VENDOR_ID_CAVIUM 0x177D > /**< PCI device id of ZIP VF */ > #define PCI_DEVICE_ID_OCTEONTX_ZIPVF 0xA037 > +#define PCI_DEVICE_ID_OCTEONTX2_ZIPVF 0xA083 >=20 > /* maximum number of zip vf devices */ > #define ZIP_MAX_VFS 8 > diff --git a/drivers/compress/octeontx/otx_zip_pmd.c > b/drivers/compress/octeontx/otx_zip_pmd.c > index f9b8f7a1ec..dff188e223 100644 > --- a/drivers/compress/octeontx/otx_zip_pmd.c > +++ b/drivers/compress/octeontx/otx_zip_pmd.c > @@ -85,7 +85,9 @@ zip_process_op(struct rte_comp_op *op, > op->status =3D RTE_COMP_OP_STATUS_ERROR; > } >=20 > +#ifdef ZIP_DBG > ZIP_PMD_INFO("written %d\n", zresult->s.totalbyteswritten); > +#endif >=20 > /* Update op stats */ > switch (op->status) { > @@ -630,6 +632,10 @@ static struct rte_pci_id pci_id_octtx_zipvf_table[] = =3D { > RTE_PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, > PCI_DEVICE_ID_OCTEONTX_ZIPVF), > }, > + { > + RTE_PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, > + PCI_DEVICE_ID_OCTEONTX2_ZIPVF), > + }, > { > .device_id =3D 0 > }, > -- > 2.25.1 Acked-by: Ashish Gupta