Skip to contentSkip to conversation

xen/arm: restrict cpu_up_send_sgi() to arm32

PATCH In review Grygorii Strashko 4 participants 5 messages Sep 11, 2025 – Dec 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: restrict cpu_up_send_sgi() to arm32

From: Grygorii Strashko <[email protected]>

Restrict cpu_up_send_sgi() function to arm32 code as it's used by arm32 platforms only and unreachable on arm64 (Misra rule 2.1).

---
Logically cpu_up_send_sgi() should be moved in arm32, but source is "GPL-2.0-or-later" while possible destination is "GPL-2.0-only", so put it under ifdef for now.

 xen/arch/arm/smpboot.c | 2 ++
 1 file changed, 2 insertions(+)
xen/arch/arm/smpboot.c +2 -0
index 7f3cfa812edb..45f3be323687 100644
@@ -464,6 +464,7 @@ static void set_smp_up_cpu(unsigned long mpidr)
 
 }
 
+#ifdef CONFIG_ARM_32
 int __init cpu_up_send_sgi(int cpu)
 {
     /* We don't know the GIC ID of the CPU until it has woken up, so just
@@ -473,6 +474,7 @@ int __init cpu_up_send_sgi(int cpu)
 
     return 0;
 }
+#endif
 
 /* Bring up a remote CPU */
 int __cpu_up(unsigned int cpu)
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw

Hi Grygorii,

Quoted 9 lines · Grygorii Strashko

From: Grygorii Strashko <[email protected]>

Restrict cpu_up_send_sgi() function to arm32 code as it's used by arm32 platforms only and unreachable on arm64 (Misra rule 2.1).

---> Logically cpu_up_send_sgi() should be moved in arm32, but source is "GPL-2.0-or-later" while possible destination is "GPL-2.0-only", so put it under ifdef for now.

:(. I don't know if we will ever solve this license mess... Looking at the list of platform using cpu_up_send_sgi(), all the platforms are 10+ years old and to be honest except maybe the rcar2 development platforms. I doubt there are anyone using them.

So I would be tempted to get rid of them and mandate PSCI when booting on Xen.

Bertrand, Michal, Stefano any thoughts?

Meanwhile for this patch:

Cheers,

Signature · 1 line
Julien Grall
#2 lore raw
Quoted 13 lines · Julien Grall

Hi Grygorii,

Quoted 9 lines · Grygorii Strashko

From: Grygorii Strashko <[email protected]>

Restrict cpu_up_send_sgi() function to arm32 code as it's used by arm32 platforms only and unreachable on arm64 (Misra rule 2.1).

---> Logically cpu_up_send_sgi() should be moved in arm32, but source is "GPL-2.0-or-later" while possible destination is "GPL-2.0-only", so put it under ifdef for now.

Quoted 8 lines

:(. I don't know if we will ever solve this license mess... Looking at the list of platform using cpu_up_send_sgi(), all the platforms are 10+ years old and to be honest except maybe the rcar2 development platforms. I doubt there are anyone using them.

So I would be tempted to get rid of them and mandate PSCI when booting on Xen.

Bertrand, Michal, Stefano any thoughts?

I am OK with that.

Quoted 3 lines

Meanwhile for this patch:

#3 lore raw

Hi,

Quoted 21 lines · Stefano Stabellini
Quoted 18 lines · Julien Grall

Hi Grygorii,

Quoted 9 lines · Grygorii Strashko

From: Grygorii Strashko <[email protected]>

Restrict cpu_up_send_sgi() function to arm32 code as it's used by arm32 platforms only and unreachable on arm64 (Misra rule 2.1).

---> Logically cpu_up_send_sgi() should be moved in arm32, but source is "GPL-2.0-or-later" while possible destination is "GPL-2.0-only", so put it under ifdef for now.

:(. I don't know if we will ever solve this license mess... Looking at the list of platform using cpu_up_send_sgi(), all the platforms are 10+ years old and to be honest except maybe the rcar2 development platforms. I doubt there are anyone using them.

Quoted 5 lines
Quoted 3 lines

So I would be tempted to get rid of them and mandate PSCI when booting on Xen.

Bertrand, Michal, Stefano any thoughts?

I am OK with that.

I am OK with that to.

Cheers
Bertrand

Quoted 5 lines
Quoted 5 lines

Meanwhile for this patch:

#4 lore raw

Hi, all

Quoted 23 lines · Bertrand Marquis

Hi,

Quoted 21 lines · Stefano Stabellini
Quoted 18 lines · Julien Grall

Hi Grygorii,

Quoted 9 lines · Grygorii Strashko

From: Grygorii Strashko <[email protected]>

Restrict cpu_up_send_sgi() function to arm32 code as it's used by arm32 platforms only and unreachable on arm64 (Misra rule 2.1).

---> Logically cpu_up_send_sgi() should be moved in arm32, but source is "GPL-2.0-or-later" while possible destination is "GPL-2.0-only", so put it under ifdef for now.

:(. I don't know if we will ever solve this license mess... Looking at the list of platform using cpu_up_send_sgi(), all the platforms are 10+ years old and to be honest except maybe the rcar2 development platforms. I doubt there are anyone using them.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

So I would be tempted to get rid of them and mandate PSCI when booting on Xen.

Bertrand, Michal, Stefano any thoughts?

I am OK with that.

I am OK with that to.

I'd like to clarify if this patch as is will be merged as is? or expected to be superseded by clean up series?

Quoted 8 lines
Quoted 6 lines
Quoted 6 lines

Meanwhile for this patch:

Signature · 2 lines
Best regards,
-grygorii