History

sh: don't allow non-coherent DMA for NOMMU

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.

Christoph Hellwig committed 6 years ago

Commit cd57d071 parent 846f9e11 file · +2 −1Browse files

Unified · Split

arch/sh/Kconfig+2−1
@@ -61,6 +61,7 @@ config SUPERH · 60 unmodified lines
6161 select MAY_HAVE_SPARSE_IRQ
6262 select MODULES_USE_ELF_RELA
6363 select NEED_SG_DMA_LENGTH
64+ select NO_DMA if !MMU && !DMA_COHERENT
6465 select NO_GENERIC_PCI_IOPORT_MAP if PCI
6566 select OLD_SIGACTION
6667 select OLD_SIGSUSPEND
@@ -135,7 +136,7 @@ config DMA_COHERENT · 68 unmodified lines
135136 bool
136137
137138 config DMA_NONCOHERENT
138− def_bool !DMA_COHERENT
139+ def_bool !NO_DMA && !DMA_COHERENT
139140 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
140141
141142 config PGTABLE_LEVELS

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t