Skip to contentSkip to conversation

riscv: Fix missing select CACHEMAINT_FOR_DMA

PATCH Applied Jonathan Cameron 4 participants 7 messages Dec 10, 2025 – Jan 19

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover riscv: Fix missing select CACHEMAINT_FOR_DMA

The drivers/cache/Kconfig menu was changed to a menuconfig so as to be able to hide the menu for non RISCV. The select of drivers under the original menu were broken as the menuconfig itself could be disabled. Fix this by adding SELECT CACHEMAINT_FOR_DMA alongside the driver specific symbol selects.

Jonathan Cameron (2):
riscv: ERRATA_STARFIVE_JH7100: Fix missing dependency on new
CONFIG_CACHEMAINT_FOR_DMA
soc: renesas: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA

 arch/riscv/Kconfig.errata   | 1 +
 drivers/soc/renesas/Kconfig | 1 +
 2 files changed, 2 insertions(+)
Signature · 1 line
2.48.1
#1 lore raw

PATCH 1/2 riscv: ERRATA_STARFIVE_JH7100: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA

The Kconfig menu entry was converted to a menuconfig to allow it to be hidden for !CONFIG_RISCV. The drivers under this new option were selected by some other Kconfig symbols and so an extra select CACHEMAINT_FOR_DMA is needed.

Fixes 4d1608d0ab33 ("cache: Make top level Kconfig menu a boolean dependent on RISCV")
---
 arch/riscv/Kconfig.errata | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig.errata +1 -0
index aca9b0cfcfec..3c945d086c7d 100644
@@ -84,6 +84,7 @@ config ERRATA_STARFIVE_JH7100
 	select DMA_GLOBAL_POOL
 	select RISCV_DMA_NONCOHERENT
 	select RISCV_NONSTANDARD_CACHE_OPS
+	select CACHEMAINT_FOR_DMA
 	select SIFIVE_CCACHE
 	default n
 	help
Signature · 1 line
2.48.1
maintainer
#2 lore raw

Re: [PATCH 1/2] riscv: ERRATA_STARFIVE_JH7100: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA

Quoted 9 lines · Jonathan Cameron

The Kconfig menu entry was converted to a menuconfig to allow it to be hidden for !CONFIG_RISCV. The drivers under this new option were selected by some other Kconfig symbols and so an extra select CACHEMAINT_FOR_DMA is needed.

Fixes 4d1608d0ab33 ("cache: Make top level Kconfig menu a boolean dependent on RISCV")

Thanks, queued for v6.19-rc.

- Paul

#3 lore raw

PATCH 2/2 soc: renesas: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA

In reply to Jonathan Cameron

The Kconfig menu entry was converted to a menuconfig to allow it to be hidden for !CONFIG_RISCV. The drivers under this new option were selected by some other Kconfig symbols and so an extra select CACHEMAINT_FOR_DMA is needed.

Fixes 4d1608d0ab33 ("cache: Make top level Kconfig menu a boolean dependent on RISCV")
---
 drivers/soc/renesas/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/soc/renesas/Kconfig +1 -0
index 340a1ff7e92b..2a8ae79a11af 100644
@@ -445,6 +445,7 @@ config ARCH_R9A07G043
 	depends on RISCV_SBI
 	select ARCH_RZG2L
 	select AX45MP_L2_CACHE
+	select CACHEMAINT_FOR_DMA
 	select DMA_GLOBAL_POOL
 	select ERRATA_ANDES
 	select ERRATA_ANDES_CMO
Signature · 1 line
2.48.1
Reviewed-by Acked-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] soc: renesas: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA

Hi Jonathan,

Quoted 9 lines · Jonathan Cameron

The Kconfig menu entry was converted to a menuconfig to allow it to be hidden for !CONFIG_RISCV. The drivers under this new option were selected by some other Kconfig symbols and so an extra select CACHEMAINT_FOR_DMA is needed.

Fixes 4d1608d0ab33 ("cache: Make top level Kconfig menu a boolean dependent on RISCV")

I assume Conor will take the two patches in this series?

If not, please let me know, and I will queue it in renesas-fixes. Thanks!

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
maintainer
#5 lore raw

Re: [PATCH 2/2] soc: renesas: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA

In reply to Jonathan Cameron
Quoted 9 lines · Jonathan Cameron

The Kconfig menu entry was converted to a menuconfig to allow it to be hidden for !CONFIG_RISCV. The drivers under this new option were selected by some other Kconfig symbols and so an extra select CACHEMAINT_FOR_DMA is needed.

Fixes 4d1608d0ab33 ("cache: Make top level Kconfig menu a boolean dependent on RISCV")

Thanks, queued for v6.19-rc.

- Paul

#6 lore raw
In reply to Jonathan Cameron
This series was applied to riscv/linux.git (fixes) by Paul Walmsley <[email protected]>:

Hello:

This series was applied to riscv/linux.git (fixes) by Paul Walmsley <[email protected]>:

Quoted 6 lines · On Wed, 10 Dec 2025 16:00:45 +0000 you wrote:

The drivers/cache/Kconfig menu was changed to a menuconfig so as to be able to hide the menu for non RISCV. The select of drivers under the original menu were broken as the menuconfig itself could be disabled. Fix this by adding SELECT CACHEMAINT_FOR_DMA alongside the driver specific symbol selects.

Quoted 6 lines

Jonathan Cameron (2):
riscv: ERRATA_STARFIVE_JH7100: Fix missing dependency on new
CONFIG_CACHEMAINT_FOR_DMA
soc: renesas: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA

[...]

Here is the summary with links:
- [1/2] riscv: ERRATA_STARFIVE_JH7100: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA

    https://git.kernel.org/riscv/c/521cadb4b69e
  - [2/2] soc: renesas: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA
    https://git.kernel.org/riscv/c/8fdc61faa730

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html