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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1692342

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to