All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] target/hppa patches
@ 2026-11-24 21:06 Helge Deller
  2026-11-24 21:06 ` [PATCH v2 1/3] hw/hppa: fix OpenBSD boot on B160L emulation Helge Deller
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Helge Deller @ 2026-11-24 21:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: Helge Deller, Brad Smith, Kirill A . Korinsky

From: Helge Deller <deller@gmx.de>

Two small patches to adjust the CPU HPA on the 715 and B160L machine
to avoid boot hangs, e.g. on OpenBSD.
Add one test to check if OpenBSD starts.

Helge Deller (2):
  hw/hppa: fix OpenBSD boot on B160L emulation
  hw/hppa: adjust CPU HPA on 715 to avoid broadcast address

Kirill A. Korinsky (1):
  tests/functional/hppa: add OpenBSD CD-ROM boot test for
    qemu-system-hppa

 hw/hppa/machine.c                     |  5 ++--
 tests/functional/hppa/meson.build     |  1 +
 tests/functional/hppa/test_openbsd.py | 37 +++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 2 deletions(-)
 create mode 100755 tests/functional/hppa/test_openbsd.py

-- 
2.54.0



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 1/3] hw/hppa: fix OpenBSD boot on B160L emulation
  2026-11-24 21:06 [PATCH v2 0/3] target/hppa patches Helge Deller
@ 2026-11-24 21:06 ` Helge Deller
  2026-11-24 21:06 ` [PATCH v2 2/3] tests/functional/hppa: add OpenBSD CD-ROM boot test for qemu-system-hppa Helge Deller
  2026-11-24 21:06 ` [PATCH v2 3/3] hw/hppa: adjust CPU HPA on 715 to avoid broadcast address Helge Deller
  2 siblings, 0 replies; 4+ messages in thread
From: Helge Deller @ 2026-11-24 21:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: Helge Deller, Brad Smith, Kirill A . Korinsky

From: Helge Deller <deller@gmx.de>

