Re: [PATCH kernel v5 14/20] powerpc/powernv/npu: Add compound IOMMU groups

2018-12-19 Thread Michael Ellerman
Alexey Kardashevskiy writes: > On 19/12/2018 21:00, Michael Ellerman wrote: >> Alexey Kardashevskiy writes: >>> On 19/12/2018 11:17, Michael Ellerman wrote: Alexey Kardashevskiy writes: > diff --git a/arch/powerpc/platforms/powernv/npu-dma.c > b/arch/powerpc/platforms/powernv/npu-d

Re: [PATCH kernel v5 14/20] powerpc/powernv/npu: Add compound IOMMU groups

2018-12-19 Thread Alexey Kardashevskiy
On 19/12/2018 21:00, Michael Ellerman wrote: > Alexey Kardashevskiy writes: >> On 19/12/2018 11:17, Michael Ellerman wrote: >>> Alexey Kardashevskiy writes: diff --git a/arch/powerpc/platforms/powernv/npu-dma.c b/arch/powerpc/platforms/powernv/npu-dma.c index dc629ee..3468eaa 1

Re: [PATCH kernel v5 14/20] powerpc/powernv/npu: Add compound IOMMU groups

2018-12-19 Thread Michael Ellerman
Alexey Kardashevskiy writes: > On 19/12/2018 11:17, Michael Ellerman wrote: >> Alexey Kardashevskiy writes: >>> diff --git a/arch/powerpc/platforms/powernv/npu-dma.c >>> b/arch/powerpc/platforms/powernv/npu-dma.c >>> index dc629ee..3468eaa 100644 >>> --- a/arch/powerpc/platforms/powernv/npu-dma.

Re: [PATCH kernel v5 14/20] powerpc/powernv/npu: Add compound IOMMU groups

2018-12-18 Thread Alexey Kardashevskiy
On 19/12/2018 11:17, Michael Ellerman wrote: > Alexey Kardashevskiy writes: >> diff --git a/arch/powerpc/platforms/powernv/npu-dma.c >> b/arch/powerpc/platforms/powernv/npu-dma.c >> index dc629ee..3468eaa 100644 >> --- a/arch/powerpc/platforms/powernv/npu-dma.c >> +++ b/arch/powerpc/platforms/

Re: [PATCH kernel v5 14/20] powerpc/powernv/npu: Add compound IOMMU groups

2018-12-18 Thread Michael Ellerman
Alexey Kardashevskiy writes: > diff --git a/arch/powerpc/platforms/powernv/npu-dma.c > b/arch/powerpc/platforms/powernv/npu-dma.c > index dc629ee..3468eaa 100644 > --- a/arch/powerpc/platforms/powernv/npu-dma.c > +++ b/arch/powerpc/platforms/powernv/npu-dma.c > @@ -372,8 +358,263 @@ struct npu {

[PATCH kernel v5 14/20] powerpc/powernv/npu: Add compound IOMMU groups

2018-12-12 Thread Alexey Kardashevskiy
At the moment the powernv platform registers an IOMMU group for each PE. There is an exception though: an NVLink bridge which is attached to the corresponding GPU's IOMMU group making it a master. Now we have POWER9 systems with GPUs connected to each other directly bypassing PCI. At the moment we