Skip to contentSkip to conversation

hppa a400 machine support

PATCH In review [email protected] 2 participants 8 messages Feb 18 – Feb 19 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

cover hppa a400 machine support

From: Helge Deller <[email protected]>

Major enhancements to SeaBIOS-hppa to support an A400 server. This server requires 64-bit PAT firmware, so SeaBIOS-hppa was extendend a lot. PAT firmware is required as well to support 64-bit HP-UX 11i3 or MPE.

The patches to qemu are quite small.

Please review.

Helge

Helge Deller (4):
hw/hppa: Add BMC on 64-bit machines only target/hppa: Update SeaBIOS-hppa to version 22 hw/hppa: Require SeaBIOS version 22 for A400 machine hw/hppa: Add emulation for the 64-bit A400 server

 hw/hppa/machine.c           |  32 +++++++++++++++++++++++++++++++-
 pc-bios/hppa-firmware.img   | Bin 628952 -> 632048 bytes
 pc-bios/hppa-firmware64.img | Bin 692032 -> 713608 bytes
 roms/seabios-hppa           |   2 +-
 4 files changed, 32 insertions(+), 2 deletions(-)
Signature · 1 line
2.53.0
#1 lore raw

PATCH 1/4 hw/hppa: Add BMC on 64-bit machines only

From: Helge Deller <[email protected]>

Prevent adding the BMC with it's serial ports on 32-bit machines, even if they have a PCI bus like the B160L. This fixes boot problems with HP-UX on B160L.

Fixes 557bc5260cfd ("hw/hppa: PCI devices depend on availability of PCI bus")
---
 hw/hppa/machine.c | 2 ++
 1 file changed, 2 insertions(+)