OpenBSD 8.0 hangs on boot since commit 98c37479afc7 ("target/hppa: Map
CPUs at same addresses as on physical machines"):

"Advanced audio (ext.)" at gsc0 (type a sv 7b mod 3 hv d4) offset 4000 not configured
"Core Centronics" at gsc0 (type a sv 74 mod 3 hv d0) offset 2000 not configured
dino0 at phantomas0 offset ff80000: can't map space
panic: trap: uvm_fault(0xaf8560, 0, 0, 2): 14
syncing disks... done
dump to dev 301 not possible
rebooting...SeaBIOS wants SYSTEM RESET.

On a physical machine, the boot CPU HPA is 0xfffbe000, so let's use
0xfffa0000 instead of the current (invalid) HPA of 0xfff10000 to allow
space for multiple CPUs.

Reported-by: Kirill A. Korinsky <kirill@korins.ky>
Signed-off-by: Helge Deller <deller@gmx.de>
---
 hw/hppa/machine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
index 3b83968f33..8dd9023058 100644
--- a/hw/hppa/machine.c
+++ b/hw/hppa/machine.c
@@ -716,7 +716,7 @@ static void machine_HP_B160L_init(MachineState *machine)
     PCIBus *pci_bus;
 
     /* Create CPUs and RAM.  */
-    translate = machine_HP_common_init_cpus(machine, 0xfff10000);
+    translate = machine_HP_common_init_cpus(machine, 0xfffa0000);
 
     if (hppa_is_pa20(&cpu[0]->env)) {
         error_report("The HP B160L workstation requires a 32-bit "
-- 
2.54.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 2/3] tests/functional/hppa: add OpenBSD CD-ROM boot test for qemu-system-hppa
  2026-11-24 21:06 [PATCH v2 0/3] target/hppa patches Helge Deller
  2026-11-24 21:06 ` [PATCH v2 1/3] hw/hppa: fix OpenBSD boot on B160L emulation Helge Deller
@ 2026-11-24 21:06 ` Helge Deller
  2026-11-24 21:06 ` [PATCH v2 3/3] hw/hppa: adjust CPU HPA on 715 to avoid broadcast address Helge Deller
  2 siblings, 0 replies; 4+ messages in thread
From: Helge Deller @ 2026-11-24 21:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: Helge Deller, Brad Smith, Kirill A . Korinsky

From: "Kirill A. Korinsky" <kirill@korins.ky>

Test that OpenBSD boots on a B160L and reaches the installer.

Signed-off-by: Kirill A. Korinsky <kirill@korins.ky>
Signed-off-by: Helge Deller <deller@gmx.de>
---
 tests/functional/hppa/meson.build     |  1 +
 tests/functional/hppa/test_openbsd.py | 37 +++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100755 tests/functional/hppa/test_openbsd.py

diff --git a/tests/functional/hppa/meson.build b/tests/functional/hppa/meson.build
index df2f7ccc9c..d34feb69ae 100644
--- a/tests/functional/hppa/meson.build
+++ b/tests/functional/hppa/meson.build
@@ -6,4 +6,5 @@ tests_hppa_system_quick = [
 
 tests_hppa_system_thorough = [
   'cdboot',
+  'openbsd',
 ]
diff --git a/tests/functional/hppa/test_openbsd.py b/tests/functional/hppa/test_openbsd.py
new file mode 100755
index 0000000000..22ab1e655c
--- /dev/null
+++ b/tests/functional/hppa/test_openbsd.py
@@ -0,0 +1,37 @@
+#!/usr/bin/env python3
+#
+# Test that OpenBSD boots on B160L and reaches the installer.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+from qemu_test import QemuSystemTest, Asset
+from qemu_test import wait_for_console_pattern
+
+
+class OpenBSDB160L(QemuSystemTest):
+
+    ASSET_CD = Asset(
+        'https://ftp.eu.openbsd.org/pub/OpenBSD/8.0/hppa/cd80.iso',
+        '9b3971dc3d2362e5d694495f2c2e10795513b87c9bcca5666df5a2bfea071663')
+
+    def test_openbsd_80_installer(self):
+        self.set_machine('B160L')
+        self.require_accelerator('tcg')
+        cdrom_path = self.ASSET_CD.fetch()
+
+        self.vm.set_console()
+        self.vm.add_args('-nic', 'none',
+                         '-cdrom', cdrom_path,
+                         '-boot', 'd',
+                         '-no-reboot')
+        self.vm.launch()
+
+        wait_for_console_pattern(self, 'OpenBSD 8.0 (RAMDISK)', 'panic:')
+        wait_for_console_pattern(
+            self,
+            '(I)nstall, (U)pgrade, (A)utoinstall or (S)hell?',
+            'panic:')
+
+
+if __name__ == '__main__':
+    QemuSystemTest.main()
-- 
2.54.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 3/3] hw/hppa: adjust CPU HPA on 715 to avoid broadcast address
  2026-11-24 21:06 [PATCH v2 0/3] target/hppa patches Helge Deller
  2026-11-24 21:06 ` [PATCH v2 1/3] hw/hppa: fix OpenBSD boot on B160L emulation Helge Deller
  2026-11-24 21:06 ` [PATCH v2 2/3] tests/functional/hppa: add OpenBSD CD-ROM boot test for qemu-system-hppa Helge Deller
@ 2026-11-24 21:06 ` Helge Deller
  2 siblings, 0 replies; 4+ messages in thread
From: Helge Deller @ 2026-11-24 21:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: Helge Deller, Brad Smith, Kirill A . Korinsky

From: Helge Deller <deller@gmx.de>

Change the CPU HPA for the monarch CPU on the 715 machine to 0xfffa0000
if more than 2 CPUs are configured, as otherwise the second CPU would be
on HPA 0xfffc0000 which conflicts with the global broadcast HPA
(HPPA_BROADCAST_HPA).

Signed-off-by: Helge Deller <deller@gmx.de>
---
 hw/hppa/machine.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
index 8dd9023058..333ab7ba3a 100644
--- a/hw/hppa/machine.c
+++ b/hw/hppa/machine.c
@@ -629,7 +629,8 @@ static void machine_HP_715_init(MachineState *machine)
     ISABus *isa_bus;
 
     /* Create CPUs and RAM.  */
-    translate = machine_HP_common_init_cpus(machine, 0xfffbe000);
+    translate = machine_HP_common_init_cpus(machine,
+                    machine->smp.cpus <= 3 ? 0xfffbe000 : 0xfffa0000);
 
     if (hppa_is_pa20(&cpu[0]->env)) {
         error_report("The HP 715/64 workstation requires a 32-bit "
-- 
2.54.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-24 21:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 21:06 [PATCH v2 0/3] target/hppa patches Helge Deller
2026-11-24 21:06 ` [PATCH v2 1/3] hw/hppa: fix OpenBSD boot on B160L emulation Helge Deller
2026-11-24 21:06 ` [PATCH v2 2/3] tests/functional/hppa: add OpenBSD CD-ROM boot test for qemu-system-hppa Helge Deller
2026-11-24 21:06 ` [PATCH v2 3/3] hw/hppa: adjust CPU HPA on 715 to avoid broadcast address Helge Deller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.