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

2021-02-22 Thread Alexey Kardashevskiy
On 18/02/2021 23:59, Frederic Barrat wrote: On 16/02/2021 04:20, 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

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

2021-02-22 Thread Alexey Kardashevskiy
On 20/02/2021 14:49, Alexey Kardashevskiy wrote: On 18/02/2021 23:59, Frederic Barrat wrote: On 16/02/2021 04:20, 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

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

2021-02-19 Thread Alexey Kardashevskiy
On 18/02/2021 23:59, Frederic Barrat wrote: On 16/02/2021 04:20, 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

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

2021-02-18 Thread Frederic Barrat
On 16/02/2021 04:20, 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 negative warning

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

2021-02-15 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