From: Palmer Dabbelt Date: Thu, 29 Feb 2024 18:20:19 +0000 (-0800) Subject: Merge patch series "riscv: cbo.zero fixes" X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e2b6bc28ec45e2670da4f0c719f9de101bf22bc6;p=linux.git Merge patch series "riscv: cbo.zero fixes" Samuel Holland says: This series fixes a couple of issues related to using the cbo.zero instruction in userspace. The first patch fixes a bug where the wrong enable bit gets set if the kernel is running in M-mode. The remaining patches fix a bug where the enable bit gets reset to its default value after a nonretentive idle state. I have hardware which reproduces this: Before this series: $ tools/testing/selftests/riscv/hwprobe/cbo TAP version 13 1..3 ok 1 Zicboz block size # Zicboz block size: 64 Illegal instruction After applying this series: $ tools/testing/selftests/riscv/hwprobe/cbo TAP version 13 1..3 ok 1 Zicboz block size # Zicboz block size: 64 ok 2 cbo.zero ok 3 cbo.zero check # Totals: pass:3 fail:0 xfail:0 xpass:0 skip:0 error:0 * b4-shazam-merge: riscv: Save/restore envcfg CSR during CPU suspend riscv: Add a custom ISA extension for the [ms]envcfg CSR riscv: Fix enabling cbo.zero when running in M-mode Link: https://lore.kernel.org/r/20240228065559.3434837-1-samuel.holland@sifive.com Signed-off-by: Palmer Dabbelt --- e2b6bc28ec45e2670da4f0c719f9de101bf22bc6