[PATCH v2 5/8] arm64: Create cache sysfs directory without ACPI PPTT for hardware prefetch control

Rob Herring robh at kernel.org
Wed Mar 30 15:14:49 PDT 2022


On Fri, Mar 11, 2022 at 4:23 AM Kohei Tarumizu
<tarumizu.kohei at fujitsu.com> wrote:
>
> This patch create a cache sysfs directory without ACPI PPTT if the
> CONFIG_HWPF_CONTROL is true.
>
> Hardware prefetch control driver need cache sysfs directory and cache
> level/type information. In ARM processor, these information can be
> obtained from the register even without PPTT.

What registers? CCSIDR register is no longer used. You must use DT or PPTT.

> Therefore, we set the
> cpu_map_populated to true to create cache sysfs directory if the
> machine doesn't have PPTT.
>
> Signed-off-by: Kohei Tarumizu <tarumizu.kohei at fujitsu.com>
> ---
>  arch/arm64/kernel/cacheinfo.c | 29 +++++++++++++++++++++++++++++
>  1 file changed, 29 insertions(+)



More information about the linux-arm-kernel mailing list