Skip to content

Commit 9b59ec8

Browse files
committed
Merge tag 'riscv-for-linus-5.19-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux
Pull RISC-V fixes from Palmer Dabbelt: - A fix to avoid printing a warning when modules do not exercise any errata-dependent behavior and the SiFive errata are enabled. - A fix to the Microchip PFSOC to attach the L2 cache to the CPU nodes. * tag 'riscv-for-linus-5.19-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: riscv: don't warn for sifive erratas in modules riscv: dts: microchip: hook up the mpfs' l2cache
2 parents a8ebfcd + 7fccd72 commit 9b59ec8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

arch/riscv/boot/dts/microchip/mpfs.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
riscv,isa = "rv64imafdc";
5151
clocks = <&clkcfg CLK_CPU>;
5252
tlb-split;
53+
next-level-cache = <&cctrllr>;
5354
status = "okay";
5455

5556
cpu1_intc: interrupt-controller {
@@ -77,6 +78,7 @@
7778
riscv,isa = "rv64imafdc";
7879
clocks = <&clkcfg CLK_CPU>;
7980
tlb-split;
81+
next-level-cache = <&cctrllr>;
8082
status = "okay";
8183

8284
cpu2_intc: interrupt-controller {
@@ -104,6 +106,7 @@
104106
riscv,isa = "rv64imafdc";
105107
clocks = <&clkcfg CLK_CPU>;
106108
tlb-split;
109+
next-level-cache = <&cctrllr>;
107110
status = "okay";
108111

109112
cpu3_intc: interrupt-controller {
@@ -131,6 +134,7 @@
131134
riscv,isa = "rv64imafdc";
132135
clocks = <&clkcfg CLK_CPU>;
133136
tlb-split;
137+
next-level-cache = <&cctrllr>;
134138
status = "okay";
135139
cpu4_intc: interrupt-controller {
136140
#interrupt-cells = <1>;

arch/riscv/errata/sifive/errata.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ void __init_or_module sifive_errata_patch_func(struct alt_entry *begin,
111111
cpu_apply_errata |= tmp;
112112
}
113113
}
114-
if (cpu_apply_errata != cpu_req_errata)
114+
if (stage != RISCV_ALTERNATIVES_MODULE &&
115+
cpu_apply_errata != cpu_req_errata)
115116
warn_miss_errata(cpu_req_errata - cpu_apply_errata);
116117
}

0 commit comments

Comments
 (0)