From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Chen Date: Wed, 9 Sep 2020 15:50:40 +0800 Subject: [PATCH 1/7] Revert "riscv: Clear pending interrupts before enabling IPIs" In-Reply-To: <20200907181659.92449-2-seanga2@gmail.com> References: <20200907181659.92449-1-seanga2@gmail.com> <20200907181659.92449-2-seanga2@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Sean > Clearing MIP doesn't do anything. Whoops. The following commits should > tackle this problem in a more robust manner. I still not catch your points about that this commit 947263033 really help to fix pending IPIs not clean problem on k210 platform at that time, but you just said it do nothing and remove it here currently. Thanks, Rick > > This reverts commit 9472630337e7c4ac442066b5a752aaa8c3b4d4a6. > > Signed-off-by: Sean Anderson > --- > > arch/riscv/cpu/start.S | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/riscv/cpu/start.S b/arch/riscv/cpu/start.S > index bf9fdf369b..e3222b1ea7 100644 > --- a/arch/riscv/cpu/start.S > +++ b/arch/riscv/cpu/start.S > @@ -65,8 +65,6 @@ _start: > #else > li t0, SIE_SSIE > #endif > - /* Clear any pending IPIs */ > - csrc MODE_PREFIX(ip), t0 > csrs MODE_PREFIX(ie), t0 > #endif > > -- > 2.28.0 >