Skip to contentSkip to conversation

tests/functional/test_mips_malta: Re-enable the check for the PCI host bridge

PATCH In review Thomas Huth 3 participants 3 messages May 22, 2025 – May 26, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/functional/test_mips_malta: Re-enable the check for the PCI host bridge

From: Thomas Huth <[email protected]>

The problem with the PCI bridge has been fixed in commit e5894fd6f411c1 ("hw/pci-host/gt64120: Fix endianness handling"), so we can enable the corresponding test again.

---
 tests/functional/test_mips_malta.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
tests/functional/test_mips_malta.py +2 -4
index 89b9556f30d..30279f0ff21 100755
@@ -80,10 +80,8 @@ def mips_check_wheezy(test, kernel_path, image_path, kernel_command_line,
     exec_command_and_wait_for_pattern(test, 'cat /proc/devices', 'usb')
     exec_command_and_wait_for_pattern(test, 'cat /proc/ioports',
                                       ' : piix4_smbus')
-    # lspci for the host bridge does not work on big endian targets:
-    # https://gitlab.com/qemu-project/qemu/-/issues/2826
-    # exec_command_and_wait_for_pattern(test, 'lspci -d 11ab:4620',
-    #                                   'GT-64120')
+    exec_command_and_wait_for_pattern(test, 'lspci -d 11ab:4620',
+                                      'GT-64120')
     exec_command_and_wait_for_pattern(test,
                                       'cat /sys/bus/i2c/devices/i2c-0/name',
                                       'SMBus PIIX4 adapter')
Signature · 1 line
2.49.0
Reviewed-by on v1 1/1
#2 lore raw
In reply to Thomas Huth
Quoted 18 lines · Thomas Huth

From: Thomas Huth <[email protected]>

The problem with the PCI bridge has been fixed in commit e5894fd6f411c1 ("hw/pci-host/gt64120: Fix endianness handling"), so we can enable the corresponding test again.

---
  tests/functional/test_mips_malta.py | 6 ++----
  1 file changed, 2 insertions(+), 4 deletions(-)
tests/functional/test_mips_malta.py +0 -0
index 89b9556f30d..30279f0ff21 100755
@@ -80,10 +80,8 @@ def mips_check_wheezy(test, kernel_path, image_path, kernel_command_line,
      exec_command_and_wait_for_pattern(test, 'cat /proc/devices', 'usb')
      exec_command_and_wait_for_pattern(test, 'cat /proc/ioports',

tests/functional/test_mips_malta.py def mips_check_wheezy(test, kernel_path, image_path, kernel_command_line, · line 87

Quoted 10 lines
tests/functional/test_mips_malta.py +2 -4
                                        ' : piix4_smbus')
-    # lspci for the host bridge does not work on big endian targets:
-    # https://gitlab.com/qemu-project/qemu/-/issues/2826
-    # exec_command_and_wait_for_pattern(test, 'lspci -d 11ab:4620',
-    #                                   'GT-64120')
+    exec_command_and_wait_for_pattern(test, 'lspci -d 11ab:4620',
+                                      'GT-64120')
      exec_command_and_wait_for_pattern(test,
                                        'cat /sys/bus/i2c/devices/i2c-0/name',
                                        'SMBus PIIX4 adapter')