Re: [PATCH kernel v2] powerpc/iommu: Annotate nested lock for lockdep

2021-04-29 Thread Michael Ellerman
On Mon, 1 Mar 2021 17:36:53 +1100, Alexey Kardashevskiy wrote: > The IOMMU table is divided into pools for concurrent mappings and each > pool has a separate spinlock. When taking the ownership of an IOMMU group > to pass through a device to a VM, we lock these spinlocks which triggers > a false ne

[PATCH kernel v2] powerpc/iommu: Annotate nested lock for lockdep

2021-02-28 Thread Alexey Kardashevskiy
The IOMMU table is divided into pools for concurrent mappings and each pool has a separate spinlock. When taking the ownership of an IOMMU group to pass through a device to a VM, we lock these spinlocks which triggers a false negative warning in lockdep (below). This fixes it by annotating the lar