Just found the same input/output error on 18.04 with Linux version
5.0.0-25-generic:

$ lspci -vv -s 08:00.0
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 
PCI Express Gigabit Ethernet Controller (rev 0c)
...
pcilib: sysfs_read_vpd: read failed: Input/output error
...

It seams it happens, when the /sys/bus/pci/devices/0000:08:00.0/vpd is
accessed:

$ strace -o /tmp/strace.log lspci -vv -s 08:00.0 > /dev/null
pcilib: sysfs_read_vpd: read failed: Input/output error

$ cat /tmp/strace.log | grep -B 2 -C 2 "Input/output error"
pread64(3, "\3\0\0\0", 4, 208)          = 4
openat(AT_FDCWD, "/sys/bus/pci/devices/0000:08:00.0/vpd", O_RDONLY) = 5
pread64(5, 0x7fff8ed80e2e, 1, 0)        = -1 EIO (Input/output error)
write(2, "pcilib: ", 8)                 = 8
write(2, "sysfs_read_vpd: read failed: Inp"..., 47) = 47

It can be reproduced by reading the device directly:

$ cat /sys/bus/pci/devices/0000:08:00.0/vpd
cat: '/sys/bus/pci/devices/0000:08:00.0/vpd': Input/output error

It seams that this is a kernel issue, because the vpd is created, even
if the device (in my case the RTL8111/8168/8411) does not support vpd.

There is also a kernel bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=199467


** Changed in: linux (Ubuntu)
       Status: Expired => Confirmed

** Bug watch added: Linux Kernel Bug Tracker #199467
   https://bugzilla.kernel.org/show_bug.cgi?id=199467

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1692342

Title:
  lspci -vnvn returns "pcilib: sysfs_read_vpd: read failed: Input/output
  error"

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  pierre@pierre-Aspire-7530G:~$  cat /proc/version_signature > version.log
  pierre@pierre-Aspire-7530G:~$ more  version.log
  Ubuntu 4.10.0-20.22-generic 4.10.8

  pierre@pierre-Aspire-7530G:~$ sudo lspci -vnvn > lspci-vnvn.log
  pcilib: sysfs_read_vpd: read failed: Input/output error

  ProblemType: Bug
  DistroRelease: Ubuntu 17.04
  Package: linux-image-4.10.0-20-generic 4.10.0-20.22
  ProcVersionSignature: Ubuntu 4.10.0-20.22-generic 4.10.8
  Uname: Linux 4.10.0-20-generic x86_64
  NonfreeKernelModules: nvidia_uvm nvidia
  ApportVersion: 2.20.4-0ubuntu4
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  pierre     1489 F.... pulseaudio
  CurrentDesktop: XFCE
  Date: Sun May 21 20:01:24 2017
  HibernationDevice: RESUME=UUID=285b9e5e-6e8c-4896-b5a1-ac4c2797e3a6
  InstallationDate: Installed on 2016-12-24 (148 days ago)
  InstallationMedia: Xubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
  MachineType: Hewlett-Packard HP Pavilion dv7 Notebook PC
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.10.0-20-generic 
root=/dev/mapper/xubuntu--vg-root ro quiet splash
  RelatedPackageVersions:
   linux-restricted-modules-4.10.0-20-generic N/A
   linux-backports-modules-4.10.0-20-generic  N/A
   linux-firmware                             1.164.1
  SourcePackage: linux
  UpgradeStatus: Upgraded to zesty on 2017-05-13 (8 days ago)
  dmi.bios.date: 12/23/2008
  dmi.bios.vendor: Hewlett-Packard
  dmi.bios.version: F.25
  dmi.board.asset.tag: Base Board Asset Tag
  dmi.board.name: 30F4
  dmi.board.vendor: Compal
  dmi.board.version: 99.95
  dmi.chassis.type: 10
  dmi.chassis.vendor: Compal
  dmi.chassis.version: N/A
  dmi.modalias: 
dmi:bvnHewlett-Packard:bvrF.25:bd12/23/2008:svnHewlett-Packard:pnHPPaviliondv7NotebookPC:pvrF.25:rvnCompal:rn30F4:rvr99.95:cvnCompal:ct10:cvrN/A:
  dmi.product.name: HP Pavilion dv7 Notebook PC
  dmi.product.version: F.25
  dmi.sys.vendor: Hewlett-Packard

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1692342/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to