[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z+HgevJ+YChH83gn@nvidia.com>
Date: Mon, 24 Mar 2025 15:45:14 -0700
From: Nicolin Chen <nicolinc@...dia.com>
To: Jason Gunthorpe <jgg@...dia.com>
CC: Nathan Chancellor <nathan@...nel.org>, <kevin.tian@...el.com>,
<robin.murphy@....com>, <joro@...tes.org>, <will@...nel.org>,
<iommu@...ts.linux.dev>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v4 3/3] iommu: Drop sw_msi from iommu_domain
On Mon, Mar 24, 2025 at 07:29:00PM -0300, Jason Gunthorpe wrote:
> On Mon, Mar 24, 2025 at 02:38:33PM -0700, Nicolin Chen wrote:
>
> > My feeling is that we should just let all other cases return 0
> > like the previous function did, as this seems to be commonly on
> > the IRQ allocation path that shouldn't fail like this. E.g. if
> > we fail a blocked domain, would it retry switching domains?
>
> I don't know, I think if the interrupt driver is calling this function
> it knows the MSI is translated by the iommu and if the iommu is set to
> something like blocked then it really should fail rather than silently
> not work. Same for a paging domain without any kind of sw_msi route.
OK. That sounds correct to me.
I will give the default blocked domain case a try. If later the
irqchip driver can still allocate IRQ after it switches to some
normal working domain, then we will be safe to do so.
> So, I'm feeling like we should check for identity and still fail the
> other cases?
>
> Can you send another version of the series with this and Arnd's two
> fixes integrated?
Yes, I will do that. And I assume they will be still rebased on:
da0c56520e88 iommu/arm-smmu-v3: Set MEV bit in nested STE for DoS mitigations
Will take some time run some tests with different combinations
this time. Sorry for the trouble. Should have been more careful.
Nicolin
Powered by blists - more mailing lists