Re: [PATCH v7 3/5] irqchip/riscv-imsic: Add MSI address list

From: Jason Gunthorpe

Date: Thu Dec 03 2026 - 12:52:00 EST


On Thu, Dec 03, 2026 at 06:07:49PM +0100, Andrew Jones wrote:
> On Wed, Dec 02, 2026 at 01:59:56PM -0400, Jason Gunthorpe wrote:
> > > Upcoming RISC-V IOMMU interrupt remapping needs to map every possible
> > > host IMSIC target into one contiguous MSI IOVA range. MSI message
> > > composition then uses the target CPU's position within that range.
> > >
> > > Build an IMSIC physical address array indexed by logical CPU.
> > > Require every possible CPU to have an initialized IMSIC page before
> > > publishing the array. This preserves physical address zero as a valid
> > > target and guarantees the array has num_possible_cpus() entries.
> > >
> > > The array size and each target's index can therefore be derived
> > > directly, without storing duplicate count or per-CPU index metadata.
> > >
> > > Signed-off-by: Andrew Jones <andrew.jones@xxxxxxxxxxxxxxxx>
> > > Signed-off-by: Andrew Jones <andrew.jones@xxxxxxxxx>
> > > Tested-by: Fangyu Yu <fangyu.yu@xxxxxxxxxxxxxxxxx>
> > > Acked-by: Thomas Gleixner <tglx@xxxxxxxxxx>
> > > Reviewed-by: Nutty Liu <nutty.liu@xxxxxxxxxxx>
> > > Reviewed-by: Anup Patel <anup@xxxxxxxxxxxxxx>
> > > Acked-by: Anup Patel <anup@xxxxxxxxxxxxxx>
> > > ---
> > > drivers/irqchip/irq-riscv-imsic-state.c | 32 +++++++++++++++++++++++++
> > > drivers/irqchip/irq-riscv-imsic-state.h | 3 +++
> > > 2 files changed, 35 insertions(+)
> >
> > Not sure what to make of the Sashiko comments, but the overall notion
> > seems OK
>
> I couldn't find any Sashiko comments for this version
> (https://sashiko.dev/#/patchset/20261022154603.1374754-1-andrew.jones%40linux.dev)

Hmm, I don't know, b4 review showed them..

I can't seem to make it go back to investigate what it was showing,
but I also can't find anything online.

Jason