From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id EE6A42BA8 for ; Fri, 10 Jun 2016 10:57:39 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id r5so16312597wmr.0 for ; Fri, 10 Jun 2016 01:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6T1cTTwkb8nyHC5UaENpAfRwvBr4AeNvR+7rj2gmdfI=; b=KTCYoi24g59AS4qU95yoC1oCjjG25SpQNqngm8ER13ulqJ/jfpvlvIG04Lj0T/RMtR 28LKKNXRpJV6GVbz8ShWFwEBMTjLIzWdQlmSvnayOoyzryORnW1y81gcO7r9dUInCDEJ WZgx4ZaEXcCiC+RVsJHHS9PiWeR9GoUhP01q6GkpkWU081u2I1GQxXJxE+Zh9DMuL4oG jTe+z9o2q3t7mfX01T9tn9PXq2LyDC6fh4BNp0Fo8LjIQbbaCFATe4hmorNov3CZSiDw 0xxXlfF0z/AdqjVTbtPhoHTjzl6jgB9xAZOU6U7b584/HSVsGsSEqsExjVY51ca90yeb aTqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6T1cTTwkb8nyHC5UaENpAfRwvBr4AeNvR+7rj2gmdfI=; b=a+6jg/03SC6XTI5opyDVse2q7OtAQzD7n+MN77BfGWdTCtqupap5Ualc1lvvX7xIR5 LcX1Ebtvtts5kUpBNBwsT+FHA9Idm/OFl2z0xz3C6VWTLn1259ano0M5gk8ifoEytrv9 asihlj3yn8qnKhx6UCnCQWN+q+zIr571UU63ko1l5buHLs0PBe3sPWoYBg/z3VKDZLxF j1JNFqwKMeMZipkCrGL5QtQXr3hRxqWOTpc+OGh0lELZOUNIV/4DRitc/2pNa8tH9P48 EBiOflqQ96VncJx3/O2f6kvywlnrX8bd0dzsEI9Wg1ukQyonm58xwnrjMzDlpCzIF/Ep jDDg== X-Gm-Message-State: ALyK8tLTBXqMXbnKssqRkC4cR4ZUIN3yAzmjGsBxm7ZVN+dXAUy3wygcvuYlnLv9ukc9jNY1ZxYWtAWWE8zEUw== X-Received: by 10.194.153.65 with SMTP id ve1mr1060600wjb.106.1465549059660; Fri, 10 Jun 2016 01:57:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.14.1 with HTTP; Fri, 10 Jun 2016 01:57:39 -0700 (PDT) In-Reply-To: References: From: Chinmaya Dwibedy Date: Fri, 10 Jun 2016 14:27:39 +0530 Message-ID: To: SAKTHIVEL ANAND S Cc: users@dpdk.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Issue with Physical Function passthrough on VM Guest (Fedora 20) using qatmux.l.2.6.0-60 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2016 08:57:40 -0000 Hi SAKTHIVEL, Thank your for your response . On VM, added =E2=80=9Cintel_iommu=3Don=E2= =80=9D in /boot/grub2/grub.cfg and rebooted the VM. Still getting the same issue i.e., failed to start device. Here are the logs. I have done =E2=80=9Cexpo= rt ICP_SRIOV=3D0=E2=80=9D to build driver without SRIOV. Please let me know i= f I am missing anything. [root@test1 QAT]# service qat_service start Processing file: /etc/dh895xcc_qa_dev0.conf ADF_CONFIG_CTL err: adf_set_bank_core_affinity: Invalid core affinity settings for accelerator 0 bank 8. Max cpu number is 3. Defaulting to 0 ADF_CONFIG_CTL err: adf_set_bank_core_affinity: Invalid core affinity settings for accelerator 0 bank 9. Max cpu number is 3. Defaulting to 0 Parity err reporting is disabled. Error: failed to start device 0 There is 1 acceleration device(s) in the system: icp_dev0 - type=3Ddh895xcc, inst_id=3D0, node_id=3D0, bdf=3D00:05:0, #acc= el=3D6, #engines=3D12, state=3Ddown [root@test1 QAT]# [root@test1 QAT]# cat /proc/cmdline BOOT_IMAGE=3D/boot/vmlinuz-3.12.9-301.fc20.x86_64 root=3DUUID=3Dab47cbc9-68ee-403c-96a5-184e68238e65 ro console=3DttyS0,11520= 0n8 intel_iommu=3Don [root@test1 QAT]# *Kernel logs (#dmesg )* [ 693.776133] icp_qa_al err: adf_subsystemInit: Invalid SRIOV_Enabled value, driver is built with SRIOV. [ 693.777043] icp_qa_al err: adf_do_init: adf_subsystemInit error, stopping and shutting down [ 694.780830] icp_qa_al err: adf_init_all: failed to initialize accelerato= r [ 694.781554] icp_qa_al err: adf_init_devices: failed init accel 0 [ 694.782153] icp_qa_al err: adf_ctl_ioctl_dev_start: failed call to adf_init_devices [root@test1 QAT]# Regards, Chinmaya On Fri, Jun 10, 2016 at 1:03 PM, SAKTHIVEL ANAND S wrote: > If a failed to start device > error is shown during the Acceleration > installation, ensure that the kernel option > intel_iommu=3Doff > has been > configured as specified in > Updating Grub Configuration File > on page 13. If > this kernel parameter is not specified, acceleration services are only > available in a guest operating system. > > The above lines are from QAT official document.. so if u r using QAT in > VM, you have to make intel_iommu=3Don in the grub config. > > > > On Fri, Jun 10, 2016 at 12:46 PM, Chinmaya Dwibedy > wrote: > >> Hi, >> >> >> I have assigned Intel QAT device to VMs as a full device (PF - physical >> function, PCI passthrough). Below is the output of lspci in host (Cent O= S >> 7.2). >> >> >> [root@localhost nova(keystone_admin)]# lspci -nn | grep 0435 >> >> 83:00.0 Co-processor [0b40]: Intel Corporation DH895XCC Series QAT [ >> 8086:0435] >> >> 88:00.0 Co-processor [0b40]: Intel Corporation DH895XCC Series QAT [ >> 8086:0435] >> >> [root@localhost nova(keystone_admin)]# >> >> [root@localhost ~]# lspci -vnd 8086:0435 >> >> 83:00.0 0b40: 8086:0435 >> >> Subsystem: 8086:35c5 >> >> Physical Slot: 0-1 >> >> Flags: bus master, fast devsel, latency 0, IRQ 35 >> >> Memory at 387fffd00000 (64-bit, prefetchable) [size=3D512K] >> >> Memory at c8200000 (64-bit, non-prefetchable) [size=3D256K] >> >> Memory at c8240000 (64-bit, non-prefetchable) [size=3D256K] >> >> Capabilities: [b0] MSI: Enable- Count=3D1/1 Maskable+ 64bit+ >> >> Capabilities: [60] MSI-X: Enable- Count=3D33 Masked- >> >> Capabilities: [6c] Power Management version 3 >> >> Capabilities: [74] Express Endpoint, MSI 00 >> >> Capabilities: [100] Advanced Error Reporting >> >> Capabilities: [138] Alternative Routing-ID Interpretation (ARI) >> >> Capabilities: [140] Single Root I/O Virtualization (SR-IOV) >> >> Kernel driver in use: vfio-pci >> >> >> >> 88:00.0 0b40: 8086:0435 >> >> Subsystem: 8086:35c5 >> >> Physical Slot: 0-2 >> >> Flags: fast devsel, IRQ 39 >> >> Memory at 387fffe00000 (64-bit, prefetchable) [size=3D512K] >> >> Memory at c8000000 (64-bit, non-prefetchable) [size=3D256K] >> >> Memory at c8040000 (64-bit, non-prefetchable) [size=3D256K] >> >> Capabilities: [b0] MSI: Enable- Count=3D1/1 Maskable+ 64bit+ >> >> Capabilities: [60] MSI-X: Enable- Count=3D33 Masked- >> >> Capabilities: [6c] Power Management version 3 >> >> Capabilities: [74] Express Endpoint, MSI 00 >> >> Capabilities: [100] Advanced Error Reporting >> >> Capabilities: [138] Alternative Routing-ID Interpretation (ARI) >> >> Capabilities: [140] Single Root I/O Virtualization (SR-IOV) >> >> Kernel driver in use: vfio-pci >> >> >> >> [root@localhost ~]# >> >> >> In VM, the Intel QAT device shows up in lspci as "Intel Corporation >> Coleto >> Creek PCIe Endpoint". >> >> >> [root@test1 QAT]# lspci -nn | grep 0435 >> >> 00:05.0 Co-processor [0b40]: Intel Corporation Coleto Creek PCIe Endpoin= t >> [8086:0435] >> >> [root@test1 QAT]# >> >> >> Afterward I installed Intel=C2=AE QuickAssist Technology Software i.e., >> qatmux.l.2.6.0-60.tgz ( downloaded at >> >> https://01.org/packet-processing/intel%C2%AE-quickassist-technology-driv= ers-and-patches >> ) >> on the Guest VM . Here are the details of VM. >> >> 1) Fedora release 20 (Heisenbug). >> >> 2) Linux Kernel version: 3.12.9-301.fc20.x86_64. >> >> 3) BOOT_IMAGE=3D/boot/vmlinuz-3.12.9-301.fc20.x86_64 >> root=3DUUID=3Dab47cbc9-68ee-403c-96a5-184e68238e65 ro console=3DttyS0,11= 5200n8 >> intel_iommu=3Doff >> >> >> >> *Notes: * >> >> >> 1) We are not using SR-IOV and are instead passing through a PF for >> acceleration services on guest only. Hence we have not installed the >> Intel=C2=AE QuickAssist Technology Software package on the host. >> >> 2) Found an Intel QAT driver with this kernel . Upon doing #lsmod | >> grep qa, showed icp_qa_al_vf. Thus did rmmod icp_qa_al_vf and service >> qat_service shutdown. This was done before building Intel QuickAssist >> Technology Software package. >> >> >> >> For passthrough of PF, opted the below Install Acceleration option >> >> a) export ICP_SRIOV=3D0 >> >> b) export ICP_WITHOUT_IOMMU=3D1 >> >> c) ./installer.sh build_accel QAT1.6 >> >> d) ./installer.sh install QAT1.6 guest >> >> e) insmod /root/QAT /QAT1.6/build/icp_qa_al.ko >> >> >> >> When I issue the below command to start the acceleration software, it >> fails >> to start the driver. >> >> >> [root@test1 ~]# service qat_service start >> >> Processing file: /etc/dh895xcc_qa_dev0.conf >> >> ADF_CONFIG_CTL err: adf_set_bank_core_affinity: Invalid core affinity >> settings for accelerator 0 bank 8. Max cpu number is 3. Defaulting to 0 >> >> ADF_CONFIG_CTL err: adf_set_bank_core_affinity: Invalid core affinity >> settings for accelerator 0 bank 9. Max cpu number is 3. Defaulting to 0 >> >> Parity err reporting is disabled. >> >> Error: failed to start device 0 >> >> There is 1 acceleration device(s) in the system: >> >> icp_dev0 - type=3Ddh895xcc, inst_id=3D0, node_id=3D0, bdf=3D00:05:0, #= accel=3D6, >> #engines=3D12, state=3Ddown >> >> [root@test1 ~]# >> >> >> >> Here are the kernel logs >> >> >> >> [root@test1 ~]# dmesg -c >> >> [ 3104.979666] Reading config file. >> >> [ 3104.980250] Starting acceleration device icp_dev0. >> >> [ 3104.980731] Resetting device icp_dev0 >> >> [ 3105.126920] qat_1_6_adf 0000:00:05.0: irq 45 for MSI/MSI-X >> >> [ 3105.126939] qat_1_6_adf 0000:00:05.0: irq 46 for MSI/MSI-X >> >> [ 3105.126956] qat_1_6_adf 0000:00:05.0: irq 47 for MSI/MSI-X >> >> [ 3105.126973] qat_1_6_adf 0000:00:05.0: irq 48 for MSI/MSI-X >> >> [ 3105.126989] qat_1_6_adf 0000:00:05.0: irq 49 for MSI/MSI-X >> >> [ 3105.127029] qat_1_6_adf 0000:00:05.0: irq 50 for MSI/MSI-X >> >> [ 3105.127048] qat_1_6_adf 0000:00:05.0: irq 51 for MSI/MSI-X >> >> [ 3105.127065] qat_1_6_adf 0000:00:05.0: irq 52 for MSI/MSI-X >> >> [ 3105.127082] qat_1_6_adf 0000:00:05.0: irq 53 for MSI/MSI-X >> >> [ 3105.127098] qat_1_6_adf 0000:00:05.0: irq 54 for MSI/MSI-X >> >> [ 3105.127115] qat_1_6_adf 0000:00:05.0: irq 55 for MSI/MSI-X >> >> [ 3105.127131] qat_1_6_adf 0000:00:05.0: irq 56 for MSI/MSI-X >> >> [ 3105.127148] qat_1_6_adf 0000:00:05.0: irq 57 for MSI/MSI-X >> >> [ 3105.127164] qat_1_6_adf 0000:00:05.0: irq 58 for MSI/MSI-X >> >> [ 3105.127181] qat_1_6_adf 0000:00:05.0: irq 59 for MSI/MSI-X >> >> [ 3105.127198] qat_1_6_adf 0000:00:05.0: irq 60 for MSI/MSI-X >> >> [ 3105.127215] qat_1_6_adf 0000:00:05.0: irq 61 for MSI/MSI-X >> >> [ 3105.127231] qat_1_6_adf 0000:00:05.0: irq 62 for MSI/MSI-X >> >> [ 3105.127248] qat_1_6_adf 0000:00:05.0: irq 63 for MSI/MSI-X >> >> [ 3105.127265] qat_1_6_adf 0000:00:05.0: irq 64 for MSI/MSI-X >> >> [ 3105.127282] qat_1_6_adf 0000:00:05.0: irq 65 for MSI/MSI-X >> >> [ 3105.127298] qat_1_6_adf 0000:00:05.0: irq 66 for MSI/MSI-X >> >> [ 3105.127315] qat_1_6_adf 0000:00:05.0: irq 67 for MSI/MSI-X >> >> [ 3105.127331] qat_1_6_adf 0000:00:05.0: irq 68 for MSI/MSI-X >> >> [ 3105.127348] qat_1_6_adf 0000:00:05.0: irq 69 for MSI/MSI-X >> >> [ 3105.127364] qat_1_6_adf 0000:00:05.0: irq 70 for MSI/MSI-X >> >> [ 3105.127380] qat_1_6_adf 0000:00:05.0: irq 71 for MSI/MSI-X >> >> [ 3105.127397] qat_1_6_adf 0000:00:05.0: irq 72 for MSI/MSI-X >> >> [ 3105.127413] qat_1_6_adf 0000:00:05.0: irq 73 for MSI/MSI-X >> >> [ 3105.127429] qat_1_6_adf 0000:00:05.0: irq 74 for MSI/MSI-X >> >> [ 3105.127446] qat_1_6_adf 0000:00:05.0: irq 75 for MSI/MSI-X >> >> [ 3105.127462] qat_1_6_adf 0000:00:05.0: irq 76 for MSI/MSI-X >> >> [ 3105.127487] qat_1_6_adf 0000:00:05.0: irq 77 for MSI/MSI-X >> >> [ 3105.157973] icp_qa_al err: adf_subsystemInit: Invalid SRIOV_Enabled >> value, driver is built with SRIOV. >> >> [ 3105.158891] icp_qa_al err: adf_do_init: adf_subsystemInit error, >> stopping and shutting down >> >> [ 3106.162962] icp_qa_al err: adf_init_all: failed to initialize >> accelerator >> >> [ 3106.163670] icp_qa_al err: adf_init_devices: failed init accel 0 >> >> [ 3106.164256] icp_qa_al err: adf_ctl_ioctl_dev_start: failed call to >> adf_init_devices >> >> [root@test1 ~]# >> >> >> >> Can anyone please let me know what might be the issue and its remedy ? >> please feel free to correct me if I am wrong. If it is not the right >> forum >> , please let me know the correct one. Thank you in advance for time and >> support. >> >> >> >> Regards, >> >> Chinmaya >> > > > > -- > Thanks > Sakthivel S OM > >