Re: [PATCH 07/14] PCI/P2PDMA: Add the provider's pci_dev to the dev_pgmap struct

2019-07-25 Thread Christoph Hellwig
On Wed, Jul 24, 2019 at 09:50:03AM -0600, Logan Gunthorpe wrote: > OK, I was going to do that, but you just removed the p2p specific page > map. ;) Only because it was empty at that time..

Re: [PATCH 07/14] PCI/P2PDMA: Add the provider's pci_dev to the dev_pgmap struct

2019-07-24 Thread Logan Gunthorpe
On 2019-07-24 12:32 a.m., Christoph Hellwig wrote: > On Mon, Jul 22, 2019 at 05:08:52PM -0600, Logan Gunthorpe wrote: >> diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c >> index 143e11d2a5c3..70c262b7c731 100644 >> --- a/drivers/pci/p2pdma.c >> +++ b/drivers/pci/p2pdma.c >> @@ -168,6

Re: [PATCH 07/14] PCI/P2PDMA: Add the provider's pci_dev to the dev_pgmap struct

2019-07-24 Thread Christoph Hellwig
On Mon, Jul 22, 2019 at 05:08:52PM -0600, Logan Gunthorpe wrote: > diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c > index 143e11d2a5c3..70c262b7c731 100644 > --- a/drivers/pci/p2pdma.c > +++ b/drivers/pci/p2pdma.c > @@ -168,6 +168,7 @@ int pci_p2pdma_add_resource(struct pci_dev *pdev,

[PATCH 07/14] PCI/P2PDMA: Add the provider's pci_dev to the dev_pgmap struct

2019-07-22 Thread Logan Gunthorpe
The provider will be needed to figure out how to properly map a device. Signed-off-by: Logan Gunthorpe --- drivers/pci/p2pdma.c | 1 + include/linux/memremap.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c index 143e11d2a5c3..70c262b7c731