linux/drivers/pci
Leon Romanovsky 395698bd2c 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>
2025-11-20 12:02:00 -07:00
..
controller pci-v6.18-fixes-4 2025-10-31 14:24:32 -07:00
endpoint PCI: endpoint: pci-epf-test: Add NULL check for DMA channels before release 2025-09-16 12:11:04 +05:30
hotplug PCI: hotplug: Clean up spaces in messages 2025-08-11 15:01:50 -05:00
msi Devicetree updates for v6.18: 2025-10-01 16:58:24 -07:00
pcie PCI/ASPM: Enable only L0s and L1 for devicetree platforms 2025-10-23 20:08:14 -05:00
pwrctrl PCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure 2025-08-13 14:34:27 -05:00
switch PCI: switchtec: Replace manual locks with guard 2025-08-28 10:39:54 -05:00
Kconfig PCI/VGA: Select SCREEN_INFO on X86 2025-10-17 08:31:14 -05:00
Makefile Merge branch 'pci/tph' 2024-11-25 13:40:55 -06:00
access.c
ats.c iommufd: Extend IOMMU_GET_HW_INFO to report PASID capability 2025-03-28 10:07:23 -03:00
bus.c Merge branch 'pci/resource' 2025-10-03 12:13:12 -05:00
devres.c PCI: Remove redundant set of request functions 2025-05-20 07:39:15 +00:00
doe.c PCI/DOE: Expose DOE features via sysfs 2025-03-21 16:36:01 -05:00
ecam.c Revert "PCI: ecam: Allow cfg->priv to be pre-populated from the root port device" 2025-06-30 12:30:03 -05:00
host-bridge.c
iomap.c PCI: Remove hybrid-devres usage warnings from kernel-doc 2025-05-20 07:39:16 +00:00
iov.c PCI/IOV: Add PCI rescan-remove locking when enabling/disabling SR-IOV 2025-09-26 15:55:59 -05:00
irq.c
mmap.c
npem.c
of.c PCI: of: Add of_pci_get_equalization_presets() API 2025-04-19 19:42:33 +05:30
of_property.c PCI: of: Update parent unit address generation in of_pci_prop_intr_map() 2025-09-12 14:17:57 -05:00
p2pdma.c PCI/P2PDMA: Provide an access to pci_p2pdma_map_type() function 2025-11-20 12:02:00 -07:00
pci-acpi.c PCI/ACPI: Fix pci_acpi_preserve_config() memory leak 2025-08-27 17:28:07 -05:00
pci-bridge-emul.c
pci-bridge-emul.h
pci-driver.c s390/pci: Use pci_uevent_ers() in PCI recovery 2025-08-14 15:56:28 -05:00
pci-label.c
pci-mid.c
pci-pf-stub.c
pci-stub.c
pci-sysfs.c More power management updates for 6.18-rc1 2025-10-07 09:39:51 -07:00
pci.c pci-v6.18-changes 2025-10-06 10:41:03 -07:00
pci.h Merge branch 'pci/capability-search' 2025-10-03 12:13:14 -05:00
probe.c PCI: Revert early bridge resource set up 2025-10-14 15:36:07 -05:00
proc.c s390/pci: Introduce pdev->non_mappable_bars and replace VFIO_PCI_MMAP 2025-03-21 14:54:16 -05:00
quirks.c pci-v6.18-changes 2025-10-06 10:41:03 -07:00
remove.c Merge branch 'pci/virtualization' 2025-10-03 12:13:12 -05:00
rom.c
search.c
setup-bus.c PCI: Do not size non-existing prefetchable window 2025-10-31 15:07:21 -05:00
setup-res.c PCI: Fix finding bridge window in pci_reassign_bridge_resources() 2025-09-16 11:19:31 -05:00
slot.c PCI: hotplug: Inline pci_hp_{create,remove}_module_link() 2025-03-04 17:00:12 -06:00
syscall.c
tph.c PCI/TPH: Expose pcie_tph_get_st_table_size() 2025-07-23 01:27:32 -04:00
vc.c
vgaarb.c PCI/VGA: Select SCREEN_INFO on X86 2025-10-17 08:31:14 -05:00
vpd.c sysfs: treewide: switch back to attribute_group::bin_attrs 2025-06-17 10:44:15 +02:00
xen-pcifront.c