Commit 18c3850f authored by Bjorn Helgaas's avatar Bjorn Helgaas

Merge branch 'pci/p2pdma'

- Remove documentation for obsolete pci_p2pdma_map_sg() (Tadeusz Struk)

* pci/p2pdma:
  PCI/P2PDMA: Remove reference to pci_p2pdma_map_sg()
parents 564af7a5 9a000a72
...@@ -83,19 +83,9 @@ this to include other types of resources like doorbells. ...@@ -83,19 +83,9 @@ this to include other types of resources like doorbells.
Client Drivers Client Drivers
-------------- --------------
A client driver typically only has to conditionally change its DMA map A client driver only has to use the mapping API :c:func:`dma_map_sg()`
routine to use the mapping function :c:func:`pci_p2pdma_map_sg()` instead and :c:func:`dma_unmap_sg()` functions as usual, and the implementation
of the usual :c:func:`dma_map_sg()` function. Memory mapped in this will do the right thing for the P2P capable memory.
way does not need to be unmapped.
The client may also, optionally, make use of
:c:func:`is_pci_p2pdma_page()` to determine when to use the P2P mapping
functions and when to use the regular mapping functions. In some
situations, it may be more appropriate to use a flag to indicate a
given request is P2P memory and map appropriately. It is important to
ensure that struct pages that back P2P memory stay out of code that
does not have support for them as other code may treat the pages as
regular memory which may not be appropriate.
Orchestrator Drivers Orchestrator Drivers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment