[PATCH V2] riscv: dts: spacemit: k3: fix IMSIC num-guest-ids

Junhui Liu junhui.liu at pigmoral.tech
Mon Aug 17 07:29:42 PDT 2026


Hi Guo,

On Mon Aug 17, 2026 at 11:30 AM CST, Guo Ren wrote:
> From: "GUO Ren (XuanTie)" <guoren at kernel.org>
>
> The initial K3 device tree used generic/placeholder values for the
> IMSIC guest configuration:
>
>   riscv,num-guest-ids    = <511>;
>
> According to the SpacemiT K3 User Manual this values is incorrect
> for the X100 cores:
>
>  - Advanced Interrupt Architecture (AIA):
>     - M-mode MSI: 512
>     - S-mode MSI: 512
>     - VS-mode MSI: 64
>
> Therefore, S-mode IMSIC (simsic) needs num-guest-ids = 63.
>
> Fixes: 56f37e391a62 ("riscv: dts: spacemit: add initial support for K3 SoC")
> Cc: stable at vger.kernel.org
> Cc: Guodong Xu <docular.xu at gmail.com>
> Cc: Yixun Lan <dlan at kernel.org>
> Signed-off-by: GUO Ren (XuanTie) <guoren at kernel.org>

Reviewed-by: Junhui Liu <junhui.liu at pigmoral.tech>

-- 
Best regards,
Junhui Liu



More information about the linux-riscv mailing list