Re: [PATCH v4] powerpc/powernv: Enable PCI peer-to-peer

2017-08-07 Thread Michael Ellerman
Frederic Barrat writes: > diff --git a/arch/powerpc/include/asm/opal-api.h > b/arch/powerpc/include/asm/opal-api.h > index 7df005965634..2f52182a4c63 100644 > --- a/arch/powerpc/include/asm/opal-api.h > +++ b/arch/powerpc/include/asm/opal-api.h > @@ -193,7 +193,13 @@

Re: [PATCH v4] powerpc/powernv: Enable PCI peer-to-peer

2017-08-07 Thread Russell Currey
On Fri, 2017-08-04 at 11:55 +0200, Frederic Barrat wrote: > P9 has support for PCI peer-to-peer, enabling a device to write in the > mmio space of another device directly, without interrupting the CPU. > > This patch adds support for it on powernv, by adding a new API to be > called by drivers.

[PATCH v4] powerpc/powernv: Enable PCI peer-to-peer

2017-08-04 Thread Frederic Barrat
P9 has support for PCI peer-to-peer, enabling a device to write in the mmio space of another device directly, without interrupting the CPU. This patch adds support for it on powernv, by adding a new API to be called by drivers. The pnv_pci_set_p2p(...) call configures an 'initiator', i.e the