Re: [PATCH v4 4/5] x86/amd_node: Skip SMN setup on Hygon Fam18h models 0x04-0x08
From: Lin Wang
Date: Wed Sep 02 2026 - 02:26:14 EST
On 9/2/2026 10:48 AM, Borislav Petkov wrote:
On Tue, Sep 01, 2026 at 03:16:59PM +0800, Lin Wang wrote:
@@ -252,6 +252,18 @@ static int __init amd_smn_init(void)
if (!cpu_feature_enabled(X86_FEATURE_ZEN))
This driver should exit on Hygon right here.
Why doesn't it do that?
I know why - you set X86_FEATURE_ZEN.
Why?
What do you really need it for?
Hi Boris,
Thanks for pointing this out.
X86_FEATURE_ZEN has been set in init_hygon() since the initial Hygon
CPU support. I knew that it made amd_smn_init() run on Hygon, but I
treated it as part of the existing CPU setup and did not revisit
whether Hygon still needed it.
However, removing it would change other existing code paths that use
this feature. That would need a separate audit and hardware testing,
which I did not do for this series. I am therefore not sure that
changing the CPU capability here only to avoid an explicit Hygon check
in the SMN code would be safe.
Please let me know how you would prefer this to be handled.
Thanks & Br;
Lin