linux/arch
Palmer Dabbelt c6c901b7d9
Merge patch series "riscv: Extension parsing fixes"
Charlie Jenkins <charlie@rivosinc.com> says:

This series contains two minor fixes for the extension parsing in
cpufeature.c.

Some T-Head boards without vector 1.0 support report "v" in the isa
string in their DT which will cause the kernel to run vector code. The
code to blacklist "v" from these boards was doing so by using
riscv_cached_mvendorid() which has not been populated at the time of
extension parsing. This fix instead greedily reads the mvendorid CSR of
the boot hart to determine if the cpu is from T-Head.

The other fix is for an incorrect indexing bug. riscv extensions
sometimes imply other extensions. When adding these "subset" extensions
to the hardware capabilities array, they need to be checked if they are
valid. The current code only checks if the extension that is including
other extensions is valid and not the subset extensions.

These patches were previously included in:
https://lore.kernel.org/lkml/20240420-dev-charlie-support_thead_vector_6_9-v3-0-67cff4271d1d@rivosinc.com/

* b4-shazam-merge:
  riscv: cpufeature: Fix extension subset checking
  riscv: cpufeature: Fix thead vector hwcap removal

Link: https://lore.kernel.org/r/20240502-cpufeature_fixes-v4-0-b3d1a088722d@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-05-22 16:12:58 -07:00
..
alpha The usual shower of singleton fixes and minor series all over MM, 2024-05-19 09:21:03 -07:00
arc asm-generic cleanups for 6.10 2024-05-20 15:18:34 -07:00
arm asm-generic cleanups for 6.10 2024-05-20 15:18:34 -07:00
arm64 asm-generic cleanups for 6.10 2024-05-20 15:18:34 -07:00
csky The usual shower of singleton fixes and minor series all over MM, 2024-05-19 09:21:03 -07:00
hexagon
loongarch LoongArch changes for v6.10 2024-05-22 09:43:07 -07:00
m68k m68knommu: updates and fixes for v6.10 2024-05-21 12:05:40 -07:00
microblaze Microblaze patches for 6.10-rc1 2024-05-22 09:31:01 -07:00
mips asm-generic cleanups for 6.10 2024-05-20 15:18:34 -07:00
nios2 Kbuild updates for v6.10 2024-05-18 12:39:20 -07:00
openrisc
parisc asm-generic cleanups for 6.10 2024-05-20 15:18:34 -07:00
powerpc asm-generic cleanups for 6.10 2024-05-20 15:18:34 -07:00
riscv Merge patch series "riscv: Extension parsing fixes" 2024-05-22 16:12:58 -07:00
s390 more s390 updates for 6.10 merge window 2024-05-21 12:09:36 -07:00
sh asm-generic cleanups for 6.10 2024-05-20 15:18:34 -07:00
sparc asm-generic cleanups for 6.10 2024-05-20 15:18:34 -07:00
um asm-generic cleanups for 6.10 2024-05-20 15:18:34 -07:00
x86 pci-v6.10-changes 2024-05-21 10:09:28 -07:00
xtensa The usual shower of singleton fixes and minor series all over MM, 2024-05-19 09:21:03 -07:00
.gitignore
Kconfig