When pciutils is emerged, some patches are applied. Of these patches, one is unsuitable: /usr/portage/sys-apps/pciutils/files/2.1.11-sysfs.patch I causes incorrect data to be displayed. Without this patch, lspci -vv 03:07.0 Class 0401: 1102:0008 Subsystem: 1102:1001 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 32 (500ns min, 5000ns max) Interrupt: pin A routed to IRQ 23 Region 0: I/O ports at 9400 [size=64] Capabilities: [dc] Power Management version 2 Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- With this patch: 03:07.0 Class 0401: 1102:0008 Subsystem: 1102:1001 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 32 (500ns min, 5000ns max) Interrupt: pin A routed to IRQ 23 Region 0: I/O ports at 9400 Capabilities: [dc] Power Management version 2 Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Notice the missing [size=64]. The patch causes the failure of the [size=64] bit of information to be displayed. Another side effect is also: >lspci --version gives >lspci version 0.0 Reproducible: Always Steps to Reproduce: 1. 2. 3.
the `lspci --version` bug has nothing to do with the sysfs patch and has been around for quite a while ... fixed that in 2.1.11-r5 as for the [size] bug, it works on my machine just fine: root@vapier 0 pciutils-2.1.11 # lspci -vv | grep Region Region 0: I/O ports at e000 [size=32] Region 4: I/O ports at 4c00 [size=64] Region 5: I/O ports at 4c40 [size=64] Region 0: Memory at d2003000 (32-bit, non-prefetchable) [size=4K] Region 0: Memory at d2004000 (32-bit, non-prefetchable) [size=256] Region 0: I/O ports at d800 [size=256] Region 1: I/O ports at dc00 [size=256] Region 2: Memory at d2002000 (32-bit, non-prefetchable) [size=4K] Region 4: I/O ports at f000 [size=16] Region 0: I/O ports at 09e0 [size=8] Region 1: I/O ports at 0be0 [size=4] Region 2: I/O ports at 0960 [size=8] Region 3: I/O ports at 0b60 [size=4] Region 4: I/O ports at d400 [size=16] Region 5: Memory at d2001000 (32-bit, non-prefetchable) [size=4K] Region 0: Memory at d2000000 (32-bit, non-prefetchable) [size=4K] Region 1: I/O ports at c000 [size=8] Region 0: Memory at c8000000 (32-bit, non-prefetchable) [size=64M] Region 1: Memory at c0000000 (64-bit, prefetchable) [size=128M] Region 3: Memory at cc000000 (64-bit, non-prefetchable) [size=16M] Region 0: Memory at d1008000 (32-bit, non-prefetchable) [size=2K] Region 1: Memory at d1004000 (32-bit, non-prefetchable) [size=16K] Region 0: Memory at d1000000 (32-bit, non-prefetchable) [size=16K] Region 1: I/O ports at b000 [size=256]
On my machine some have the [size], some don't, but without that patch, they all display correctly: lspci -vv | grep Region Region 0: Memory at e8000000 (32-bit, prefetchable) Region 4: I/O ports at bc00 [size=32] Region 4: I/O ports at b000 [size=32] Region 4: I/O ports at b400 [size=32] Region 4: I/O ports at b800 [size=32] Region 0: Memory at fc100000 (32-bit, non-prefetchable) Region 0: I/O ports at <unassigned> Region 1: I/O ports at <unassigned> Region 2: I/O ports at <unassigned> Region 3: I/O ports at <unassigned> Region 4: I/O ports at f000 [size=16] Region 4: I/O ports at 0500 [size=32] Region 0: I/O ports at d800 Region 1: I/O ports at dc00 [size=64] Region 2: Memory at fc101000 (32-bit, non-prefetchable) [size=512] Region 3: Memory at fc102000 (32-bit, non-prefetchable) [size=256] Region 0: Memory at f8000000 (32-bit, non-prefetchable) Region 1: Memory at f0000000 (32-bit, prefetchable) [size=128M] Region 0: Memory at fc000000 (32-bit, non-prefetchable) Region 2: I/O ports at a000 [size=32] Region 0: Memory at fb008000 (32-bit, non-prefetchable) Region 1: Memory at fb000000 (32-bit, non-prefetchable) [size=16K] Region 0: I/O ports at 7000 Region 1: I/O ports at 7400 [size=4] Region 2: I/O ports at 7800 [size=8] Region 3: I/O ports at 7c00 [size=4] Region 4: I/O ports at 8000 [size=16] Region 5: Memory at fb00a000 (32-bit, non-prefetchable) [size=512] Region 0: I/O ports at 8400 Region 0: I/O ports at 8800 Region 0: I/O ports at 8c00 Region 0: I/O ports at 9000 Region 0: Memory at fb009000 (32-bit, non-prefetchable) Region 1: Memory at fb004000 (32-bit, non-prefetchable) [size=16K] Region 0: I/O ports at 9400
what does this show: cat /sys/bus/pci/devices/03:07.0/resource
cat /sys/bus/pci/devices/0000\:03\:07.0/resource 0x0000000000009400 0x000000000000943f 0x0000000000000101 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000
try 2.1.11-r5 and see if it works ... i updated the sysfs from debian
2.1.11-r5 seems to work correctly. Thank you.