Skip to content

Commit 2ee7a4e

Browse files
author
Christoph Hellwig
committed
MIPS: only select ARCH_HAS_UNCACHED_SEGMENT for non-coherent platforms
While mips might architecturally have the uncached segment all the time, the infrastructure to use it is only need on platforms where DMA is at least partially incoherent. Only select it for those configuration to fix a build failure as the arch_dma_prep_coherent symbol is also only provided for non-coherent platforms. Fixes: 2e96e04 ("MIPS: use the generic uncached segment support in dma-direct") Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Paul Burton <paul.burton@mips.com> Tested-by: Guenter Roeck <linux@roeck-us.net>
1 parent ff2437b commit 2ee7a4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/mips/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ config MIPS
88
select ARCH_HAS_ELF_RANDOMIZE
99
select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
1010
select ARCH_HAS_UBSAN_SANITIZE_ALL
11-
select ARCH_HAS_UNCACHED_SEGMENT
1211
select ARCH_SUPPORTS_UPROBES
1312
select ARCH_USE_BUILTIN_BSWAP
1413
select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
@@ -1120,6 +1119,7 @@ config DMA_NONCOHERENT
11201119
bool
11211120
select ARCH_HAS_DMA_MMAP_PGPROT
11221121
select ARCH_HAS_SYNC_DMA_FOR_DEVICE
1122+
select ARCH_HAS_UNCACHED_SEGMENT
11231123
select NEED_DMA_MAP_STATE
11241124
select ARCH_HAS_DMA_COHERENT_TO_PFN
11251125
select DMA_NONCOHERENT_CACHE_SYNC

0 commit comments

Comments
 (0)