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

2017-06-02 Thread David Laight
From: Benjamin Herrenschmidt > Sent: 31 May 2017 03:26 ... > We might also need a way to provide the "initiator" with translated DMA > addresses that allow to target the receiver. Related to that is the ability to allocate memory that two (or more) PCIe devices can DMA to/from. That can be useful

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

2017-05-31 Thread kbuild test robot
Hi Frederic, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.12-rc3 next-20170531] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

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

2017-05-30 Thread Benjamin Herrenschmidt
On Tue, 2017-05-30 at 15:58 +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 defining two APIs to > declare a pci_dev as

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

2017-05-30 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 defining two APIs to declare a pci_dev as either a p2p sender or receiver: int pnv_pci_set_p2p_sender(struct