Linux-RISC-V Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] riscv: Fix missing select CACHEMAINT_FOR_DMA
@ 2025-12-10 16:00 Jonathan Cameron
  2025-12-10 16:00 ` [PATCH 1/2] riscv: ERRATA_STARFIVE_JH7100: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA Jonathan Cameron
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jonathan Cameron @ 2025-12-10 16:00 UTC (permalink / raw)
  To: Conor Dooley, Geert Uytterhoeven, Magnus Damm, Paul Walmsley,
	Palmer Dabbelt, Albert Ou
  Cc: Paul Gazzillo, Necip Fazil Yildiran, linux-renesas-soc,
	linux-riscv, linuxarm, Arnd Bergmann

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(+)

-- 
2.48.1


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/2] riscv: ERRATA_STARFIVE_JH7100: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA
  2025-12-10 16:00 [PATCH 0/2] riscv: Fix missing select CACHEMAINT_FOR_DMA Jonathan Cameron
@ 2025-12-10 16:00 ` Jonathan Cameron
  2026-01-16  1:50   ` Paul Walmsley
  2025-12-10 16:00 ` [PATCH 2/2] soc: renesas: " Jonathan Cameron
  2026-01-19 14:21 ` [PATCH 0/2] riscv: Fix missing select CACHEMAINT_FOR_DMA patchwork-bot+linux-riscv
  2 siblings, 1 reply; 7+ messages in thread
From: Jonathan Cameron @ 2025-12-10 16:00 UTC (permalink / raw)
  To: Conor Dooley, Geert Uytterhoeven, Magnus Damm, Paul Walmsley,
	Palmer Dabbelt, Albert Ou
  Cc: Paul Gazzillo, Necip Fazil Yildiran, linux-renesas-soc,
	linux-riscv, linuxarm, Arnd Bergmann

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")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202512100509.g6llkMMr-lkp@intel.com/
Signed-off-by: Jonathan Cameron <jonathan.cameron@huawei.com>
---
 arch/riscv/Kconfig.errata | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/Kconfig.errata b/arch/riscv/Kconfig.errata
index aca9b0cfcfec..3c945d086c7d 100644
--- a/arch/riscv/Kconfig.errata
+++ b/arch/riscv/Kconfig.errata
@@ -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
-- 
2.48.1


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] soc: renesas: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA
  2025-12-10 16:00 [PATCH 0/2] riscv: Fix missing select CACHEMAINT_FOR_DMA Jonathan Cameron
  2025-12-10 16:00 ` [PATCH 1/2] riscv: ERRATA_STARFIVE_JH7100: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA Jonathan Cameron
@ 2025-12-10 16:00 ` Jonathan Cameron
  2025-12-16 14:25   ` Geert Uytterhoeven
  2026-01-16  1:50   ` Paul Walmsley
  2026-01-19 14:21 ` [PATCH 0/2] riscv: Fix missing select CACHEMAINT_FOR_DMA patchwork-bot+linux-riscv
  2 siblings, 2 replies; 7+ messages in thread
From: Jonathan Cameron @ 2025-12-10 16:00 UTC (permalink / raw)
  To: Conor Dooley, Geert Uytterhoeven, Magnus Damm, Paul Walmsley,
	Palmer Dabbelt, Albert Ou
  Cc: Paul Gazzillo, Necip Fazil Yildiran, linux-renesas-soc,
	linux-riscv, linuxarm, Arnd Bergmann

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")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202512100411.WxJU2No9-lkp@intel.com/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
 drivers/soc/renesas/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/renesas/Kconfig b/drivers/soc/renesas/Kconfig
