From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f65.google.com (mail-pa0-f65.google.com [209.85.220.65]) by dpdk.org (Postfix) with ESMTP id E68C711D9 for ; Fri, 10 Jun 2016 09:33:42 +0200 (CEST) Received: by mail-pa0-f65.google.com with SMTP id ug1so4529486pab.1 for ; Fri, 10 Jun 2016 00:33:42 -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=Evm5RltGn/9htBscOYvsQxd+PcLs/ayIjgG+GoVyadE=; b=QdJc/Pvh4kotTK7YhsIRDR/Z2VTON7/zBsvRNto8iWdjDs/xt+bOu6p913OsGKwTWP 0ZAKy1Xp8SzgW+5lDwyzSS/xooM3eYrfQ2vDvRwnAiGfRvUdMzAxx15bOgNTGJlI97KM l9J4aNpFXr1FD/O4GVS4HBDza0TP5bjUdu5JMlBUP3l5oW0+08Rvck3tCQmYTy93tRkV u/xu75rUhMdMCjJaCAZ77sIguGoEwC++B1al75fSLCs+zy2bITebXL8q+kE5zwES+nbK oIP/EJszB+FI8YBo0eD1DvnBZHvWudGf5hBMrYSHmU1GFGooDLWxRmnazZPzCaP1dl1f m5Ng== 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=Evm5RltGn/9htBscOYvsQxd+PcLs/ayIjgG+GoVyadE=; b=LguGfEb0ulBomifdoeVabVo3T52KR3iRRSske7M9I8tn3bBP5MycuUJy5FYitjX2MM rGEcvs2PYQI8ahHaGp9FIJmgp6QtwllvytFRDNWOnwXAPGv8LZuiLa3X+iPEPJzSWHWI lSwC7Ee3HONKCLdXif7UbVpxDeE9m5EOtbPIhM4vtdF7SxBSagaWgSbF2WLv9BaU3zUI vIcSD6GUSZ9m/uXln4fmBB7uyL4g2SXJ2RasdCl9OX5H4aAtBHKrktKqc5/naE65wSr2 2L4nj80hswE/btTSQhgSDt1xt1ccs9Le8RNkdfiYhGSlQ0JJGiwtYfRi2vm6R603Lhog FsCw== X-Gm-Message-State: ALyK8tIyBEs0gLAZJCt5+FNAFjUZA9VLOAwn6zUlFo2IaY7JXKkhqOvJ17VriBBJb2QQabop/sOf2/5moCFP1g== X-Received: by 10.66.232.226 with SMTP id tr2mr810199pac.44.1465544022066; Fri, 10 Jun 2016 00:33:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.222.39 with HTTP; Fri, 10 Jun 2016 00:33:41 -0700 (PDT) In-Reply-To: References: From: SAKTHIVEL ANAND S Date: Fri, 10 Jun 2016 13:03:41 +0530 Message-ID: To: Chinmaya Dwibedy 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 07:33:44 -0000 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 OS > 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 Cole= to > Creek PCIe Endpoint". > > > [root@test1 QAT]# lspci -nn | grep 0435 > > 00:05.0 Co-processor [0b40]: Intel Corporation Coleto Creek PCIe Endpoint > [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-drive= rs-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,115= 200n8 > 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 fai= ls > 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, #a= ccel=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 for= um > , please let me know the correct one. Thank you in advance for time and > support. > > > > Regards, > > Chinmaya > --=20 Thanks Sakthivel S OM