Skip to content
Unverified Commit 604f32ea authored by Yunhui Cui's avatar Yunhui Cui Committed by Palmer Dabbelt
Browse files

riscv: cacheinfo: initialize cacheinfo's level and type from ACPI PPTT



Before cacheinfo can be built correctly, we need to initialize level
and type. Since RISC-V currently does not have a register group that
describes cache-related attributes like ARM64, we cannot obtain them
directly, so now we obtain cache leaves from the ACPI PPTT table
(acpi_get_cache_info()) and set the cache type through split_levels.

Suggested-by: Jeremy Linton's avatarJeremy Linton <jeremy.linton@arm.com>
Suggested-by: Sudeep Holla's avatarSudeep Holla <sudeep.holla@arm.com>
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Reviewed-by: default avatarSunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Jeremy Linton's avatarJeremy Linton <jeremy.linton@arm.com>
Reviewed-by: Sudeep Holla's avatarSudeep Holla <sudeep.holla@arm.com>
Signed-off-by: default avatarYunhui Cui <cuiyunhui@bytedance.com>
Link: https://lore.kernel.org/r/20240617131425.7526-2-cuiyunhui@bytedance.com


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent ee3fab10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment