public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-platforms] Platform/Loongson: Fixed multi-core boot issue
@ 2023-03-31  2:30 xianglai
  2023-04-11  1:35 ` [edk2-devel] " Chao Li
  0 siblings, 1 reply; 3+ messages in thread
From: xianglai @ 2023-03-31  2:30 UTC (permalink / raw)
  To: devel
  Cc: Ard Biesheuvel, Bibo Mao, Chao Li, Leif Lindholm, Liming Gao,
	Michael D Kinney

Fixed the bug of slave cpu querying MAILBUF register address.

Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Bibo Mao <maobibo@loongson.cn>
Cc: Chao Li <lichao@loongson.cn>
Cc: Leif Lindholm <quic_llindhol@quicinc.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: xianglai li <lixianglai@loongson.cn>
---
 Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S b/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S
index 5d7ce313c0..8fb1b416f6 100644
--- a/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S
+++ b/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S
@@ -56,6 +56,8 @@ slave_main:
     li.d      T1, LOONGSON_IOCSR_IPI_EN
     iocsrwr.w T0, T1
 
+    li.d      T1, LOONGSON_CSR_MAIL_BUF0
+
 1:
     # wait for wakeup
     idle 0
-- 
2.31.1


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

* Re: [edk2-devel] [edk2-platforms] Platform/Loongson: Fixed multi-core boot issue
       [not found] <1751601E1CB8EFE8.12651@groups.io>
@ 2023-04-10  8:54 ` xianglai
  0 siblings, 0 replies; 3+ messages in thread
From: xianglai @ 2023-04-10  8:54 UTC (permalink / raw)
  To: devel
  Cc: Ard Biesheuvel, Bibo Mao, Chao Li, Leif Lindholm, Liming Gao,
	Michael D Kinney

Ping for reviewing, Any comments is welcome.

On 3/31/23 10:30 AM, xianglai wrote:
> Fixed the bug of slave cpu querying MAILBUF register address.
>
> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
> Cc: Bibo Mao <maobibo@loongson.cn>
> Cc: Chao Li <lichao@loongson.cn>
> Cc: Leif Lindholm <quic_llindhol@quicinc.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Signed-off-by: xianglai li <lixianglai@loongson.cn>
> ---
>   Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S b/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S
> index 5d7ce313c0..8fb1b416f6 100644
> --- a/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S
> +++ b/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S
> @@ -56,6 +56,8 @@ slave_main:
>       li.d      T1, LOONGSON_IOCSR_IPI_EN
>       iocsrwr.w T0, T1
>   
> +    li.d      T1, LOONGSON_CSR_MAIL_BUF0
> +
>   1:
>       # wait for wakeup
>       idle 0


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

* Re: [edk2-devel] [edk2-platforms] Platform/Loongson: Fixed multi-core boot issue
  2023-03-31  2:30 [edk2-platforms] Platform/Loongson: Fixed multi-core boot issue xianglai
@ 2023-04-11  1:35 ` Chao Li
  0 siblings, 0 replies; 3+ messages in thread
From: Chao Li @ 2023-04-11  1:35 UTC (permalink / raw)
  To: devel, lixianglai
  Cc: Ard Biesheuvel, Bibo Mao, Leif Lindholm, Liming Gao,
	Michael D Kinney

[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

Reviewed-by: Chao Li <lichao@loongson.cn>


Thanks,
Chao
在 2023/3/31 10:30, xianglai 写道:
> Fixed the bug of slave cpu querying MAILBUF register address.
>
> Cc: Ard Biesheuvel<ardb+tianocore@kernel.org>
> Cc: Bibo Mao<maobibo@loongson.cn>
> Cc: Chao Li<lichao@loongson.cn>
> Cc: Leif Lindholm<quic_llindhol@quicinc.com>
> Cc: Liming Gao<gaoliming@byosoft.com.cn>
> Cc: Michael D Kinney<michael.d.kinney@intel.com>
> Signed-off-by: xianglai li<lixianglai@loongson.cn>
> ---
>   Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S b/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S
> index 5d7ce313c0..8fb1b416f6 100644
> --- a/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S
> +++ b/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S
> @@ -56,6 +56,8 @@ slave_main:
>       li.d      T1, LOONGSON_IOCSR_IPI_EN
>       iocsrwr.w T0, T1
>   
> +    li.d      T1, LOONGSON_CSR_MAIL_BUF0
> +
>   1:
>       # wait for wakeup
>       idle 0

[-- Attachment #2: Type: text/html, Size: 2369 bytes --]

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

end of thread, other threads:[~2023-04-11  1:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-31  2:30 [edk2-platforms] Platform/Loongson: Fixed multi-core boot issue xianglai
2023-04-11  1:35 ` [edk2-devel] " Chao Li
     [not found] <1751601E1CB8EFE8.12651@groups.io>
2023-04-10  8:54 ` xianglai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox