Re: [PATCH v5 2/6] soc: fujitsu: Add Kconfig/Makefile to build hardware prefetch control driver

From: Randy Dunlap
Date: Tue Jun 07 2022 - 10:45:26 EST




On 6/7/22 05:05, Kohei Tarumizu wrote:
> diff --git a/drivers/soc/fujitsu/Kconfig b/drivers/soc/fujitsu/Kconfig
> new file mode 100644
> index 000000000000..6c5990b75cc5
> --- /dev/null
> +++ b/drivers/soc/fujitsu/Kconfig
> @@ -0,0 +1,26 @@
> +# SPDX-License-Identifier: GPL-2.0-only
> +
> +menu "Fujitsu SoC drivers"
> +
> +config ALLOW_INCOMPLETE_CACHE_SYSFS
> + bool
> +
> +config A64FX_HWPF_CONTROL
> + tristate "A64FX Hardware Prefetch Control driver"
> + depends on ARM64
> + select ALLOW_INCOMPLETE_CACHE_SYSFS
> + help
> + This provides a sysfs interface to control the Hardware Prefetch
> + behavior for A64FX.
> +
> + A64FX has IMP_PF_STREAM_DETECT_CTRL_EL0, which can control the
> + hardware prefech behavior. If the processor supports this, the

prefetch

> + module can be loaded with the name a64fx-pfctl.
> +
> + Depending on the characteristics of the application, this register
> + parameters improve or degrade performance.
> +
> + Please see Documentation/ABI/testing/sysfs-devices-system-cpu for
> + more information.

--
~Randy