Skip to content

Commit 736a4aa

Browse files
committed
Merge tag 'renesas-fixes-for-v6.6-tag3' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel into arm/fixes
Renesas fixes for v6.6 (take three) - Sort out a few Kconfig dependency issues for the rich set of RISC-V non-coherent DMA support. * tag 'renesas-fixes-for-v6.6-tag3' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel: soc: renesas: ARCH_R9A07G043 depends on !RISCV_ISA_ZICBOM riscv: only select DMA_DIRECT_REMAP from RISCV_ISA_ZICBOM and ERRATA_THEAD_PBMT riscv: RISCV_NONSTANDARD_CACHE_OPS shouldn't depend on RISCV_DMA_NONCOHERENT Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 291c0d3 + 9eab43f commit 736a4aa

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,9 @@ config RISCV_DMA_NONCOHERENT
273273
select ARCH_HAS_SYNC_DMA_FOR_CPU
274274
select ARCH_HAS_SYNC_DMA_FOR_DEVICE
275275
select DMA_BOUNCE_UNALIGNED_KMALLOC if SWIOTLB
276-
select DMA_DIRECT_REMAP if MMU
277276

278277
config RISCV_NONSTANDARD_CACHE_OPS
279278
bool
280-
depends on RISCV_DMA_NONCOHERENT
281279
help
282280
This enables function pointer support for non-standard noncoherent
283281
systems to handle cache management.
@@ -550,6 +548,7 @@ config RISCV_ISA_ZICBOM
550548
depends on RISCV_ALTERNATIVE
551549
default y
552550
select RISCV_DMA_NONCOHERENT
551+
select DMA_DIRECT_REMAP
553552
help
554553
Adds support to dynamically detect the presence of the ZICBOM
555554
extension (Cache Block Management Operations) and enable its

arch/riscv/Kconfig.errata

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ config ERRATA_THEAD_PBMT
7777
config ERRATA_THEAD_CMO
7878
bool "Apply T-Head cache management errata"
7979
depends on ERRATA_THEAD && MMU
80+
select DMA_DIRECT_REMAP
8081
select RISCV_DMA_NONCOHERENT
8182
default y
8283
help

drivers/cache/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ menu "Cache Drivers"
33

44
config AX45MP_L2_CACHE
55
bool "Andes Technology AX45MP L2 Cache controller"
6-
depends on RISCV_DMA_NONCOHERENT
6+
depends on RISCV
77
select RISCV_NONSTANDARD_CACHE_OPS
88
help
99
Support for the L2 cache controller on Andes Technology AX45MP platforms.

drivers/soc/renesas/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ config ARCH_R9A07G043
335335
bool "RISC-V Platform support for RZ/Five"
336336
depends on NONPORTABLE
337337
depends on RISCV_ALTERNATIVE
338+
depends on !RISCV_ISA_ZICBOM
338339
depends on RISCV_SBI
339340
select ARCH_RZG2L
340341
select AX45MP_L2_CACHE

0 commit comments

Comments
 (0)