index 340a1ff7e92b..2a8ae79a11af 100644
--- a/drivers/soc/renesas/Kconfig
+++ b/drivers/soc/renesas/Kconfig
@@ -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
-- 
2.48.1


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] soc: renesas: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA
  2025-12-10 16:00 ` [PATCH 2/2] soc: renesas: " Jonathan Cameron
@ 2025-12-16 14:25   ` Geert Uytterhoeven
  2026-01-16  1:50   ` Paul Walmsley
  1 sibling, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2025-12-16 14:25 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Conor Dooley, Magnus Damm, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Paul Gazzillo, Necip Fazil Yildiran, linux-renesas-soc,
	linux-riscv, linuxarm, Arnd Bergmann

Hi Jonathan,

On Wed, 10 Dec 2025 at 17:01, Jonathan Cameron
<Jonathan.Cameron@huawei.com> wrote:
> 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")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202512100411.WxJU2No9-lkp@intel.com/
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

I assume Conor will take the two patches in this series?
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

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

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] riscv: ERRATA_STARFIVE_JH7100: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA
  2025-12-10 16:00 ` [PATCH 1/2] riscv: ERRATA_STARFIVE_JH7100: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA Jonathan Cameron
@ 2026-01-16  1:50   ` Paul Walmsley
  0 siblings, 0 replies; 7+ messages in thread
From: Paul Walmsley @ 2026-01-16  1:50 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Conor Dooley, Geert Uytterhoeven, Magnus Damm, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Paul Gazzillo, Necip Fazil Yildiran,
	linux-renesas-soc, linux-riscv, linuxarm, Arnd Bergmann

On Wed, 10 Dec 2025, Jonathan Cameron wrote:

> 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")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202512100509.g6llkMMr-lkp@intel.com/
> Signed-off-by: Jonathan Cameron <jonathan.cameron@huawei.com>

Thanks, queued for v6.19-rc.


- Paul

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] soc: renesas: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA
  2025-12-10 16:00 ` [PATCH 2/2] soc: renesas: " Jonathan Cameron
  2025-12-16 14:25   ` Geert Uytterhoeven
@ 2026-01-16  1:50   ` Paul Walmsley
  1 sibling, 0 replies; 7+ messages in thread
From: Paul Walmsley @ 2026-01-16  1:50 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Conor Dooley, Geert Uytterhoeven, Magnus Damm, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Paul Gazzillo, Necip Fazil Yildiran,
	linux-renesas-soc, linux-riscv, linuxarm, Arnd Bergmann

On Wed, 10 Dec 2025, Jonathan Cameron wrote:

> 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")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202512100411.WxJU2No9-lkp@intel.com/
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Thanks, queued for v6.19-rc.


- Paul

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] riscv: Fix missing select CACHEMAINT_FOR_DMA
  2025-12-10 16:00 [PATCH 0/2] riscv: Fix missing select CACHEMAINT_FOR_DMA Jonathan Cameron
  2025-12-10 16:00 ` [PATCH 1/2] riscv: ERRATA_STARFIVE_JH7100: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA Jonathan Cameron
  2025-12-10 16:00 ` [PATCH 2/2] soc: renesas: " Jonathan Cameron
@ 2026-01-19 14:21 ` patchwork-bot+linux-riscv
  2 siblings, 0 replies; 7+ messages in thread
From: patchwork-bot+linux-riscv @ 2026-01-19 14:21 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: linux-riscv, conor.dooley, geert+renesas, magnus.damm, pjw,
	palmer, aou, paul, fazilyildiran, linux-renesas-soc, linuxarm,
	arnd

Hello:

This series was applied to riscv/linux.git (fixes)
by Paul Walmsley <pjw@kernel.org>:

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.
> 
> 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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-01-19 14:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-10 16:00 [PATCH 0/2] riscv: Fix missing select CACHEMAINT_FOR_DMA Jonathan Cameron
2025-12-10 16:00 ` [PATCH 1/2] riscv: ERRATA_STARFIVE_JH7100: Fix missing dependency on new CONFIG_CACHEMAINT_FOR_DMA Jonathan Cameron
2026-01-16  1:50   ` Paul Walmsley
2025-12-10 16:00 ` [PATCH 2/2] soc: renesas: " Jonathan Cameron
2025-12-16 14:25   ` Geert Uytterhoeven
2026-01-16  1:50   ` Paul Walmsley
2026-01-19 14:21 ` [PATCH 0/2] riscv: Fix missing select CACHEMAINT_FOR_DMA patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox