[PATCH v8 01/24] PCI/P2PDMA: Refactor the p2pdma mapping helpers
ALOK TIWARI
alok.a.tiwari at oracle.com
Sun Apr 20 13:05:26 PDT 2025
Since we're touching this code, it might be a good opportunity to fix
the old typo
On 18-04-2025 12:17, Leon Romanovsky wrote:
> +/**
> + * pci_p2pdma_bus_addr_map - map a PCI_P2PDMA_MAP_BUS_ADDR P2P transfer
> + * @state: P2P state structure
> + * @paddr: physical address to map
> + *
> + * Map a physically contigous PCI_P2PDMA_MAP_BUS_ADDR transfer.
old typo contigous -> contiguous
> + */
> +static inline dma_addr_t
> +pci_p2pdma_bus_addr_map(struct pci_p2pdma_map_state *state, phys_addr_t paddr)
> {
> - return PCI_P2PDMA_MAP_NOT_SUPPORTED;
> + WARN_ON_ONCE(state->map != PCI_P2PDMA_MAP_BUS_ADDR);
> + return paddr + state->bus_off;
> }
> -#endif /* CONFIG_PCI_P2PDMA */
Thanks,
Alok
More information about the Linux-nvme
mailing list