Skip to contentSkip to conversation

arm:socfpga:soc64: To notify SDM when U-Boot pass control to Linux

PATCH New [email protected] 1 participant 3 messages May 10, 2022 – Jun 1, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm:socfpga:soc64: To notify SDM when U-Boot pass control to Linux

From: Dinesh Maniyam <[email protected]>

Prior U-Boot pass control to Linux, U-Boot will send a mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW transition.

---
 arch/arm/mach-socfpga/misc_soc64.c | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/mach-socfpga/misc_soc64.c +5 -0
index 2acdfad07b..3148eb46a5 100644
@@ -89,3 +89,8 @@ void do_bridge_reset(int enable, unsigned int mask)
 
 	socfpga_bridges_reset(enable);
 }
+
+void arch_preboot_os(void)
+{
+	mbox_hps_stage_notify(HPS_EXECUTION_STATE_OS);
+}
\ No newline at end of file

--
2.26.2

#1 lore raw

PATCH v2 1/1 arm: socfpga: soc64: To notify SDM when U-Boot pass control to Linux

From: Dinesh Maniyam <[email protected]>

Prior U-Boot pass control to Linux, U-Boot will send a mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW transition.

---

v1->v2
Add space in title

---
 arch/arm/mach-socfpga/misc_soc64.c | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/mach-socfpga/misc_soc64.c +5 -0
index 2acdfad07b..3148eb46a5 100644
@@ -89,3 +89,8 @@ void do_bridge_reset(int enable, unsigned int mask)
 
 	socfpga_bridges_reset(enable);
 }
+
+void arch_preboot_os(void)
+{
+	mbox_hps_stage_notify(HPS_EXECUTION_STATE_OS);
+}
\ No newline at end of file

--
2.26.2

#2 lore raw

RE: [PATCH v2] arm: socfpga: soc64: To notify SDM when U-Boot pass control to Linux

Quoted 45 lines

-----Original Message-----
From: Maniyam, Dinesh <[email protected]>
Sent: Friday, 13 May 2022 3:30 pm
To: [email protected]
Cc: Vasut, Marek <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>; Hea, Kok Kiang <[email protected]>; Gan, Yau Wai <[email protected]>; Kho, Sin Hui <[email protected]>; Lokanathan, Raaj <[email protected]>; Maniyam, Dinesh <[email protected]>
Subject: [PATCH v2] arm: socfpga: soc64: To notify SDM when U-Boot pass control to Linux

From: Dinesh Maniyam <[email protected]>

Prior U-Boot pass control to Linux, U-Boot will send a mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW transition.

---

v1->v2
Add space in title

---
 arch/arm/mach-socfpga/misc_soc64.c | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/mach- renamed from arch/arm/mach-socfpga/misc_soc64.c +0 -0

socfpga/misc_soc64.c
index 2acdfad07b..3148eb46a5 100644

arch/arm/mach-socfpga/misc_soc64.c +5 -1
@@ -89,3 +89,8 @@ void do_bridge_reset(int enable, unsigned int mask)
 
 	socfpga_bridges_reset(enable);
 }
+
+void arch_preboot_os(void)
+{
+	mbox_hps_stage_notify(HPS_EXECUTION_STATE_OS);
+}
\ No newline at end of file
--
Quoted 1 line

2.26.2

I will need to rework this patch.
I will re-submit the next version of the patch.

Regards
Dinesh