Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp662556ybt; Mon, 6 Jul 2020 19:45:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbX20y1xTbzktBpFeAJKpLWMUP4JqT1cI4kTYp4v8phAH/yO11v6foO+p4YySDjtEax4i/ X-Received: by 2002:a50:f058:: with SMTP id u24mr59282354edl.351.1594089952165; Mon, 06 Jul 2020 19:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594089952; cv=none; d=google.com; s=arc-20160816; b=kHaVWZxGgmSN5nglp8aWWYI/5ycxhIxAHxBIwOR4pb+C1Cs+L7YZ5b+YVOS+8dPNYd Qke/Ck8SaKd7JOxglqF0NmB3vqITJn3RbR2fhzy+s+FTXyneP0eGnYKoBx3dgopdjoGm s2GMMFV+x0aMVQrQ4JCKrXK+WlFaO1g3jCTHRfoicE8asHVjoaxU1NazqpGnarCXqAvB +RwipIC85Fa2MrsJDm/5p4VHP63Qkke0Fs3raNjsq2tgGZJaPBLPJUqeT6YXVVsHIYal mpKKyXX1yspSL/AJIBxq2V4j6QVOSzrEPi4BCj4E4o3/UrU3aUlDQoFsWAgoA3AL0LfU 9lTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=qZnYQsyg/3V5m8w/sB0jvNZfEsi3VAT8iVqUjBmfBgg=; b=a2CJXRNltI89IG7Aw/u/ZJSp51Oc6r6k0Vj8SrouywAPYnl0UrZ4BOE7W2x4kEsNUC h8Xn1+DVdby6i7lTXnB1j0WDhJ26NByblnd7urWV/GaxFKZoM9d3Shcmnv1wFTZ2iNgt ABdUxnp3HwbnxJUaMwCOo+kJ+YPug8ecjZkY2RG0ePKdfKDnotKSAPMZwhcHOljHzS6Q bQrLRyxXcUr3gMloZWg5R3CGW3PVi0H+Dlz/wad3Y56/uZbQsd9saQh94dqPHEOxZt53 UZwL7RBwLiGbYZ+yI4gbGUvyzL4cDbP8Gmevhn7igalfTc/p23FBPQzGOOPTaIIVuUK5 LAlw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si13862091ejw.386.2020.07.06.19.45.29; Mon, 06 Jul 2020 19:45:52 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727828AbgGGCon (ORCPT + 99 others); Mon, 6 Jul 2020 22:44:43 -0400 Received: from ZXSHCAS1.zhaoxin.com ([203.148.12.81]:51916 "EHLO ZXSHCAS1.zhaoxin.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726434AbgGGCon (ORCPT ); Mon, 6 Jul 2020 22:44:43 -0400 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHCAS1.zhaoxin.com (10.28.252.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 7 Jul 2020 10:44:39 +0800 Received: from [10.32.56.62] (10.32.56.62) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 7 Jul 2020 10:44:36 +0800 Subject: Re: [PATCH] x86/cpufeatures: Add new Zhaoxin CPU features To: "Luck, Tony" CC: , , , , , , , , , , , , , , , , References: <1593429689-25131-1-git-send-email-TonyWWang-oc@zhaoxin.com> <20200706160228.GA4663@agluck-desk2.amr.corp.intel.com> From: Tony W Wang-oc Message-ID: <3de2dfe9-0b17-d32b-1924-149722ac96fd@zhaoxin.com> Date: Tue, 7 Jul 2020 10:43:16 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20200706160228.GA4663@agluck-desk2.amr.corp.intel.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.32.56.62] X-ClientProxiedBy: ZXSHCAS2.zhaoxin.com (10.28.252.162) To zxbjmbx1.zhaoxin.com (10.29.252.163) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/07/2020 00:02, Luck, Tony wrote: > 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?" No for up to now. Sincerely TonyWWang-oc > > Just adding bits to /proc/cpuinfo is of limited use. > > -Tony > . >