WLAN-Pi / wlanpi-hwtest

hwtest drives a suite of tests to determine diagnostic health for WLAN Pi Pro hardware.
Other
1 stars 0 forks source link

pci_test.py error on valid VL805 USB Controller #36

Closed joshschmelzle closed 2 years ago

joshschmelzle commented 2 years ago

Investigate pci_test.py and make it more robust to handle different lspci responses for the VL805 USB Controller.

Error:

E    AssertionError: assert ‘USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host Controller’ in ‘03:00.0 USB controller: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller (rev 01)’
/opt/wlanpi-hwtest/lib/python3.9/site-packages/hwtest/automated/pci_test.py:32: AssertionError

Unit A (passing):

wlanpi@wlanpi:~ $ lspci
00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2711 PCIe Bridge (rev 20)
01:00.0 PCI bridge: Pericom Semiconductor PI7C9X2G404 EL/SL PCIe2 4-Port/4-Lane Packet Switch (rev 05)
02:01.0 PCI bridge: Pericom Semiconductor PI7C9X2G404 EL/SL PCIe2 4-Port/4-Lane Packet Switch (rev 05)
02:02.0 PCI bridge: Pericom Semiconductor PI7C9X2G404 EL/SL PCIe2 4-Port/4-Lane Packet Switch (rev 05)
02:03.0 PCI bridge: Pericom Semiconductor PI7C9X2G404 EL/SL PCIe2 4-Port/4-Lane Packet Switch (rev 05)
03:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host Controller (rev 01)
04:00.0 Network controller: Intel Corporation Wi-Fi 6 AX210/AX211/AX411 160MHz (rev 1a)
05:00.0 Network controller: Intel Corporation Wi-Fi 6 AX210/AX211/AX411 160MHz (rev 1a)

Unit B (failing):

wlanpi@wlanpi:~ $ lspci
00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2711 PCIe Bridge (rev 20)
01:00.0 PCI bridge: Pericom Semiconductor PI7C9X2G404 EL/SL PCIe2 4-Port/4-Lane Packet Switch (rev 05)
02:01.0 PCI bridge: Pericom Semiconductor PI7C9X2G404 EL/SL PCIe2 4-Port/4-Lane Packet Switch (rev 05)
02:02.0 PCI bridge: Pericom Semiconductor PI7C9X2G404 EL/SL PCIe2 4-Port/4-Lane Packet Switch (rev 05)
02:03.0 PCI bridge: Pericom Semiconductor PI7C9X2G404 EL/SL PCIe2 4-Port/4-Lane Packet Switch (rev 05)
03:00.0 USB controller: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller (rev 01)

Unit numbers are arbitrary.

joshschmelzle commented 2 years ago

As another data point, when we update (sudo update-pciids) the PCI ID list the description for the VL805 USB controller is changed:

wlanpi@wlanpi:~ $ cat /usr/share/misc/pci.ids | grep VL805
        3483  VL805 USB 3.0 Host Controller
wlanpi@wlanpi:~ $ sudo update-pciids
[sudo] password for wlanpi:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  273k  100  273k    0     0   177k      0  0:00:01  0:00:01 --:--:--  177k
Done.
wlanpi@wlanpi:~ $ cat /usr/share/misc/pci.ids | grep VL805
        3483  VL805/806 xHCI USB 3.0 Controller