]> Git Repo - linux.git/commitdiff
riscv: check for kernel config option in t-head memory types errata
authorHeiko Stuebner <[email protected]>
Mon, 5 Sep 2022 11:10:27 +0000 (13:10 +0200)
committerPalmer Dabbelt <[email protected]>
Thu, 13 Oct 2022 15:46:30 +0000 (08:46 -0700)
The t-head variant of page-based memory types should also check first
for the enabled kernel config option.

Fixes: a35707c3d850 ("riscv: add memory-type errata for T-Head")
Signed-off-by: Heiko Stuebner <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
Reviewed-by: Guo Ren <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
arch/riscv/errata/thead/errata.c

index a6f4bd8ccf3f8fb489cc7571d6fc60c7e1a00334..902e1245282196a43d3ac3fb264ed5d14f35fce8 100644 (file)
@@ -17,6 +17,9 @@
 static bool errata_probe_pbmt(unsigned int stage,
                              unsigned long arch_id, unsigned long impid)
 {
+       if (!IS_ENABLED(CONFIG_ERRATA_THEAD_PBMT))
+               return false;
+
        if (arch_id != 0 || impid != 0)
                return false;
 
This page took 0.054901 seconds and 4 git commands to generate.