From: Guo Chaohong <guochaohong@open-hieco.net>
To: Ingo Molnar <mingo@kernel.org>
Cc: peterz@infradead.org, tim.c.chen@linux.intel.com, bp@alien8.de,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] x86/cpu/hygon: Introduce macros for hygon family numbers
Date: Thu, 6 Aug 2026 16:50:39 +0800 [thread overview]
Message-ID: <48c8c8c2-2467-4367-aec6-c36018e2238b@open-hieco.net> (raw)
In-Reply-To: <anREO7BbXUjUshO4@gmail.com>
I apologize for forgetting the error you pointed out in your previous review. I will correct it,
diff --git a/arch/x86/include/asm/hygon-family.h b/arch/x86/include/asm/hygon-family.h
new file mode 100644
index 000000000000..68e5af310980
--- /dev/null
+++ b/arch/x86/include/asm/hygon-family.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_X86_HYGON_FAMILY_H
+#define _ASM_X86_HYGON_FAMILY_H
+
+/*
+ * The helpers to support Hygon CPU specific code path.
+ */
+
+#include <asm/processor.h>
+
+#define HFM(_family, _model) VFM_MAKE(X86_VENDOR_HYGON, _family, _model)
+
+#define HYGON_F18_M04 HFM(0x18, 4)
+#define HYGON_F18_M06 HFM(0x18, 6)
+#define HYGON_F18_M07 HFM(0x18, 7)
+
+#endif /* _ASM_X86_HYGON_FAMILY_H */
thanks,
-Chaohong
On 8/6/2026 4:22 PM, Ingo Molnar wrote:
>
> * Chaohong Guo <guochaohong@open-hieco.net> wrote:
>
>> --- /dev/null
>> +++ b/arch/x86/include/asm/hygon-family.h
>> @@ -0,0 +1,17 @@
>> +/* SPDX-License-Identifier: GPL-2.0 */
>> +/*
>> + * The helpers to support Hygon CPU specific code path.
>> + */
>> +
>> +#ifndef _ASM_X86_HYGON_FAMILY_H
>> +#define _ASM_X86_HYGON_FAMILY_H
>
> Why is the header guard ordering different from <asm/intel-family.h>:
>
> /* SPDX-License-Identifier: GPL-2.0 */
> #ifndef _ASM_X86_INTEL_FAMILY_H
> #define _ASM_X86_INTEL_FAMILY_H
>
> /*
> * "Big Core" Processors (Branded as Core, Xeon, etc...)
> *
>
> Please follow the standard header guard ordering in
> <asm/hygon-family.h> as well.
>
> Thanks,
>
> Ingo
prev parent reply other threads:[~2026-08-06 8:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-06 0:35 Chaohong Guo
2026-08-06 0:35 ` [PATCH v2 2/2] sched/numa: Apply remote socket distance averaging for Hygon CPUs Chaohong Guo
2026-08-06 3:15 ` Zhan Xusheng
2026-08-06 5:25 ` Guo Chaohong
2026-08-06 8:22 ` [PATCH v2 1/2] x86/cpu/hygon: Introduce macros for hygon family numbers Ingo Molnar
2026-08-06 8:50 ` Guo Chaohong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48c8c8c2-2467-4367-aec6-c36018e2238b@open-hieco.net \
--to=guochaohong@open-hieco.net \
--cc=bp@alien8.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
--cc=tim.c.chen@linux.intel.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®