Re: [PATCH 11/12] x86/mm: enable AMD translation cache extensions

From: Rik van Riel
Date: Fri Jan 10 2025 - 15:43:45 EST


On Fri, 2025-01-10 at 20:58 +0100, Borislav Petkov wrote:
> On Fri, Jan 10, 2025 at 02:45:27PM -0500, Rik van Riel wrote:
> > Is this the right location for that code, or
> > do I need to move it somewhere else to
> > guarantee TCE gets enabled on every CPU?
>
> Didn't I answer this already?
>
> https://lore.kernel.org/r/20250102115237.GGZ3Z-BUqBauHEfB10@fat_crate.local
>
> And you should put it in init_amd() as it runs on every CPU.
>
Thank you for telling me about init_amd().

I wasn't sure where in amd.c to put it.

--
All Rights Reversed.