From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from loongson.cn (loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web10.40553.1681116900950118073 for ; Mon, 10 Apr 2023 01:55:01 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: loongson.cn, ip: 114.242.206.163, mailfrom: lixianglai@loongson.cn) Received: from loongson.cn (unknown [10.20.42.32]) by gateway (Coremail) with SMTP id _____8AxJNjfzjNkVgQZAA--.27032S3; Mon, 10 Apr 2023 16:54:55 +0800 (CST) Received: from [10.20.42.32] (unknown [10.20.42.32]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxPL7ezjNkyv4bAA--.30584S3; Mon, 10 Apr 2023 16:54:54 +0800 (CST) Subject: Re: [edk2-devel] [edk2-platforms] Platform/Loongson: Fixed multi-core boot issue From: "xianglai" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Bibo Mao , Chao Li , Leif Lindholm , Liming Gao , Michael D Kinney Reply-To: devel@edk2.groups.io, lixianglai@loongson.cn References: <1751601E1CB8EFE8.12651@groups.io> Message-ID: Date: Mon, 10 Apr 2023 16:54:54 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1751601E1CB8EFE8.12651@groups.io> X-CM-TRANSID: AQAAf8CxPL7ezjNkyv4bAA--.30584S3 X-CM-SenderInfo: 5ol0xt5qjotxo6or00hjvr0hdfq/ X-Coremail-Antispam: 1Uk129KBjvdXoWrZF1kAF15WryrCFyxZF1fWFg_yoWkXrg_Ar ySyF4kJr1UWrnrKa4vvr95W3W3Xry8Zw4xC3s7JFyfJayYv39aqrnxCrZrJFnrXrZrZFsr Jan5KrWSkw13WjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY c7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3w AFIxvE14AKwVWUGVWUXwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK 6xIIjxv20xvE14v26r1j6r1xM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r1j6r4UM28EF7 xvwVC2z280aVAFwI0_Cr1j6rxdM28EF7xvwVC2z280aVCY1x0267AKxVWxJr0_GcWle2I2 62IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4 CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v26r1j6r4UMcvj eVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCYjI0SjxkI62AI1cAE67vIY487MxAIw2 8IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4l x2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrw CI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI 42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z2 80aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUzZ2-UUUUU Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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 > Cc: Bibo Mao > Cc: Chao Li > Cc: Leif Lindholm > Cc: Liming Gao > Cc: Michael D Kinney > Signed-off-by: xianglai li > --- > 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