[PATCH rc v2] iommu/arm-smmu-v3: Do not use GFP_KERNEL under as spinlock
Will Deacon
will at kernel.org
Wed Feb 21 05:08:37 PST 2024
On Sat, Feb 17, 2024 at 09:24:46AM -0400, Jason Gunthorpe wrote:
> On Sat, Feb 17, 2024 at 08:25:36PM +0800, Michael Shavit wrote:
>
> > Calling arm_smmu_write_ctx_desc requires the CD which we get from the
> > mmu_notifiers list...which makes it a bit more complicated than
> > that.
>
> @@ -404,9 +384,15 @@ static int __arm_smmu_sva_bind(struct device *dev, struct mm_struct *mm)
> goto err_free_bond;
> }
>
> + ret = arm_smmu_write_ctx_desc(master, pasid, bond->smmu_mn->cd);
> + if (ret)
> + goto err_put_notifier;
> +
Please can you spin a v3 with this folded in?
Will
More information about the linux-arm-kernel
mailing list