u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH] arch: arm: mach-socfpga: To notify SDM when SPL pass control to U-Boot
@ 2022-08-31  6:29 Jit Loon Lim
  0 siblings, 0 replies; 4+ messages in thread
From: Jit Loon Lim @ 2022-08-31  6:29 UTC (permalink / raw)
  To: u-boot
  Cc: Jagan Teki, Vignesh R, Marek, Simon, Tien Fong, Kok Kiang,
	Siew Chin, Sin Hui, Raaj, Dinesh, Boon Khai, Alif, Teik Heng,
	Hazim, Sieu Mun Tang, Jit Loon Lim, Chin Liang See

From: Chin Liang See <chin.liang.see@intel.com>

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

The purpose is for debug as user can query SDM on HPS error details
when HPS enters a warm reset due to error such as watchdog.

Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
---
 arch/arm/mach-socfpga/spl_s10.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c
index c20e87cdbe..9bfd1a0f6a 100644
--- a/arch/arm/mach-socfpga/spl_s10.c
+++ b/arch/arm/mach-socfpga/spl_s10.c
@@ -92,3 +92,9 @@ void board_init_f(ulong dummy)
 	mbox_qspi_open();
 #endif
 }
+
+/* board specific function prior loading SSBL / U-Boot */
+void spl_board_prepare_for_boot(void)
+{
+	mbox_hps_stage_notify(HPS_EXECUTION_STATE_SSBL);
+}
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* RE: [PATCH] arch: arm: mach-socfpga: To notify SDM when SPL pass control to U-Boot
  2022-08-30 15:52 Jit Loon Lim
@ 2022-09-09  4:32 ` Chee, Tien Fong
  0 siblings, 0 replies; 4+ messages in thread
From: Chee, Tien Fong @ 2022-09-09  4:32 UTC (permalink / raw)
  To: Lim, Jit Loon, u-boot
  Cc: Jagan Teki, Vignesh R, Vasut, Marek, Simon, Hea, Kok Kiang, Lim,
	Elly Siew Chin, Kho, Sin Hui, Lokanathan, Raaj, Maniyam, Dinesh,
	Ng, Boon Khai, Yuslaimi, Alif Zakuan, Chong, Teik Heng, Zamri,
	Muhammad Hazim Izzat, Tang, Sieu Mun, Chin Liang See

> -----Original Message-----
> From: Lim, Jit Loon <jit.loon.lim@intel.com>
> Sent: Tuesday, 30 August, 2022 11:52 PM
> To: u-boot@lists.denx.de
> Cc: Jagan Teki <jagan@amarulasolutions.com>; Vignesh R <vigneshr@ti.com>;
> Vasut, Marek <marex@denx.de>; Simon <simon.k.r.goldschmidt@gmail.com>;
> Chee, Tien Fong <tien.fong.chee@intel.com>; Hea, Kok Kiang
> <kok.kiang.hea@intel.com>; Lim, Elly Siew Chin <elly.siew.chin.lim@intel.com>;
> Kho, Sin Hui <sin.hui.kho@intel.com>; Lokanathan, Raaj
> <raaj.lokanathan@intel.com>; Maniyam, Dinesh <dinesh.maniyam@intel.com>;
> Ng, Boon Khai <boon.khai.ng@intel.com>; Yuslaimi, Alif Zakuan
> <alif.zakuan.yuslaimi@intel.com>; Chong, Teik Heng
> <teik.heng.chong@intel.com>; Zamri, Muhammad Hazim Izzat
> <muhammad.hazim.izzat.zamri@intel.com>; Tang, Sieu Mun
> <sieu.mun.tang@intel.com>; Lim, Jit Loon <jit.loon.lim@intel.com>; Chin Liang
> See <chin.liang.see@intel.com>
> Subject: [PATCH] arch: arm: mach-socfpga: To notify SDM when SPL pass
> control to U-Boot
> 
> From: Chin Liang See <chin.liang.see@intel.com>
> 
> Prior SPL pass control to U-Boot, SPL will send a mailbox command
> "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW
> transition.
> 
> The purpose is for debug as user can query SDM on HPS error details when HPS
> enters a warm reset due to error such as watchdog.
> 
> Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
> ---
>  arch/arm/mach-socfpga/spl_s10.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-
> socfpga/spl_s10.c index c20e87cdbe..9bfd1a0f6a 100644
> --- a/arch/arm/mach-socfpga/spl_s10.c
> +++ b/arch/arm/mach-socfpga/spl_s10.c
> @@ -92,3 +92,9 @@ void board_init_f(ulong dummy)
>  	mbox_qspi_open();
>  #endif
>  }
> +
> +/* board specific function prior loading SSBL / U-Boot */ void
> +spl_board_prepare_for_boot(void) {
> +	mbox_hps_stage_notify(HPS_EXECUTION_STATE_SSBL);
> +}

You should put this notify into spl_perform_fixups(), so this can used by both boot flows:
SPL -> U-Boot and SPL -> ATF -> U-Boot.

Regards
Tien Fong

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] arch: arm: mach-socfpga: To notify SDM when SPL pass control to U-Boot
@ 2022-08-30 15:52 Jit Loon Lim
  2022-09-09  4:32 ` Chee, Tien Fong
  0 siblings, 1 reply; 4+ messages in thread
