hw/arm: Add missing psci_conduit to NPCM8XX SoC boot info
PATCH 1/1 hw/arm: Add missing psci_conduit to NPCM8XX SoC boot info
Without psci_conduit, the Linux kernel crashes almost immediately.
psci: probing for conduit method from DT.
Internal error: Oops - Undefined instruction: 0000000002000000 [#1] PREEMPT SMP
--- hw/arm/npcm8xx.c | 1 + 1 file changed, 1 insertion(+)
hw/arm/npcm8xx.c +1 -0
@@ -346,6 +346,7 @@ static struct arm_boot_info npcm8xx_binfo = { .secure_boot = false, .board_id = -1, .board_setup_addr = NPCM8XX_BOARD_SETUP_ADDR, + .psci_conduit = QEMU_PSCI_CONDUIT_SMC, };void npcm8xx_load_kernel (MachineState *machine,NPCM8xxState *soc)
Signature · 1 line
2.45.2
Quoted 19 lines · Guenter Roeck
Without
psci_conduit, the Linux kernel crashes almost immediately.psci: probing for conduit method from DT.
Internal error: Oops - Undefined instruction: 0000000002000000 [#1] PREEMPT SMPFixes ae0c4d1a1290 ("hw/arm: Add NPCM8XX SoC")Cc Hao Wu <[email protected]>Cc Peter Maydell <[email protected]>Signed-off-by Guenter Roeck <[email protected]>--- hw/arm/npcm8xx.c | 1 + 1 file changed, 1 insertion(+)hw/arm/npcm8xx.c +0
-0
hw/arm/npcm8xx.c static struct arm_boot_info npcm8xx_binfo = { · line 350
Quoted 5 lines
hw/arm/npcm8xx.c +1
-0@@ -346,6 +346,7 @@ static struct arm_boot_info npcm8xx_binfo = { .secure_boot = false, .board_id = -1, .board_setup_addr = NPCM8XX_BOARD_SETUP_ADDR, + .psci_conduit = QEMU_PSCI_CONDUIT_SMC, };
Why do we need this for npcm8xx when we don't need it for npcm7xx? Or is it also broken on 7xx?
thanks
-- PMM
Quoted 15 lines · Peter Maydell
Quoted 14 lines · Guenter Roeck
Without
psci_conduit, the Linux kernel crashes almost immediately.psci: probing for conduit method from DT.
Internal error: Oops - Undefined instruction: 0000000002000000 [#1] PREEMPT SMPFixes ae0c4d1a1290 ("hw/arm: Add NPCM8XX SoC")Cc Hao Wu <[email protected]>Cc Peter Maydell <[email protected]>Signed-off-by Guenter Roeck <[email protected]>--- hw/arm/npcm8xx.c | 1 + 1 file changed, 1 insertion(+)
Quoted 14 lines
hw/arm/npcm8xx.c static struct arm_boot_info npcm8xx_binfo = { · line 350
Quoted 10 lines
hw/arm/npcm8xx.c +1
-0@@ -346,6 +346,7 @@ static struct arm_boot_info npcm8xx_binfo = { .secure_boot = false, .board_id = -1, .board_setup_addr = NPCM8XX_BOARD_SETUP_ADDR, + .psci_conduit = QEMU_PSCI_CONDUIT_SMC, };Why do we need this for npcm8xx when we don't need it for npcm7xx? Or is it also broken on 7xx?
I don't see a reference to psci in npcm7xx devicetree files in the upstream Linux kernel.
$ git grep psci arch/arm64/boot/dts/nuvoton/ arch/arm/boot/dts/nuvoton/
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi: enable-method = "psci";
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi: enable-method = "psci";
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi: psci {
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi: compatible = "arm,psci-0.2";
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: enable-method = "psci";
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: enable-method = "psci";
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: enable-method = "psci";
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: enable-method = "psci";
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: psci {
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: compatible = "arm,psci-1.0";Guenter
Quoted 35 lines · Guenter Roeck
Quoted 15 lines · Peter Maydell
Quoted 14 lines · Guenter Roeck
Without
psci_conduit, the Linux kernel crashes almost immediately.psci: probing for conduit method from DT.
Internal error: Oops - Undefined instruction: 0000000002000000 [#1] PREEMPT SMPFixes ae0c4d1a1290 ("hw/arm: Add NPCM8XX SoC")Cc Hao Wu <[email protected]>Cc Peter Maydell <[email protected]>Signed-off-by Guenter Roeck <[email protected]>--- hw/arm/npcm8xx.c | 1 + 1 file changed, 1 insertion(+)Quoted 14 lines
hw/arm/npcm8xx.c static struct arm_boot_info npcm8xx_binfo = { · line 350
Quoted 10 lines
hw/arm/npcm8xx.c +1
-0@@ -346,6 +346,7 @@ static struct arm_boot_info npcm8xx_binfo = { .secure_boot = false, .board_id = -1, .board_setup_addr = NPCM8XX_BOARD_SETUP_ADDR, + .psci_conduit = QEMU_PSCI_CONDUIT_SMC, };Why do we need this for npcm8xx when we don't need it for npcm7xx? Or is it also broken on 7xx?
I don't see a reference to psci in npcm7xx devicetree files in the upstream Linux kernel.
Quoted 11 lines
$ git grep psci arch/arm64/boot/dts/nuvoton/ arch/arm/boot/dts/nuvoton/
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi: enable-method = "psci";
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi: enable-method = "psci";
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi: psci {
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi: compatible = "arm,psci-0.2";
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: enable-method = "psci";
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: enable-method = "psci";
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: enable-method = "psci";
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: enable-method = "psci";
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: psci {
arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: compatible = "arm,psci-1.0";I guess the aarch32 versions of the board don't use psci and the aarch64 one does.
Would any of the Nuvoton folks like to comment on this patch? It looks like a correct fix to me.
thanks
-- PMM
Hi PMM:
From: Peter Maydell <[email protected]>
Sent: Sunday, May 11, 2025 9:42 PM
To: Guenter Roeck <[email protected]>
Cc: CS20 KFTing <[email protected]>; [email protected]; [email protected]; Hao Wu <[email protected]>
Subject: Re: [PATCH] hw/arm: Add missing psci_conduit to NPCM8XX SoC boot info
Quoted 50 lines · Guenter Roeck
Quoted 16 lines · Peter Maydell
Quoted 15 lines · Guenter Roeck
Without
psci_conduit, the Linux kernel crashes almost immediately.psci: probing for conduit method from DT.
Internal error: Oops - Undefined instruction: 0000000002000000
[#1] PREEMPT SMPFixes ae0c4d1a1290 ("hw/arm: Add NPCM8XX SoC")Cc Hao Wu <[email protected]>Cc Peter Maydell <[email protected]>Signed-off-by Guenter Roeck <[email protected]>--- hw/arm/npcm8xx.c | 1 + 1 file changed, 1 insertion(+)Quoted 14 lines
hw/arm/npcm8xx.c static struct arm_boot_info npcm8xx_binfo = { · line 350
Quoted 10 lines
hw/arm/npcm8xx.c index renamed from hw/arm/npcm8xx.c +0
-0
f182accc47..e5a1929ed7100644hw/arm/npcm8xx.c +1
-0@@ -346,6 +346,7 @@ static struct arm_boot_info npcm8xx_binfo = { .secure_boot = false, .board_id = -1, .board_setup_addr = NPCM8XX_BOARD_SETUP_ADDR, + .psci_conduit = QEMU_PSCI_CONDUIT_SMC, };Why do we need this for npcm8xx when we don't need it for npcm7xx? Or is it also broken on 7xx?
I don't see a reference to psci in npcm7xx devicetree files in the upstream Linux kernel.
$ git grep psci arch/arm64/boot/dts/nuvoton/ arch/arm/boot/dts/nuvoton/ arch/arm64/boot/dts/nuvoton/ma35d1.dtsi: enable-method = "psci"; arch/arm64/boot/dts/nuvoton/ma35d1.dtsi: enable-method = "psci"; arch/arm64/boot/dts/nuvoton/ma35d1.dtsi: psci { arch/arm64/boot/dts/nuvoton/ma35d1.dtsi: compatible = "arm,psci-0.2"; arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: enable-method = "psci"; arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: enable-method = "psci"; arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: enable-method = "psci"; arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: enable-method = "psci"; arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: psci { arch/arm64/boot/dts/nuvoton/nuvoton-npcm845.dtsi: compatible = "arm,psci-1.0";I guess the aarch32 versions of the board don't use psci and the aarch64 one does.
Quoted 7 lines
Would any of the Nuvoton folks like to comment on this patch? It looks like a correct fix to me.
thanks
-- PMM
Yes, the aarch64 uses psci.
Thank you.
Regards,
Tyrone
________________________________
________________________________
The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.
Quoted 47 lines · On Tue, 13 May 2025 at 02:04, [email protected] <[email protected]> wrote:
Hi PMM:
From: Peter Maydell <[email protected]>
Sent: Sunday, May 11, 2025 9:42 PM
To: Guenter Roeck <[email protected]>
Cc: CS20 KFTing <[email protected]>; [email protected]; [email protected]; Hao Wu <[email protected]>
Subject: Re: [PATCH] hw/arm: Add missingpsci_conduitto NPCM8XX SoC boot infoQuoted 35 lines · Guenter Roeck
Quoted 16 lines · Peter Maydell
Quoted 15 lines · Guenter Roeck
Without
psci_conduit, the Linux kernel crashes almost immediately.psci: probing for conduit method from DT.
Internal error: Oops - Undefined instruction: 0000000002000000
[#1] PREEMPT SMPFixes ae0c4d1a1290 ("hw/arm: Add NPCM8XX SoC")Cc Hao Wu <[email protected]>Cc Peter Maydell <[email protected]>Signed-off-by Guenter Roeck <[email protected]>--- hw/arm/npcm8xx.c | 1 + 1 file changed, 1 insertion(+)Quoted 14 lines
hw/arm/npcm8xx.c static struct arm_boot_info npcm8xx_binfo = { · line 350
Quoted 10 lines
hw/arm/npcm8xx.c index renamed from hw/arm/npcm8xx.c +0
-0
f182accc47..e5a1929ed7100644hw/arm/npcm8xx.c +1
-0@@ -346,6 +346,7 @@ static struct arm_boot_info npcm8xx_binfo = { .secure_boot = false, .board_id = -1, .board_setup_addr = NPCM8XX_BOARD_SETUP_ADDR, + .psci_conduit = QEMU_PSCI_CONDUIT_SMC, };Why do we need this for npcm8xx when we don't need it for npcm7xx? Or is it also broken on 7xx?
I don't see a reference to psci in npcm7xx devicetree files in the upstream Linux kernel.
Quoted 7 lines
Quoted 4 lines
I guess the aarch32 versions of the board don't use psci and the aarch64 one does.
Would any of the Nuvoton folks like to comment on this patch? It looks like a correct fix to me.
Yes, the aarch64 uses psci.
Thanks for confirming; I've applied this to target-arm.next.
-- PMM