diff options
| author | Christoph Hellwig <hch@lst.de> | 2024-08-28 09:02:47 +0300 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2024-09-04 07:08:51 +0300 |
| commit | de6c85bf918ea52d5c680f0d130b37ee2ff152d6 (patch) | |
| tree | 4dd1ee15eaeac8ee0f26c1c4ec258d6b81057581 /arch/x86/Kconfig | |
| parent | 92193b3569ade4968011007356c8606def0657a1 (diff) | |
| download | linux-de6c85bf918ea52d5c680f0d130b37ee2ff152d6.tar.gz linux-de6c85bf918ea52d5c680f0d130b37ee2ff152d6.tar.bz2 linux-de6c85bf918ea52d5c680f0d130b37ee2ff152d6.zip | |
dma-mapping: clearly mark DMA ops as an architecture feature
DMA ops are a helper for architectures and not for drivers to override
the DMA implementation.
Unfortunately driver authors keep ignoring this. Make the fact more
clear by renaming the symbol to ARCH_HAS_DMA_OPS and having the two drivers
overriding their dma_ops depend on that. These drivers should probably be
marked broken, but we can give them a bit of a grace period for that.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> # for IPU6
Acked-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'arch/x86/Kconfig')
| -rw-r--r-- | arch/x86/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 007bab9f2a0e..9e2e7d361019 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -79,6 +79,7 @@ config X86 select ARCH_HAS_DEBUG_VIRTUAL select ARCH_HAS_DEBUG_VM_PGTABLE if !X86_PAE select ARCH_HAS_DEVMEM_IS_ALLOWED + select ARCH_HAS_DMA_OPS if GART_IOMMU || XEN select ARCH_HAS_EARLY_DEBUG if KGDB select ARCH_HAS_ELF_RANDOMIZE select ARCH_HAS_FAST_MULTIPLIER @@ -943,7 +944,6 @@ config DMI config GART_IOMMU bool "Old AMD GART IOMMU support" - select DMA_OPS select IOMMU_HELPER select SWIOTLB depends on X86_64 && PCI && AMD_NB |
