Skip to contentSkip to conversation

Add A64FX CPU support to the sbsa-ref board.

PATCH In review Itaru Kitayama 2 participants 3 messages May 20, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add A64FX CPU support to the sbsa-ref board.

In target/arm/cpu64.c, CPU init function for A64FX is there, add this CPU to the sbsa-ref board.

---
 hw/arm/sbsa-ref.c | 1 +
 1 file changed, 1 insertion(+)
hw/arm/sbsa-ref.c +1 -0
index 4bb444684f..a7d27b2e55 100644
@@ -146,6 +146,7 @@ static const char * const valid_cpus[] = {
     ARM_CPU_TYPE_NAME("cortex-a57"),
     ARM_CPU_TYPE_NAME("cortex-a72"),
     ARM_CPU_TYPE_NAME("cortex-a76"),
+    ARM_CPU_TYPE_NAME("a64fx"),
     ARM_CPU_TYPE_NAME("neoverse-n1"),
     ARM_CPU_TYPE_NAME("max"),
 };
Signature · 1 line
2.25.1
#1 lore raw
Quoted 3 lines · Itaru Kitayama

In target/arm/cpu64.c, CPU init function for A64FX is there, add this CPU to the sbsa-ref board.

(cc'ing the sbsa-ref maintainers)

This isn't an objection, but I would like to know what the sbsa-ref maintainers' view is on what CPUs the board type is supposed to handle. Is this like the virt board, where we add basically any CPU type that might possibly work? Or is it more like a piece of 'real' hardware, where there are only one or two CPU types that that hardware might have shipped with, and the firmware/software stack might not be built to cope with anything more ?

If we can answer the general question, then specific patches like this one will be easy to review.

Quoted 18 lines
---
 hw/arm/sbsa-ref.c | 1 +
 1 file changed, 1 insertion(+)
hw/arm/sbsa-ref.c +1 -1
index 4bb444684f..a7d27b2e55 100644
@@ -146,6 +146,7 @@ static const char * const valid_cpus[] = {
     ARM_CPU_TYPE_NAME("cortex-a57"),
     ARM_CPU_TYPE_NAME("cortex-a72"),
     ARM_CPU_TYPE_NAME("cortex-a76"),
+    ARM_CPU_TYPE_NAME("a64fx"),
     ARM_CPU_TYPE_NAME("neoverse-n1"),
     ARM_CPU_TYPE_NAME("max"),
 };
--
Quoted 1 line

2.25.1

thanks
-- PMM

#2 lore raw

Doesn’t ‘max’ support being there mean we are supposed to support various types of CPUs on the SBSA board?

Quoted 43 lines · On Fri, May 20, 2022 at 18:00 Peter Maydell <[email protected]> wrote:
Quoted 3 lines · Itaru Kitayama

In target/arm/cpu64.c, CPU init function for A64FX is there, add this CPU to the sbsa-ref board.

(cc'ing the sbsa-ref maintainers)

This isn't an objection, but I would like to know what the sbsa-ref maintainers' view is on what CPUs the board type is supposed to handle. Is this like the virt board, where we add basically any CPU type that might possibly work? Or is it more like a piece of 'real' hardware, where there are only one or two CPU types that that hardware might have shipped with, and the firmware/software stack might not be built to cope with anything more ?

If we can answer the general question, then specific patches like this one will be easy to review.

Quoted 18 lines
---
 hw/arm/sbsa-ref.c | 1 +
 1 file changed, 1 insertion(+)
hw/arm/sbsa-ref.c +1 -1
index 4bb444684f..a7d27b2e55 100644
@@ -146,6 +146,7 @@ static const char * const valid_cpus[] = {
     ARM_CPU_TYPE_NAME("cortex-a57"),
     ARM_CPU_TYPE_NAME("cortex-a72"),
     ARM_CPU_TYPE_NAME("cortex-a76"),
+    ARM_CPU_TYPE_NAME("a64fx"),
     ARM_CPU_TYPE_NAME("neoverse-n1"),
     ARM_CPU_TYPE_NAME("max"),
 };
--
Quoted 1 line

2.25.1

thanks
-- PMM