hw/hppa/machine.c +2 -0
index c3680667ae..d6aeb793c0 100644
@@ -376,7 +376,9 @@ static void machine_HP_common_init_tail(MachineState *machine, PCIBus *pci_bus,
 
     if (pci_bus) {
         pci_init_nic_devices(pci_bus, mc->default_nic);
+    }
 
+    if (pci_bus && hppa_is_pa20(&cpu[0]->env)) {
         /* BMC board: HP Diva GSP PCI card */
         dev = qdev_new("diva-gsp");
         if (dev && !object_property_get_bool(OBJECT(dev), "disable", NULL)) {
Signature · 1 line
2.53.0
#3 lore raw

PATCH 3/4 hw/hppa: Require SeaBIOS version 22 for A400 machine

In reply to [email protected]

From: Helge Deller <[email protected]>

Require at least SeaBIOS version 22 before adding the A400 machine. This is required, because version 22 adds the A400 machine definition and provides the necessary 64-bit PAT firmware. All other machines up to now used only the 32- or 64-bit PDC firmware without the PAT extensions.

---
 hw/hppa/machine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/hppa/machine.c +1 -1
index d6aeb793c0..5ce4a17915 100644
@@ -45,7 +45,7 @@ struct HppaMachineState {
     MachineState parent_obj;
 };
 
-#define MIN_SEABIOS_HPPA_VERSION 19 /* require at least this fw version */
+#define MIN_SEABIOS_HPPA_VERSION 22 /* require at least this fw version */
 
 #define HPA_POWER_BUTTON        (FIRMWARE_END - 0x10)
 static hwaddr soft_power_reg;
Signature · 1 line
2.53.0
#5 lore raw

PATCH 4/4 hw/hppa: Add emulation for the 64-bit A400 server

In reply to [email protected]

From: Helge Deller <[email protected]>

The A400 machine is the very first 64-bit-only machines which uses the 64-bit PAT firmware and desn't support 32-bit PDC any longer. Long-term goal is to support the MPE and HP-UX 11iv3 operating systems, which both require a machine with PAT firmware.

---
 hw/hppa/machine.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
hw/hppa/machine.c +28 -0
index 5ce4a17915..2cf4239a43 100644
@@ -729,6 +729,14 @@ static void machine_HP_C3700_init(MachineState *machine)
     machine_HP_common_init_tail(machine, pci_bus, translate);
 }
 
+/*
+ * Create HP A400 server
+ */
+static void machine_HP_A400_init(MachineState *machine)
+{
+    machine_HP_C3700_init(machine);
+}
+
 static void hppa_machine_reset(MachineState *ms, ResetType type)
 {
     unsigned int smp_cpus = ms->smp.cpus;
@@ -822,6 +830,22 @@ static void HP_C3700_machine_init_class_init(ObjectClass *oc, const void *data)
     mc->default_ram_size = 1024 * MiB;
 }
 
+static void HP_A400_machine_init_class_init(ObjectClass *oc, const void *data)
+{
+    static const char * const valid_cpu_types[] = {
+        TYPE_HPPA64_CPU,
+        NULL
+    };
+    MachineClass *mc = MACHINE_CLASS(oc);
+
+    mc->desc = "HP A400-44 workstation";
+    mc->default_cpu_type = TYPE_HPPA64_CPU;
+    mc->valid_cpu_types = valid_cpu_types;
+    mc->init = machine_HP_A400_init;
+    mc->max_cpus = HPPA_MAX_CPUS;
+    mc->default_ram_size = 1024 * MiB;
+}
+
 static void HP_715_machine_init_class_init(ObjectClass *oc, const void *data)
 {
     static const char * const valid_cpu_types[] = {
@@ -860,6 +884,10 @@ static const TypeInfo hppa_machine_types[] = {
         .name = MACHINE_TYPE_NAME("C3700"),
         .parent = TYPE_HPPA_COMMON_MACHINE,
         .class_init = HP_C3700_machine_init_class_init,
+    }, {
+        .name = MACHINE_TYPE_NAME("A400"),
+        .parent = TYPE_HPPA_COMMON_MACHINE,
+        .class_init = HP_A400_machine_init_class_init,
     }, {
         .name = MACHINE_TYPE_NAME("715"),
         .parent = TYPE_HPPA_COMMON_MACHINE,
Signature · 1 line
2.53.0
Reviewed-by Anton Johansson on v1 1/4
#2 lore raw

Re: [PATCH 1/4] hw/hppa: Add BMC on 64-bit machines only

In reply to [email protected]
Quoted 30 lines · On 18/02/26, [email protected] wrote:

From: Helge Deller <[email protected]>

Prevent adding the BMC with it's serial ports on 32-bit machines, even if they have a PCI bus like the B160L. This fixes boot problems with HP-UX on B160L.

Fixes 557bc5260cfd ("hw/hppa: PCI devices depend on availability of PCI bus")
---
 hw/hppa/machine.c | 2 ++
 1 file changed, 2 insertions(+)
hw/hppa/machine.c +2 -0
index c3680667ae..d6aeb793c0 100644
@@ -376,7 +376,9 @@ static void machine_HP_common_init_tail(MachineState *machine, PCIBus *pci_bus,
 
     if (pci_bus) {
         pci_init_nic_devices(pci_bus, mc->default_nic);
+    }
 
+    if (pci_bus && hppa_is_pa20(&cpu[0]->env)) {
         /* BMC board: HP Diva GSP PCI card */
         dev = qdev_new("diva-gsp");
         if (dev && !object_property_get_bool(OBJECT(dev), "disable", NULL)) {
Signature · 1 line
2.53.0
Reviewed-by Anton Johansson
#8 lore raw

Re: [PATCH 2/4] target/hppa: Update SeaBIOS-hppa to version 22

In reply to a message not in the archive
Quoted 9 lines · On 18/02/26, [email protected] wrote:

From: Helge Deller <[email protected]>

The new firmware includes support for an A400-44 machine
with initial functional 64-bit PAT PDC support:
- Linux 64-bit kernel runs nicely.
- ODE 2006 works nicely on 715, B160L, and A400, but has problems on C3700.
- MPE and 64-bit HP-UX11 need more work, although HP-UX11 boot up to a crash where it reports where it had problems.

Quoted 6 lines
---
 pc-bios/hppa-firmware.img   | Bin 628952 -> 632048 bytes
 pc-bios/hppa-firmware64.img | Bin 692032 -> 713608 bytes
 roms/seabios-hppa           |   2 +-
 3 files changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Anton Johansson on v1 3/4
#4 lore raw

Re: [PATCH 3/4] hw/hppa: Require SeaBIOS version 22 for A400 machine

In reply to [email protected]
Quoted 28 lines · On 18/02/26, [email protected] wrote:

From: Helge Deller <[email protected]>

Require at least SeaBIOS version 22 before adding the A400 machine. This is required, because version 22 adds the A400 machine definition and provides the necessary 64-bit PAT firmware. All other machines up to now used only the 32- or 64-bit PDC firmware without the PAT extensions.

---
 hw/hppa/machine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/hppa/machine.c +1 -1
index d6aeb793c0..5ce4a17915 100644
@@ -45,7 +45,7 @@ struct HppaMachineState {
     MachineState parent_obj;
 };
 
-#define MIN_SEABIOS_HPPA_VERSION 19 /* require at least this fw version */
+#define MIN_SEABIOS_HPPA_VERSION 22 /* require at least this fw version */
 
 #define HPA_POWER_BUTTON        (FIRMWARE_END - 0x10)
 static hwaddr soft_power_reg;
Signature · 1 line
2.53.0
Reviewed-by Anton Johansson on v1 4/4
#6 lore raw

Re: [PATCH 4/4] hw/hppa: Add emulation for the 64-bit A400 server

In reply to [email protected]
Quoted 4 lines · On 18/02/26, [email protected] wrote:

From: Helge Deller <[email protected]>

The A400 machine is the very first 64-bit-only machines which uses the 64-bit PAT firmware and desn't support 32-bit PDC any longer. Long-term goal is to

doesn't

Quoted 7 lines

support the MPE and HP-UX 11iv3 operating systems, which both require a machine with PAT firmware.

---
 hw/hppa/machine.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Anyway, nice! I'll rebase my series then.