summaryrefslogtreecommitdiff
path: root/drivers/firmware/efi/dev-path-parser.c
diff options
context:
space:
mode:
authorJianmin Lv <lvjianmin@loongson.cn>2022-09-11 17:06:34 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-09-24 18:39:21 +0200
commitbf2ee8d0c385f883a00473768b67faf2189b2410 (patch)
treee1a73ba0e7d936f24f740d2754a78f0a3bd0feab /drivers/firmware/efi/dev-path-parser.c
parent521a547ced6477c54b4b0cc206000406c221b4d6 (diff)
downloadlinux-bf2ee8d0c385f883a00473768b67faf2189b2410.tar.gz
linux-bf2ee8d0c385f883a00473768b67faf2189b2410.tar.bz2
linux-bf2ee8d0c385f883a00473768b67faf2189b2410.zip
ACPI: scan: Support multiple DMA windows with different offsets
In DT systems configurations, of_dma_get_range() returns struct bus_dma_region DMA regions; they are used to set-up devices DMA windows with different offset available for translation between DMA address and CPU address. In ACPI systems configuration, acpi_dma_get_range() does not return DMA regions yet and that precludes setting up the dev->dma_range_map pointer and therefore DMA regions with multiple offsets. Update acpi_dma_get_range() to return struct bus_dma_region DMA regions like of_dma_get_range() does. After updating acpi_dma_get_range(), acpi_arch_dma_setup() is changed for ARM64, where the original dma_addr and size are removed as these arguments are now redundant, and pass 0 and U64_MAX for dma_base and size of arch_setup_dma_ops; this is a simplification consistent with what other ACPI architectures also pass to iommu_setup_dma_ops(). Reviewed-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Jianmin Lv <lvjianmin@loongson.cn> Reviewed-by: Lorenzo Pieralisi <lpieralisi@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/firmware/efi/dev-path-parser.c')
0 files changed, 0 insertions, 0 deletions