From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out28-221.mail.aliyun.com (out28-221.mail.aliyun.com [115.124.28.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E2B7421257 for ; Thu, 6 Aug 2026 08:50:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.28.221 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786006246; cv=none; b=dWXLMMJ5eq3P2ZVM22DpElRY97fBdlg+IpDRfuYopf2fghzKxLtMlDtoMDgEj/+8YHbGK0aJCxc58oiHinirzIdRGd2WVnRaC4s8ig/9CffG3kPoSDc5kGJQXrcf6sTfoO7rurtFyJ5zTR1JzXQQs1T6d9W7L/ZpIcF2F5ffkrM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786006246; c=relaxed/simple; bh=ua+FFx3FOCxgQJskwfaAfEYz1Y09IQRymjrj201fr3o=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Ky8btrxa2ysoJEdHvdTc1knN0ecWf2SSyjX1Y8hYRsL4yk2Dmast4+aONfBS57h9IxyP1pxI8oJD8mPeiv1dQDuysYorvh19TM2qM2gGFSzLXNy4JdKBmwLTkwdohJZf1BNdoxCOaJMpPcLdhSKmryjoRpBGigYjaA/M/HM//Bo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=open-hieco.net; spf=pass smtp.mailfrom=open-hieco.net; arc=none smtp.client-ip=115.124.28.221 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=open-hieco.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=open-hieco.net X-Alimail-AntiSpam:AC=CONTINUE;BC=0.1096427|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.00795354-0.00126422-0.990782;FP=16691235600310715567|0|0|0|0|-1|-1|-1;HT=maildocker-contentspam033037021130;MF=guochaohong@open-hieco.net;NM=1;PH=DS;RN=6;RT=6;SR=0;TI=SMTPD_---.ifJq.oY_1786006239; Received: from 172.18.26.132(mailfrom:guochaohong@open-hieco.net fp:SMTPD_---.ifJq.oY_1786006239 cluster:ay29) by smtp.aliyun-inc.com; Thu, 06 Aug 2026 16:50:40 +0800 Message-ID: <48c8c8c2-2467-4367-aec6-c36018e2238b@open-hieco.net> Date: Thu, 6 Aug 2026 16:50:39 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] x86/cpu/hygon: Introduce macros for hygon family numbers To: Ingo Molnar Cc: peterz@infradead.org, tim.c.chen@linux.intel.com, bp@alien8.de, x86@kernel.org, linux-kernel@vger.kernel.org References: <20260806003509.1841003-1-guochaohong@open-hieco.net> Content-Language: en-US From: Guo Chaohong In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 + +#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 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 : > > /* 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 > as well. > > Thanks, > > Ingo