soc: renesas: make ARCH_R9A07G043 depend on !DMA_DIRECT_REMAP
Subsystems (2)
PATCH 1/1 soc: renesas: make ARCH_R9A07G043 depend on !DMA_DIRECT_REMAP
From: Conor Dooley <[email protected]>
Randy reported yet another build issue with randconfigs on rv32:
WARNING: unmet direct dependencies detected for DMA_GLOBAL_POOL
Depends on [n]: !ARCH_HAS_DMA_SET_UNCACHED [=n] && !DMA_DIRECT_REMAP [=y]
Selected by [y]:
- ARCH_R9A07G043 [=y] && SOC_RENESAS [=y] && RISCV [=y] && NONPORTABLE [=y] && RISCV_ALTERNATIVE [=y] && !RISCV_ISA_ZICBOM [=n] && RISCV_SBI [=y]
This happens when DMA_DIRECT_REMAP is selected by the T-Head CMO erratum option and DMA_GLOBAL_POOL is selected by the Andes CMO erratum. Block selecting the RZ/Five config option, and by extension DMA_GLOBAL_POOL, if DMA_DIRECT_REMAP has already been enabled.
---
I don't know what the exact fixes tag here is as I did not bisect with the randconfig, so I blamed the one that added DMA_GLOBAL_POOL.
--- drivers/soc/renesas/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/soc/renesas/Kconfig +1 -0
@@ -340,6 +340,7 @@ if RISCV config ARCH_R9A07G043 bool "RISC-V Platform support for RZ/Five" depends on NONPORTABLE + depends on !DMA_DIRECT_REMAP depends on RISCV_ALTERNATIVE depends on !RISCV_ISA_ZICBOM depends on RISCV_SBI
Signature · 1 line
2.39.2
Hi Conor,
Quoted 9 lines · Conor Dooley
From: Conor Dooley <[email protected]>
Randy reported yet another build issue with randconfigs on rv32:
WARNING: unmet direct dependencies detected forDMA_GLOBAL_POOL
Depends on [n]: !ARCH_HAS_DMA_SET_UNCACHED [=n] && !DMA_DIRECT_REMAP [=y]
Selected by [y]:
-ARCH_R9A07G043[=y] &&SOC_RENESAS[=y] && RISCV [=y] && NONPORTABLE [=y] &&RISCV_ALTERNATIVE[=y] && !RISCV_ISA_ZICBOM [=n] &&RISCV_SBI[=y]This happens when
DMA_DIRECT_REMAPis selected by the T-Head CMO erratum
or by the Zicbom extension support?
Quoted 9 lines
option and
DMA_GLOBAL_POOLis selected by the Andes CMO erratum. Block selecting the RZ/Five config option, and by extensionDMA_GLOBAL_POOL, ifDMA_DIRECT_REMAPhas already been enabled.Fixes 484861e09f3e ("soc: renesas: Kconfig: Select the required configs for RZ/Five SoC")Reported-by Randy Dunlap <[email protected]>Signed-off-by Conor Dooley <[email protected]>
i.e. will queue in renesas-devel for v6.8.
Or should this be queued as a fix for v6.7 instead?
Quoted 3 lines
---
I don't know what the exact fixes tag here is as I did not bisect with the randconfig, so I blamed the one that addedDMA_GLOBAL_POOL.
Bisection leads to commit da323d4640704001 ("dma-direct: add dependencies to CONFIG_DMA_GLOBAL_POOL") in v6.7-rc1, but that is merely making visible the symptoms, so I think your Fixes tag is fine.
Esmil: I think you need a similar fix for ERRATA_STARFIVE_JH7100 in your tree.
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
Quoted 11 lines · Geert Uytterhoeven
Hi Conor,
Quoted 8 lines · Conor Dooley
From: Conor Dooley <[email protected]>
Randy reported yet another build issue with randconfigs on rv32:
WARNING: unmet direct dependencies detected forDMA_GLOBAL_POOL
Depends on [n]: !ARCH_HAS_DMA_SET_UNCACHED [=n] && !DMA_DIRECT_REMAP [=y]
Selected by [y]:
-ARCH_R9A07G043[=y] &&SOC_RENESAS[=y] && RISCV [=y] && NONPORTABLE [=y] &&RISCV_ALTERNATIVE[=y] && !RISCV_ISA_ZICBOM [=n] &&RISCV_SBI[=y]
Quoted 3 lines
Quoted 1 line
This happens when
DMA_DIRECT_REMAPis selected by the T-Head CMO erratumor by the Zicbom extension support?
Probably, yeah. That was just the conditions for this particular randconfig IIRC.
Quoted 10 lines
Quoted 9 lines
option and
DMA_GLOBAL_POOLis selected by the Andes CMO erratum. Block selecting the RZ/Five config option, and by extensionDMA_GLOBAL_POOL, ifDMA_DIRECT_REMAPhas already been enabled.Fixes 484861e09f3e ("soc: renesas: Kconfig: Select the required configs for RZ/Five SoC")Reported-by Randy Dunlap <[email protected]>Signed-off-by Conor Dooley <[email protected]>
Quoted 4 lines
Reviewed-by Geert Uytterhoeven <[email protected]>i.e. will queue in renesas-devel for v6.8.
Or should this be queued as a fix for v6.7 instead?
Depends on your opinion on how critical such a fix is I suppose.
Quoted 10 lines
Quoted 3 lines
---
I don't know what the exact fixes tag here is as I did not bisect with the randconfig, so I blamed the one that addedDMA_GLOBAL_POOL.Bisection leads to commit
da323d4640704001("dma-direct: add dependencies toCONFIG_DMA_GLOBAL_POOL") in v6.7-rc1, but that is merely making visible the symptoms, so I think your Fixes tag is fine.Esmil: I think you need a similar fix for
ERRATA_STARFIVE_JH7100in your tree.
I probably need a similar fix in my tree for that, since I applied Emil's patches...
Quoted 27 lines · Conor Dooley
Quoted 9 lines · Geert Uytterhoeven
Quoted 8 lines · Conor Dooley
From: Conor Dooley <[email protected]>
Randy reported yet another build issue with randconfigs on rv32:
WARNING: unmet direct dependencies detected forDMA_GLOBAL_POOL
Depends on [n]: !ARCH_HAS_DMA_SET_UNCACHED [=n] && !DMA_DIRECT_REMAP [=y]
Selected by [y]:
-ARCH_R9A07G043[=y] &&SOC_RENESAS[=y] && RISCV [=y] && NONPORTABLE [=y] &&RISCV_ALTERNATIVE[=y] && !RISCV_ISA_ZICBOM [=n] &&RISCV_SBI[=y]Quoted 3 lines
Quoted 1 line
This happens when
DMA_DIRECT_REMAPis selected by the T-Head CMO erratumor by the Zicbom extension support?
Probably, yeah. That was just the conditions for this particular randconfig IIRC.
Quoted 10 lines
Quoted 9 lines
option and
DMA_GLOBAL_POOLis selected by the Andes CMO erratum. Block selecting the RZ/Five config option, and by extensionDMA_GLOBAL_POOL, ifDMA_DIRECT_REMAPhas already been enabled.Fixes 484861e09f3e ("soc: renesas: Kconfig: Select the required configs for RZ/Five SoC")Reported-by Randy Dunlap <[email protected]>Signed-off-by Conor Dooley <[email protected]>
Quoted 14 lines
Quoted 4 lines
Reviewed-by Geert Uytterhoeven <[email protected]>i.e. will queue in renesas-devel for v6.8.
Or should this be queued as a fix for v6.7 instead?
Depends on your opinion on how critical such a fix is I suppose.
Quoted 7 lines
Quoted 3 lines
---
I don't know what the exact fixes tag here is as I did not bisect with the randconfig, so I blamed the one that addedDMA_GLOBAL_POOL.Bisection leads to commit
da323d4640704001("dma-direct: add dependencies toCONFIG_DMA_GLOBAL_POOL") in v6.7-rc1, but that is merely making visible the symptoms, so I think your Fixes tag is fine.
Actually this change cannot be applied (by hand) to the commit in the Fixes tag, as at that time RISCV_DMA_NONCOHERENT still selected DMA_DIRECT_REMAP, thus causing a recursive dependency :-(
So I'm gonna drop the Fixes tag, and just queue it for v6.8. After all it's "just a randconfig failure", and I don't want anyone to encourage backporting any of this NONPORTABLE mess to older stable kernels...
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