mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
This fixes two issues: I truncated the warning's hart ID when porting to the 64-bit hart ID code, and the original code's warning handling could fire on an uninitialized hart ID. The biggest change here is that riscv_cbom_block_size is no longer initialized, as IMO the default isn't sane: there's nothing in the ISA that mandates any specific cache block size, so falling back to one will just silently produce the wrong answer on some systems. This also changes the probing order so the cache block size is known before enabling Zicbom support. CC: [email protected] CC: Andrew Jones <[email protected]> CC: Heiko Stuebner <[email protected]> CC: Atish Patra <[email protected]> Fixes:3aefb2ee5b("riscv: implement Zicbom-based CMO instructions + the t-head variant") Fixes:1631ba1259("riscv: Add support for non-coherent devices using zicbom extension") Reported-by: kernel test robot <[email protected]> Reported-by: Conor Dooley <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]> [Conor: fixed the redefinition errors] Tested-by: Conor Dooley <[email protected]> Signed-off-by: Conor Dooley <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>