From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 603A55B36 for ; Fri, 19 Oct 2018 23:00:18 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Oct 2018 14:00:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,401,1534834800"; d="scan'208";a="89697894" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by FMSMGA003.fm.intel.com with ESMTP; 19 Oct 2018 14:00:17 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 19 Oct 2018 14:00:17 -0700 Received: from fmsmsx108.amr.corp.intel.com ([169.254.9.237]) by FMSMSX153.amr.corp.intel.com ([169.254.9.169]) with mapi id 14.03.0319.002; Fri, 19 Oct 2018 14:00:17 -0700 From: "Pathak, Pravin" To: "Trahe, Fiona" , "users@dpdk.org" Thread-Topic: Crypto QAT device not found Thread-Index: AdRnKRXD20Lii5N3ToKo7aE94IX7JwAEow1wACdioGAABBLIcAABKyVw Date: Fri, 19 Oct 2018 21:00:15 +0000 Message-ID: <168A68C163D584429EF02A476D527442490F6AD2@FMSMSX108.amr.corp.intel.com> References: <168A68C163D584429EF02A476D527442490F5F60@FMSMSX108.amr.corp.intel.com> <348A99DA5F5B7549AA880327E580B435896503E4@IRSMSX101.ger.corp.intel.com> <168A68C163D584429EF02A476D527442490F685F@FMSMSX108.amr.corp.intel.com> <348A99DA5F5B7549AA880327E580B435896521A3@IRSMSX101.ger.corp.intel.com> In-Reply-To: <348A99DA5F5B7549AA880327E580B435896521A3@IRSMSX101.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzZkNWUxZmMtM2Q5NC00ODFiLTk5YjMtMzY1OTYxMTA5MDM2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTUFxUGpOXC9ncGREa0RHRitFc2lwM1ZKbFpiUUhOM1U0YTBkRUQySVZNbVd3VjdpVnorbDY2SDg4Qm80NXh4S3QifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.1.200.108] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] Crypto QAT device not found X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2018 21:00:20 -0000 Hi Fiona - Thanks for the help. I was using 18.05 and then moved to 18.08. For configuration changes, there is build/.config, config/common_base a= nd x86_64-native-linuxapp-gcc/.config. I was changing build/.config and building but some reason it was not pickin= g the new options set. =20 Now I changed common_base, regenerated config and build again. It worked af= ter that. I think I am not following correct build procedure. There is make, make T=3D x86_64-native-linuxapp-gcc, make install...=20 Each seems to work differently. I am able to use HW crypto device now. Regards Pravin -----Original Message----- From: Trahe, Fiona=20 Sent: Friday, October 19, 2018 4:25 PM To: Pathak, Pravin ; users@dpdk.org Cc: Trahe, Fiona Subject: RE: Crypto QAT device not found Hi Pravin, As your VFs are bound to igb_uio this looks fine. DPDK QAT PMD does support 37c9 Can you confirm which DPDK version you're using? You mentioned 18.04 but th= ere's no such release. If it's 18.08 then you also need CONFIG_RTE_LIBRTE_PMD_QAT_SYM=3Dy but not = in earlier releases.=20 Does the test code run for you? run "make test-build" in the top-level directory ./build/build/test/test/te= st -l1 -n1 -w >cryptodev_qat_autotest Fiona > -----Original Message----- > From: Pathak, Pravin > Sent: Friday, October 19, 2018 11:26 AM > To: Trahe, Fiona ; users@dpdk.org > Subject: RE: Crypto QAT device not found >=20 > Hi Fiona - > Thanks for the reply. I tried -cdev_type HW but it did not help. I=20 > am not sure of DPDK supports the device on our board. > Device is with ID 37c8/c9 >=20 > 3d:00.0 Co-processor: Intel Corporation Device 37c8 (rev 04) > 3f:00.0 Co-processor: Intel Corporation Device 37c8 (rev 04) > da:00.0 Co-processor: Intel Corporation Device 37c8 (rev 04) > 3d:01.0 Co-processor: Intel Corporation Device 37c9 (rev 04) > 3d:01.1 Co-processor: Intel Corporation Device 37c9 (rev 04) > 3d:01.2 Co-processor: Intel Corporation Device 37c9 (rev 04) > 3d:01.3 Co-processor: Intel Corporation Device 37c9 (rev 04) ........ >=20 > Everything looks correct except DPDK does not see these crypto=20 > devices. It seems virtual device if I add one. > Is there any command like argument I need to pass or build option=20 > other than CONFIG_RTE_LIBRTE_PMD_QAT=3Dy >=20 > PFs are bound to Kernel and VFs are bound to DPDK. >=20 > Crypto devices using kernel driver > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:3d:00.0 'Device 37c8' if=3D drv=3Dc6xx unused=3Dqat_c62x,igb_uio > 0000:3f:00.0 'Device 37c8' if=3D drv=3Dc6xx unused=3Dqat_c62x,igb_uio > 0000:da:00.0 'Device 37c8' if=3D drv=3Dc6xx unused=3Dqat_c62x,igb_uio >=20 > Crypto devices using DPDK-compatible driver=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 0000:3d:01.0 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf > 0000:3d:01.1 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf > 0000:3d:01.2 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf > 0000:3d:01.3 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf > 0000:3d:01.4 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf >=20 > # Drivers loaded >=20 > pkpathak@paamrpdk03:~/acp/snr/install$ lsmod | grep qat > qat_c62xvf 16384 0 > qat_c62x 20480 0 > intel_qat 163840 3 qat_c62x,qat_c62xvf,usdm_drv > uio 20480 2 igb_uio,intel_qat > authenc 16384 1 intel_qat >=20 > Anything you can spot incorrect or missing? > Regards > Pravin >=20 > -----Original Message----- > From: Trahe, Fiona > Sent: Thursday, October 18, 2018 8:05 PM > To: Pathak, Pravin ; users@dpdk.org > Subject: RE: Crypto QAT device not found >=20 > Hi Pravin, > See below. >=20 > > -----Original Message----- > > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Pathak,=20 > > Pravin > > Sent: Thursday, October 18, 2018 2:30 PM > > To: users@dpdk.org > > Subject: [dpdk-users] Crypto QAT device not found > > > > Hi All - > > I have server with Intel QAT c62x device. I followed all documentation= . > > > > - Rebuild DPDK to use QAT > > > > - QAT drivers are loaded. > > > > - QAT devices are bound to DPDK > > > > > > Crypto devices using DPDK-compatible driver=20 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > 0000:3d:01.0 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf,vfio-pci > > 0000:3d:01.1 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf,vfio-pci > > 0000:3d:01.2 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf,vfio-pci > > 0000:3d:01.3 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf,vfio-pci > > 0000:3d:01.4 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf,vfio-pci > > 0000:3d:01.5 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf,vfio-pci > > 0000:3d:01.6 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf,vfio-pci > > 0000:3d:01.7 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf,vfio-pci > > 0000:3d:02.0 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf,vfio-pci > > 0000:3d:02.1 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf,vfio-pci > > 0000:3d:02.2 'Device 37c9' drv=3Digb_uio unused=3Dqat_c62xvf,vfio-pci > > > > But if I use l2fwd-crypto sample, I get no crypto device found error > > > > Checking link statusdone > > Port0 Link Up. Speed 1000 Mbps - full-duplex > > Port1 Link Up. Speed 1000 Mbps - full-duplex Lcore 0: RX port 0=20 > > Lcore > > 1: RX port 1 No crypto devices available > > EAL: Error - exiting with code: 1 > > Cause: Failed to initialize crypto devices > > > > It works if I add virtual device --vdev "crypto_aesni_mb0" but I am no= t able to use HW device. > > Your help is appreciated. > > > > Thanks > > Pravin > [Fiona] I haven't used this tool for a while, but the command line=20 > options should be similar to the dpdk- test-crypto-perf tool. For that fo= r QAT you should whitelist the device. e.g.: > -w 0000:3d:01.0 ( before the -- , i.e. it's an EAL parameter) and =20 > use --devtype crypto_qat (after the -- , it's a parameter for the applic= ation). > The terminology of --vdev changed in a recent release, so refer to the=20 > version of=20 > http://doc.dpdk.org/guides/sample_app_ug/l2_forward_crypto.html > for the cmdline options appropriate to the release you're using. > -cdev_type HW should also cause it to select QAT