Re: [PATCH] riscv: andes: Rearrange Andes PLICSW to single-bit-per-hart strategy

2023-10-16 Thread Leo Liang
On Thu, Oct 12, 2023 at 01:35:34PM +0800, Randolph wrote: > Source hart information is not necessary in IPI, so we could > use single-bit-per-hart strategy to rearrange PLICSW mapping. > > Bit 0 of Interrupt Pending Bits is hardwired to 0. > Therefore, we use bit 1 to send IPI to hart 0, > bit 2 t

[PATCH] riscv: andes: Rearrange Andes PLICSW to single-bit-per-hart strategy

2023-10-11 Thread Randolph
Source hart information is not necessary in IPI, so we could use single-bit-per-hart strategy to rearrange PLICSW mapping. Bit 0 of Interrupt Pending Bits is hardwired to 0. Therefore, we use bit 1 to send IPI to hart 0, bit 2 to hart 1, ..., and so on. Signed-off-by: Randolph --- arch/riscv/li