[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6d2f1d21-635d-d359-ee2c-ce0665f519d7@zhaoxin.com>
Date: Mon, 11 Jan 2021 18:54:12 +0800
From: Tony W Wang-oc <TonyWWang-oc@...oxin.com>
To: Dave Hansen <dave.hansen@...el.com>, <herbert@...dor.apana.org.au>,
<davem@...emloft.net>, <tglx@...utronix.de>, <mingo@...hat.com>,
<bp@...en8.de>, <x86@...nel.org>, <hpa@...or.com>,
<tony.luck@...el.com>, <seanjc@...gle.com>, <fenghua.yu@...el.com>,
<thomas.lendacky@....com>, <kyung.min.park@...el.com>,
<kim.phillips@....com>, <mgross@...ux.intel.com>,
<peterz@...radead.org>, <krish.sadhukhan@...cle.com>,
<liam.merwick@...cle.com>, <mlevitsk@...hat.com>,
<reinette.chatre@...el.com>, <babu.moger@....com>,
<linux-crypto@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: <TimGuo-oc@...oxin.com>, <CooperYan@...oxin.com>,
<QiyuanWang@...oxin.com>, <HerryYang@...oxin.com>,
<CobeChen@...oxin.com>, <SilviaZhao@...oxin.com>
Subject: Re: [PATCH v1 2/3] x86/cpu: Set low performance CRC32C flag on some
Zhaoxin CPUs
On 07/01/2021 23:52, Dave Hansen wrote:
> On 1/6/21 10:19 PM, Tony W Wang-oc wrote:
>> + /*
>> + * These CPUs declare support SSE4.2 instruction sets but
>> + * having low performance CRC32C instruction implementation.
>> + */
>> + if (c->x86 == 0x6 || (c->x86 == 0x7 && c->x86_model <= 0x3b))
>> + set_cpu_cap(c, X86_FEATURE_CRC32C);
>> }
>
> On the Intel side, we've tried to move away from open-coded model
> numbers. Say another CPU is released that has a microarchitecture close
> to 0x3b, but has a model of 0x3c. It's a *LOT* easier to grep for
> INTEL_FAM6_NEHALEM (or whatever) than 0x3c. See:
>
> arch/x86/include/asm/intel-family.h
>
> for examples.
> .
>
Got it, thanks for your suggestion.
Sincerely
Tonyw
Powered by blists - more mailing lists