On Tue, Jun 22, 2021 at 02:23:03PM +0200, Christian König wrote:
Am 22.06.21 um 14:01 schrieb Jason Gunthorpe:That is a special AMD thing, P2P here is PCI P2P and all PCI memory is
On Tue, Jun 22, 2021 at 11:42:27AM +0300, Oded Gabbay wrote:No, especially P2P is often done on memory resources which are not even
On Tue, Jun 22, 2021 at 9:37 AM Christian KönigThat isn't an issue here because the memory is only intended to be
<ckoenig.leichtzumerken@xxxxxxxxx> wrote:
Am 22.06.21 um 01:29 schrieb Jason Gunthorpe:
On Mon, Jun 21, 2021 at 10:24:16PM +0300, Oded Gabbay wrote:The major problem with this approach is that DMA-buf is also used for
Another thing I want to emphasize is that we are doing p2p onlyArguably mmaping the memory is a better choice, and is the direction
through the export/import of the FD. We do *not* allow the user to
mmap the dma-buf as we do not support direct IO. So there is no access
to these pages through the userspace.
that Logan's series goes in. Here the use of DMABUF was specifically
designed to allow hitless revokation of the memory, which this isn't
even using.
memory which isn't CPU accessible.
used with P2P transfers so it must be CPU accessible.
remotely CPU accessible.
CPU accessible.
sg lists in general.Well that stuff was NAKed because we still use sg_tables, not because weYou still have the issue that this patch is doing all of this P2PSo you are taking the hit of very limited hardware support and reduced
performance just to squeeze into DMABUF..
stuff wrong - following the already NAK'd AMD approach.
don't want to allocate struct pages.
The plan is to push this forward since DEVICE_PRIVATE clearly can't handleHow? Is that more AMD special stuff?
all of our use cases and is not really a good fit to be honest.
IOMMU is now working as well, so as far as I can see we are all good here.
This patch series never calls to the iommu driver, AFAICT.
Because the iommu and other places need this handle to setup theirYeah, but it doesn't make much sense. Why should we create a struct page forI'll go and read Logan's patch-set to see if that will work for us inIt is trivial to get the struct page for a PCI BAR.
the future. Please remember, as Daniel said, we don't have struct page
backing our device memory, so if that is a requirement to connect to
Logan's work, then I don't think we will want to do it at this point.
something that isn't even memory in a lot of cases?
stuff. Nobody has yet been brave enough to try to change those flows
to be able to use a physical CPU address.
This is why we have a special struct page type just for PCI BAR
memory.
Jason