[PATCH 3/3] drm/ttm: disable changing the global caching flags on newer AMD CPUs v2
Borislav Petkov
bp at alien8.de
Wed Aug 20 15:12:05 UTC 2025
On Wed, Aug 20, 2025 at 04:33:13PM +0200, Christian König wrote:
> +#ifdef CONFIG_X86
> + skip_caching_adjustment =
> + (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) &&
> + static_cpu_has(X86_FEATURE_CLFLUSH);
cpu_feature_enabled()
> +#endif
I'd prefer if this would call a function in arch/x86/ which tests those
instead of using x86 artifacts in drivers.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
More information about the Intel-xe
mailing list