hw/intc/loongarch_ipi: Bring back all 4 IPI mailboxes
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Sun, 21 May 2023 10:23:04 +0000 (11:23 +0100)
committerSong Gao <gaosong@loongson.cn>
Mon, 5 Jun 2023 03:08:55 +0000 (11:08 +0800)
commit8555ddc671203969b0e6eb651e538d02a9a79b3a
tree6f76e13a63ebba8c2164493e2fcddd171b85a362
parent848a6caa88b9f082c89c9b41afa975761262981d
hw/intc/loongarch_ipi: Bring back all 4 IPI mailboxes

As per "Loongson 3A5000/3B5000 Processor Reference Manual",
Loongson 3A5000's IPI implementation have 4 mailboxes per
core.

However, in 78464f023b54 ("hw/loongarch/virt: Modify ipi as
percpu device"), the number of IPI mailboxes was reduced to
one, which mismatches actual hardware.

It won't affect LoongArch based system as LoongArch boot code
only uses the first mailbox, however MIPS based Loongson boot
code uses all 4 mailboxes.

Fixes Coverity CID: 15124521512453
Fixes: 78464f023b54 ("hw/loongarch/virt: Modify ipi as percpu device")
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230521102307.87081-2-jiaxun.yang@flygoat.com>
Signed-off-by: Song Gao <gaosong@loongson.cn>
hw/intc/loongarch_ipi.c
include/hw/intc/loongarch_ipi.h