Re: [PATCH v2 2/8] x86/cpu: Get LLC ID for Hygon family 18h model 4h
From: Borislav Petkov
Date: Thu Jun 04 2026 - 11:12:12 EST
On Thu, Jun 04, 2026 at 02:57:17PM +0800, Fu Hao wrote:
> For Hygon processors, the LLC ID comes from fixed bit positions
> regardless of whether SMT is enabled or not. Therefore, perhaps I could
> implement it as follows:
I don't know.
This is different from what you sent but in the end of the day, you have the
hw and you can test.
My goal is to not duplicate code if it can be helped and common functionality
makes sense to be carved out into a separate helper. IOW, keep the code from
becoming a mess.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette