diff options
| author | Leon Romanovsky <leonro@nvidia.com> | 2025-11-20 11:28:23 +0200 |
|---|---|---|
| committer | Alex Williamson <alex@shazbot.org> | 2025-11-20 12:02:00 -0700 |
| commit | 395698bd2cd7639b85784a4a8f5ddb7a581e353c (patch) | |
| tree | 87fd01a56ca21ab56fe491df32005961faf3ae77 /rust/kernel | |
| parent | 372d6d1b8ae3cdfe6b0638a0a848c6865ec94567 (diff) | |
PCI/P2PDMA: Provide an access to pci_p2pdma_map_type() function
Provide an access to pci_p2pdma_map_type() function to allow subsystems
to determine the appropriate mapping type for P2PDMA transfers between
a provider and target device.
The pci_p2pdma_map_type() function is the core P2P layer version of
the existing public, but struct page focused, pci_p2pdma_state()
function. It returns the same result. It is required to use the p2p
subsystem from drivers that don't use the struct page layer.
Like __pci_p2pdma_update_state() it is not an exported function. The
idea is that only subsystem code will implement mapping helpers for
taking in phys_addr_t lists, this is deliberately not made accessible
to every driver to prevent abuse.
Following patches will use this function to implement a shared DMA
mapping helper for DMABUF.
Tested-by: Alex Mastro <amastro@fb.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Acked-by: Ankit Agrawal <ankita@nvidia.com>
Link: https://lore.kernel.org/r/20251120-dmabuf-vfio-v9-4-d7f71607f371@nvidia.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions
