Skip to content

Commit

Permalink
sh: don't allow non-coherent DMA for NOMMU
Browse files Browse the repository at this point in the history
The code handling non-coherent DMA depends on being able to remap code
as non-cached.  But that can't be done without an MMU, so using this
option on NOMMU builds is broken.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rich Felker <dalias@libc.org>
  • Loading branch information
Christoph Hellwig authored and Rich Felker committed Aug 15, 2020
1 parent 846f9e1 commit cd57d07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ config SUPERH
select MAY_HAVE_SPARSE_IRQ
select MODULES_USE_ELF_RELA
select NEED_SG_DMA_LENGTH
select NO_DMA if !MMU && !DMA_COHERENT
select NO_GENERIC_PCI_IOPORT_MAP if PCI
select OLD_SIGACTION
select OLD_SIGSUSPEND
Expand Down Expand Up @@ -135,7 +136,7 @@ config DMA_COHERENT
bool

config DMA_NONCOHERENT
def_bool !DMA_COHERENT
def_bool !NO_DMA && !DMA_COHERENT
select ARCH_HAS_SYNC_DMA_FOR_DEVICE

config PGTABLE_LEVELS
Expand Down

0 comments on commit cd57d07

Please sign in to comment.