mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
riscv: only select DMA_DIRECT_REMAP from RISCV_ISA_ZICBOM and ERRATA_THEAD_PBMT
RISCV_DMA_NONCOHERENT is also used for whacky non-standard non-coherent ops that use different hooks in dma-direct. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Tested-by: Samuel Holland <samuel.holland@sifive.com> Link: https://lore.kernel.org/r/20231018052654.50074-3-hch@lst.de Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
This commit is contained in:
parent
fd96278127
commit
381cae1698
2 changed files with 2 additions and 1 deletions
|
@ -273,7 +273,6 @@ config RISCV_DMA_NONCOHERENT
|
||||||
select ARCH_HAS_SYNC_DMA_FOR_CPU
|
select ARCH_HAS_SYNC_DMA_FOR_CPU
|
||||||
select ARCH_HAS_SYNC_DMA_FOR_DEVICE
|
select ARCH_HAS_SYNC_DMA_FOR_DEVICE
|
||||||
select DMA_BOUNCE_UNALIGNED_KMALLOC if SWIOTLB
|
select DMA_BOUNCE_UNALIGNED_KMALLOC if SWIOTLB
|
||||||
select DMA_DIRECT_REMAP if MMU
|
|
||||||
|
|
||||||
config RISCV_NONSTANDARD_CACHE_OPS
|
config RISCV_NONSTANDARD_CACHE_OPS
|
||||||
bool
|
bool
|
||||||
|
@ -549,6 +548,7 @@ config RISCV_ISA_ZICBOM
|
||||||
depends on RISCV_ALTERNATIVE
|
depends on RISCV_ALTERNATIVE
|
||||||
default y
|
default y
|
||||||
select RISCV_DMA_NONCOHERENT
|
select RISCV_DMA_NONCOHERENT
|
||||||
|
select DMA_DIRECT_REMAP
|
||||||
help
|
help
|
||||||
Adds support to dynamically detect the presence of the ZICBOM
|
Adds support to dynamically detect the presence of the ZICBOM
|
||||||
extension (Cache Block Management Operations) and enable its
|
extension (Cache Block Management Operations) and enable its
|
||||||
|
|
|
@ -77,6 +77,7 @@ config ERRATA_THEAD_PBMT
|
||||||
config ERRATA_THEAD_CMO
|
config ERRATA_THEAD_CMO
|
||||||
bool "Apply T-Head cache management errata"
|
bool "Apply T-Head cache management errata"
|
||||||
depends on ERRATA_THEAD && MMU
|
depends on ERRATA_THEAD && MMU
|
||||||
|
select DMA_DIRECT_REMAP
|
||||||
select RISCV_DMA_NONCOHERENT
|
select RISCV_DMA_NONCOHERENT
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue