DPDK usage discussions
 help / color / mirror / Atom feed
From: Changchun Zhang <changchun.zhang@oracle.com>
To: users@dpdk.org
Subject: [dpdk-users] Cannot enable VFs for QAT PF
Date: Fri, 8 Mar 2019 13:13:08 -0800 (PST)	[thread overview]
Message-ID: <6ec28615-daea-473e-9f4f-cee9b6237207@default> (raw)

Hi,

 

I cannot enable VFs for the QAT device, my steps are as follows:

1.     Enable VT-d in BIOS

2.     Add the "intel_iommu=on iommu=pt" in the kernel command line

3.     QAT device driver has been inserted:

~ # lsmod | grep qa

qat_c62x               16384  0 

intel_qat             114688  1 qat_c62x

 

4.     Find the BDF of the PF:

~ # lspci -d:37c8

b5:00.0 Class 0b40: Device 8086:37c8 (rev 04)

b7:00.0 Class 0b40: Device 8086:37c8 (rev 04)

 

5.     Trying to enable VFs, but I did not find sriov_numvfs in directories:

/sys/bus/pci/drivers/c6xx

/sys/bus/pci/drivers/c6xx # ls -ltr 

--w-------    1      4096 Jan 22 21:41 uevent

--w-------    1      4096 Jan 22 21:43 unbind

--w-------    1      4096 Jan 22 21:43 remove_id

--w-------    1      4096 Jan 22 21:43 new_id

lrwxrwxrwx    1         0 Jan 22 21:43 module -> ../../../../module/qat_c62x

--w-------    1      4096 Jan 22 21:43 bind

 

But I can find sriov_numvfs in other directories:

/sys # find ./ -name sriov_numvfs

./devices/pci0000:b2/0000:b2:00.0/0000:b3:00.0/0000:b4:00.0/0000:b5:00.0/sriov_numvfs

./devices/pci0000:b2/0000:b2:00.0/0000:b3:00.0/0000:b4:02.0/0000:b7:00.0/sriov_numvfs

 

Unfortunately, when trying to enable the VFs with above sriov_numvfs file, cannot write to this file, like:

/sys # echo 16 > ./devices/pci0000:b2/0000:b2:00.0/0000:b3:00.0/0000:b4:02.0/0000:b7:00.0/sriov_numvfs 

sh: write error: No such file or directory

 

Can any guys know some clue about it?

Thanks,

 

                 reply	other threads:[~2019-03-08 21:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6ec28615-daea-473e-9f4f-cee9b6237207@default \
    --to=changchun.zhang@oracle.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).