Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp275837ybt; Mon, 6 Jul 2020 09:03:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3WyMhgGa5k2x3XXCV3b3iamZ23FU8B0iakxo8dOmXjP7GNgi7kx5vzB+a0e3sa7zw/LMp X-Received: by 2002:a17:907:724d:: with SMTP id ds13mr42852551ejc.73.1594051423561; Mon, 06 Jul 2020 09:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594051423; cv=none; d=google.com; s=arc-20160816; b=xXUaQ3t3NUw3h8mq+JDfwU7OuYwd2v6MFtKYfpXPKCfQR+BNyxl32v+4ESlVS14BpW 5kWnpAYRPfuqVnXSWhjugXSjMRonr3+x5J0o7P6Gda86Y9fvq/1TEG9AgL+iroOcWNbF 6LJ07KPrfj5B1BDrEBv1h3K10UFGtvM49qKb3epmMCuaLXQvbCavrkjCMpieMvezyqbn E3uhEjo8zy5c+5K6TcrZ7+PQGhaI2DIVWRBTl4Gxwx52ETTM7oLbk1tPR761CbvLhp2H s/uuooryuGq5fEsmELjdCS8GqrxAc+fKHqnzSsAF9CLGPE0PwSKl1mA4ZEI/UDG5VT8b PwJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=pmBT0VqZRXT3tHXVyscSsvYR9+h9fdr2Nxdgs5oH/Fc=; b=atGhPnDKTXIHt7RLhxk1kKfZLNirlunhB41Oz/9flk0CQWxr+JunMYo/LOi1KQLyFx TPYyDJzp/xv85QxyJ5lpBPNjNwzWcx49W7TZU32Jtt4j0nkiHYMuEmEpwyPWTi8pY6El CDr10RqjVWSUiM3gI1AkF8F2HBGd2YFNh3UphFBxvCpsBIKcBM6AICgfUQ8DZ88jMk7v 6vhPQdhDBam+ziOTNNvpVFRF1r2hmABtp3ekQ268CnAeAjXASDWo8Uu/Rn2JMVBvSmYB QaAdXpmd5LzVMDsGWcx3ldVvPAI6L1yaR8anffIBhlKVtCIq0zEsMN+B8mux5Kt7rR61 cRTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qk1si12960622ejb.15.2020.07.06.09.03.19; Mon, 06 Jul 2020 09:03:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729372AbgGFQCa (ORCPT + 99 others); Mon, 6 Jul 2020 12:02:30 -0400 Received: from mga05.intel.com ([192.55.52.43]:51642 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729293AbgGFQC3 (ORCPT ); Mon, 6 Jul 2020 12:02:29 -0400 IronPort-SDR: yP/sMIWlhMHneBzJudBDK3GWYiOcbQdcDd4Bi5TnRRKCyqkGpe46A7QiXvglvhEyD/uL/oBVev 03hXVPml9q1Q== X-IronPort-AV: E=McAfee;i="6000,8403,9673"; a="232293668" X-IronPort-AV: E=Sophos;i="5.75,320,1589266800"; d="scan'208";a="232293668" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2020 09:02:29 -0700 IronPort-SDR: wQhXjhFShJ+pJppDzF9xsnuYuAXcXUNaYt2NI4llKRvNsapbDBGQA/AKuj6Hn+QgwPCIe0MVtT vhMC/+D1+I1g== X-IronPort-AV: E=Sophos;i="5.75,320,1589266800"; d="scan'208";a="388232162" Received: from agluck-desk2.sc.intel.com (HELO agluck-desk2.amr.corp.intel.com) ([10.3.52.68]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2020 09:02:29 -0700 Date: Mon, 6 Jul 2020 09:02:28 -0700 From: "Luck, Tony" To: Tony W Wang-oc Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, pawan.kumar.gupta@linux.intel.com, jpoimboe@redhat.com, peterz@infradead.org, thellstrom@vmware.com, mgross@linux.intel.com, kim.phillips@amd.com, linux-kernel@vger.kernel.org, DavidWang@zhaoxin.com, CooperYan@zhaoxin.com, QiyuanWang@zhaoxin.com, HerryYang@zhaoxin.com, CobeChen@zhaoxin.com Subject: Re: [PATCH] x86/cpufeatures: Add new Zhaoxin CPU features Message-ID: <20200706160228.GA4663@agluck-desk2.amr.corp.intel.com> References: <1593429689-25131-1-git-send-email-TonyWWang-oc@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1593429689-25131-1-git-send-email-TonyWWang-oc@zhaoxin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 29, 2020 at 07:21:29PM +0800, Tony W Wang-oc wrote: > Add new Zhaoxin CPU features for enumeration in /proc/cpuinfo: > SM2, SM2_EN, SM3, SM4, SM3_EN, SM4_EN, PARALLAX, PARALLAX_EN, > TM3, TM3_EN, RNG2, RNG2_EN, PHE2, PHE2_EN, RSA, RSA_EN. > > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 0] SM2 > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 1] SM2_EN > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 4] SM3 SM4 > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 5] SM3_EN SM4_EN > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 16] PARALLAX > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 17] PARALLAX_EN > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 20] TM3 > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 21] TM3_EN > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 22] RNG2 > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 23] RNG2_EN > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 25] PHE2 > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 26] PHE2_EN > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 27] RSA > CPUID.(EAX=0xc0000001,ECX=0):EDX[bit 28] RSA_EN > > SM2, SM3, SM4 are Chinese Cipher Security algorithm. > PARALLAX is a feature that automatically adjusts processors's voltage > as a function of temperature. > TM3 is Zhaoxin CPU Thermal Monitor v3. > RNG2 is Zhaoxin Random Number Generation v2. > PHE2 is Zhaoxin Padlock Hash Engine v2. > RSA is Zhaoxin hardware support for RSA algorithm. Boris is on vacation, so I'll ask the question that he would ask if he were here ... "Are there some follow-up patches that use all of these feature bits?" Just adding bits to /proc/cpuinfo is of limited use. -Tony