From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 94EBAA2EEB for ; Fri, 13 Sep 2019 08:59:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5CFB21F086; Fri, 13 Sep 2019 08:59:02 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 9C7331F077; Fri, 13 Sep 2019 08:59:00 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8D6nwPF015046; Thu, 12 Sep 2019 23:58:56 -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=SsmDQCYTsTX7kgV8yUcNjzb1ukDlyGkntFurnEYRozE=; b=eOwqztJDno7SCuaghArgFpCZHEHATwAqWVyMeVkRVeuzOkRbixoG2NiHONgLMe1ua00+ 8u0/9NO/W2GBNG2CuKbaliaXE/OOXiIYGQi1/E9ebCDdBtLUWMCNQhrt7yudTKUKME0n AdXFzmLByOKvU2aHxlfnn9Jj3umE8Ed69eyHx3zPwGNLEYo0dcSCC4/EsIpLDDNBm3B8 ipFXE9JBAfM5NJDN2VNNjnrCcITmWScy4/KfGVhBL+ZbFjS03exYTR17Sj/roi11J0Qp rM0jE/2Wa2JLOMc0xpL+tthuZVX7YH5UBke0etIb7FDiO2MN/RPPz9d+/02kYNJ+liQ2 aQ== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2uytdfjn2u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 12 Sep 2019 23:58:56 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 12 Sep 2019 23:58:55 -0700 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (104.47.42.53) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 12 Sep 2019 23:58:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ey54crSiQYwc4etSdK5wuLOcmlH5Gbw2gmrWi2BUkNgDLS5csWGk8pU4/WLdUxP9zlWFLdVN0ETQMSE4cNUjZr7WItpAA/ZkqGEeaE2G+zssAJ8G45BuT8mgbUugQDj6Q5UOgdlStj4r+HCaBrh5q2YCXCdEvdDIczWQ9IupfE0aicSdUDBsFkDJoxEVvqyl60cjjzJvqrbMlG/GvQt5UqJrDTloR4W1C4jcpzzpF1zNzWHSzYr8+ORCOQDHCoVHF2e9lxPPaIrzSB2Feq1RnbVDtNYvAEu6u+sRDu8vWB6Pz1P7K16rto32JjqMVgNq0x/3V98FjJOyGXX0H3Es9g== 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-SenderADCheck; bh=SsmDQCYTsTX7kgV8yUcNjzb1ukDlyGkntFurnEYRozE=; b=AXJfXTVCvmQuInJ+vU7gRow8X3Bmw/ckfLho39FGQENwFgunIxl95SE8HKGKQICe8VWYo2K/9tLJPQsJ6Or6On8XWHKSYOmY5WftYktZJ6KL2Rgj3N/hgDOjQX9ZKlF3N9GfcBkc/gjosCTPocsLGI9mPIsOFvdnh84/IE0oby0s26oEXP/V908a0HZpZVpn1BO52vKU8Tg2cFy/UPRw6fgfh/QicFNDmiC4toBJHZhem7Dg05uvzhHwMP3W32+qJESFwh++GmbiNMcbBF2eo/Vl/eEkILWZgiq1eMJoUYrgr+l0fnV1iVB7olIYnSZso5jDXbzjGmgz9NksYIKd4w== 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=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SsmDQCYTsTX7kgV8yUcNjzb1ukDlyGkntFurnEYRozE=; b=yOxb/KbDQGzZJr4phT37ISkv5/HudJ3IfVsQLbY914Zj9Qdl50F3Wq3RIfmjZ/k5GR44IGSeWdJY+9xtdd+7+7wmqcnT7dDrhKHFnczxJ610ZtWVUsb6NxAxTFHZvWiAjiUo10RVzQP7lMQlbD3New45gI0R9+RyclC8PwC362I= Received: from BN8PR18MB2868.namprd18.prod.outlook.com (20.179.74.155) by BN8PR18MB2804.namprd18.prod.outlook.com (20.179.73.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.17; Fri, 13 Sep 2019 06:58:53 +0000 Received: from BN8PR18MB2868.namprd18.prod.outlook.com ([fe80::8df1:c82b:f590:e546]) by BN8PR18MB2868.namprd18.prod.outlook.com ([fe80::8df1:c82b:f590:e546%7]) with mapi id 15.20.2241.018; Fri, 13 Sep 2019 06:58:53 +0000 From: Anoob Joseph To: Thierry Herbelot , "dev@dpdk.org" CC: Thomas Monjalon , "stable@dpdk.org" , Akhil Goyal , "Jerin Jacob Kollanukkaran" , Narayana Prasad Raju Athreya Thread-Topic: [EXT] [PATCH V2] crypto/octeontx: enable unbinding for the OCTEON TX crypto engines Thread-Index: AQHVaf4h6lpPj3vILEm66E/cqGwIyqcpK+hg Date: Fri, 13 Sep 2019 06:58:53 +0000 Message-ID: References: <22e44c87c26193219900e738dcda9b1390efcb9c.1568217224.git.thierry.herbelot@6wind.com> <15217f0aa7b041c895dd1a956e703bb48df6c453.1568356742.git.thierry.herbelot@6wind.com> In-Reply-To: <15217f0aa7b041c895dd1a956e703bb48df6c453.1568356742.git.thierry.herbelot@6wind.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2409:4073:2001:b5c:3cbe:f154:58ef:7234] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ee72d824-9841-44c6-f776-08d73817d6f4 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BN8PR18MB2804; x-ms-traffictypediagnostic: BN8PR18MB2804: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 0159AC2B97 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(366004)(376002)(136003)(346002)(39860400002)(189003)(199004)(13464003)(64756008)(66476007)(66946007)(66446008)(66556008)(478600001)(9686003)(186003)(53936002)(7696005)(76176011)(52536014)(102836004)(6116002)(110136005)(14454004)(54906003)(305945005)(2906002)(6246003)(7736002)(76116006)(316002)(71190400001)(107886003)(71200400001)(74316002)(6436002)(2501003)(256004)(33656002)(86362001)(4326008)(446003)(11346002)(476003)(486006)(46003)(8936002)(25786009)(6506007)(53546011)(55016002)(99286004)(8676002)(81156014)(81166006)(229853002)(5660300002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN8PR18MB2804; H:BN8PR18MB2868.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: APfhOyIqE0BG6OgyN8fRPLaotyVq4/k0IZjeBPP4gEXpbmqTx1yrlBKtKqErvesopqMivahwWy1Q1IN/RyUHZWx1pEXoMiy5rIxAwKmNSu05/ua+kK9JdSb1vMhg+VEcbpfq37iWZ/bt/TYs5wgb4PMnLBtsr5TX6pk0jjd3FOt/kqEYTUzKJn0Hm/0N8uRsbsxKNDIKAbD0UO878iC2e/LO0aRbWI3p8Lb9FqZOLnRQDQKn43fN0BgL3SqbS5u19oqCOBRLYWMWlwLgRyNoCi/7ouaxW59C3W+rcDnne/V8ThBzpwLfHpp2rDA1sTyF9uniFpUNHi3tEzfL/WQCAObuaWv4uGTayzloYXNv5DPg9MV1sNLsOnC4SKhBbOiL/0qzfAVZAoB0RCDdI6Jbh6hTSx/zmbQWNe7qzmpSvlE= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: ee72d824-9841-44c6-f776-08d73817d6f4 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2019 06:58:53.6916 (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: 61UJlEIWHGUPFAvEnesqkwqXsKXAxjwcxS/4wjJG5cIW4m75FBLFl8ZqI9bnqp13DcEy0WcSA5E+jSsdmy/4Yw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR18MB2804 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-13_04:2019-09-11,2019-09-13 signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH V2] crypto/octeontx: enable unbinding for the OCTEON TX crypto engines 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" Version history has to be after ---.=20 @Akhil, can you make this change when you submit? Acked-by: Anoob Joseph > -----Original Message----- > From: Thierry Herbelot > Sent: Friday, September 13, 2019 12:10 PM > To: dev@dpdk.org > Cc: Thomas Monjalon ; stable@dpdk.org; Anoob > Joseph > Subject: [EXT] [PATCH V2] crypto/octeontx: enable unbinding for the OCTEO= N > TX crypto engines >=20 > External Email >=20 > ---------------------------------------------------------------------- > Like for Ethernet ports, the OCTEON TX crypto engines must first be unbou= nd > from their kernel module, then rebound to vfio-pci, before being usable i= n DPDK. >=20 > As this capability is detected at runtime by dpdk-pmdinfo, add the info i= n the > PMD registering directives. >=20 > Then an external script can be used for bind and unbind. >=20 > Fixes: bfe2ae495ee268 ('crypto/octeontx: add PMD skeleton') > Cc: stable@dpdk.org > Cc: anoobj@marvell.com >=20 > V2: only "vfio-pci" is needed by this PMD >=20 > Signed-off-by: Thierry Herbelot > --- > drivers/crypto/octeontx/otx_cryptodev.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/drivers/crypto/octeontx/otx_cryptodev.c > b/drivers/crypto/octeontx/otx_cryptodev.c > index fc64a5f3041f..8df4b710c874 100644 > --- a/drivers/crypto/octeontx/otx_cryptodev.c > +++ b/drivers/crypto/octeontx/otx_cryptodev.c > @@ -118,6 +118,7 @@ static struct cryptodev_driver otx_cryptodev_drv; >=20 > RTE_PMD_REGISTER_PCI(CRYPTODEV_NAME_OCTEONTX_PMD, > otx_cryptodev_pmd); > RTE_PMD_REGISTER_PCI_TABLE(CRYPTODEV_NAME_OCTEONTX_PMD, > pci_id_cpt_table); > +RTE_PMD_REGISTER_KMOD_DEP(CRYPTODEV_NAME_OCTEONTX_PMD, > "vfio-pci"); > RTE_PMD_REGISTER_CRYPTO_DRIVER(otx_cryptodev_drv, > otx_cryptodev_pmd.driver, > otx_cryptodev_driver_id); >=20 > -- > 2.20.1