Date: Tue, 14 Mar 2017 06:37:09 +0000 From: Mu Lichao <mulichao@outlook.com> To: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: PCI slot and function number for ARI enabled devices Message-ID: <HK2PR02MB0772321CB8F10557CD6291BCC4240@HK2PR02MB0772.apcprd02.prod.outlook.com>
next in thread | raw e-mail | index | archive | help
Hi, I am trying to enable Intel 82599 10GbE SR-IOV VFs on FreeBSD 12-CURRENT, a= nd after enabled, the SR-IOV VFs can be seen by pciconf(1), but can not be = seen by lspci(1), which is installed from ports/sysutils/pciutils: # pciconf -l | tail -2 ixv0@pci0:1:0:128: class=3D0x020000 card=3D0x002a1fc1 chip=3D0x10ed808= 6 rev=3D0x01 hdr=3D0x00 ixv1@pci0:1:0:130: class=3D0x020000 card=3D0x002a1fc1 chip=3D0x10ed808= 6 rev=3D0x01 hdr=3D0x00 # lspci | grep 82599 01:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ = Network Connection (rev 01) 01:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ = Network Connection (rev 01) After some debugging, I found that it is because of ARI. After ARI is enabl= ed, the slot number is always 0 and the function number can be range betwee= n 0 and 255 when reading from /dev/pci, and this breaks lspci(1). Is it a behavior by design or not? Regards, Lichao Mu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?HK2PR02MB0772321CB8F10557CD6291BCC4240>