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

Bug #1692342 reported by maxime
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

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

Revision history for this message
maxime (lion18) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Po-Hsu Lin (cypressyew)
summary: - Problem Kernel
+ lspci -vnvn returns "pcilib: sysfs_read_vpd: read failed: Input/output
+ error"
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.12 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12-rc2

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Daniel Pehush (dpehush) wrote :

Hi,

 This also seems to be present on 16.04.

root@qfsd-4:~# uname -ra
Linux qfsd-4 4.8.0-58-generic #63~16.04.1-Ubuntu SMP Mon Jun 26 18:08:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
root@qfsd-4:~# sudo lspci -vnvn > log.log
pcilib: sysfs_read_vpd: read failed: Input/output error
pcilib: sysfs_read_vpd: read failed: Input/output error

Revision history for this message
Luke Mulkey (lwmulkey) wrote :

See the same failure on kernel 4.13 but NOT on 4.4

Revision history for this message
Simon Sudler (simonsudler) wrote :

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
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
Simon Sudler (simonsudler) wrote :
Download full text (4.7 KiB)

Yes, issue is also in v5.3-rc4.

$ cat /proc/version
Linux version 5.3.0-050300rc4-generic (kernel@gloin) (gcc version 9.1.0 (Ubuntu 9.1.0-9ubuntu2)) #201908111734 SMP Sun Aug 11 21:37:12 UTC 2019

$ lspci -vv -s 08:00.0 > /dev/null
pcilib: sysfs_read_vpd: read failed: Input/output error

$ dmesg | tail -2
[ 69.185783] r8169 0000:08:00.0 enp8s0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 89.974832] r8169 0000:08:00.0: invalid short VPD tag 00 at offset 1

$ lspci -vvv -s 08:00.0 2>/dev/null
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 19
        Region 0: I/O ports at 3000 [size=256]
        Region 2: Memory at d1500000 (64-bit, non-prefetchable) [size=4K]
        Region 4: Memory at d1400000 (64-bit, prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000 Data: 0000
        Capabilities: [70] Express (v2) Endpoint, MSI 01
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <512ns, L1 <64us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 10.000W
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 4096 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s unlimited, L1 <64us
                        ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM L1 Enabled; RCB 64 bytes Disabled- CommClk+
                        ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range ABCD, TimeoutDis+, LTR+, OBFF Via message/WAKE#
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR+, OBFF Disabled
                LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-, EqualizationPhase1-
                         EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
        Capabilities: [b0] ...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.