From: Jit Loon Lim @ 2022-08-30 15:52 UTC (permalink / raw)
  To: u-boot
  Cc: Jagan Teki, Vignesh R, Marek, Simon, Tien Fong, Kok Kiang,
	Siew Chin, Sin Hui, Raaj, Dinesh, Boon Khai, Alif, Teik Heng,
	Hazim, Sieu Mun Tang, Jit Loon Lim, Chin Liang See

From: Chin Liang See <chin.liang.see@intel.com>

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

The purpose is for debug as user can query SDM on HPS error details
when HPS enters a warm reset due to error such as watchdog.

Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
---
 arch/arm/mach-socfpga/spl_s10.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c
index c20e87cdbe..9bfd1a0f6a 100644
--- a/arch/arm/mach-socfpga/spl_s10.c
+++ b/arch/arm/mach-socfpga/spl_s10.c
@@ -92,3 +92,9 @@ void board_init_f(ulong dummy)
 	mbox_qspi_open();
 #endif
 }
+
+/* board specific function prior loading SSBL / U-Boot */
+void spl_board_prepare_for_boot(void)
+{
+	mbox_hps_stage_notify(HPS_EXECUTION_STATE_SSBL);
+}
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] arch: arm: mach-socfpga: To notify SDM when SPL pass control to U-Boot
@ 2022-08-30 15:42 Jit Loon Lim
  0 siblings, 0 replies; 4+ messages in thread
From: Jit Loon Lim @ 2022-08-30 15:42 UTC (permalink / raw)
  To: u-boot
  Cc: Jagan Teki, Vignesh R, Marek, Simon, Tien Fong, Kok Kiang,
	Siew Chin, Sin Hui, Raaj, Dinesh, Boon Khai, Alif, Teik Heng,
	Hazim, Sieu Mun Tang, Jit Loon Lim, Chin Liang See

From: Chin Liang See <chin.liang.see@intel.com>

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

The purpose is for debug as user can query SDM on HPS error details
when HPS enters a warm reset due to error such as watchdog.

Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
---
 arch/arm/mach-socfpga/spl_s10.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c
index c20e87cdbe..9bfd1a0f6a 100644
--- a/arch/arm/mach-socfpga/spl_s10.c
+++ b/arch/arm/mach-socfpga/spl_s10.c
@@ -92,3 +92,9 @@ void board_init_f(ulong dummy)
 	mbox_qspi_open();
 #endif
 }
+
+/* board specific function prior loading SSBL / U-Boot */
+void spl_board_prepare_for_boot(void)
+{
+	mbox_hps_stage_notify(HPS_EXECUTION_STATE_SSBL);
+}
-- 
2.19.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-09  4:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-31  6:29 [PATCH] arch: arm: mach-socfpga: To notify SDM when SPL pass control to U-Boot Jit Loon Lim
  -- strict thread matches above, loose matches on Subject: below --
2022-08-30 15:52 Jit Loon Lim
2022-09-09  4:32 ` Chee, Tien Fong
2022-08-30 15:42 Jit Loon Lim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).