Re: [PATCH v6 03/13] PCI/P2PDMA: Add PCI p2pmem DMA mappings to adjust the bus offset
From: Logan Gunthorpe
Date: Fri Sep 21 2018 - 16:01:28 EST
On 2018-09-21 2:00 PM, Bjorn Helgaas wrote:
> Ok. I was assuming s->dma_address would have been already set before
> the call and would be overwritten by pci_p2pmem_map_sg(). But I guess
> that's not the case -- sounds like s->dma_address is undefined before
> the call.
Correct. It's set by whatever dma_map function operates on it.
Logan