Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6625212ybf; Fri, 6 Mar 2020 01:15:31 -0800 (PST) X-Google-Smtp-Source: ADFU+vtSebO2Z8T9KfADT/8C1ya5tKBI9S1xfEWOahdldaDaw5iEiObJGQfriIGVk8xekoZJWd1Z X-Received: by 2002:a9d:7756:: with SMTP id t22mr1642430otl.272.1583486131329; Fri, 06 Mar 2020 01:15:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583486131; cv=none; d=google.com; s=arc-20160816; b=WH/EgnLwuVdrqfUk/y+oS97f2+z9XCMMaGvYfz0b+KaHvbQmad2n8ZaRMFaJ7YVeia POmkW244+3abUCXK/lE0kiv+bjiUEgQLW/mdtg5L3h2nllQfKbf6BilDyvTArHFoFR8l CH2xRBYG5TJShY7KQ1OfHq3bChCVcA8r8pdJwRJfXy+9El66ubdK5xZrMQoHzgGkkbNV CEgy705B9dnkckW9Jkj6g+YPwNlxFd2HkOHEtsi4Z7fcxbnZuWbnppAjG/TKwfG5IIK1 4TDBme9PYmUV47NxxaQObkfNMdbGG7+V8B30iFtIdGikLoLUr8crXKBSU346KjMeAMC2 GvEg== 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=KhgMUuY/VXc852uvuw3UA4jzb5zIL9+9BOF9c+ZgLmQ=; b=nLrqLxASAVYjZEs+mBlwEWB2AyZmG8BBfzcLYyrsSHe4tJoccSZKo+KNTRw1XxcQPU buvzxt310/2GAnioryvXKrGAYB/k2ZNLaqY8vrx0hha4xd+Ke052ZkXgM38FyFRuKHq4 vaBbUiW4ramttxsWX0h6g9oSV74hsaennCqFe8zwWnqyl1yQFcbmPPvnzDChG7pVYb5b l9WEVS/9Xf3MWPrNwTazaNKCg6wKnw1vj5zmmbMC1xn9TgypcMTJLsVTpVaj1gRq2W2c xXPO+mFwaKty39/pWsH6y9FUg7BTUmZh/jbDvNB/21kORCxFzUMG6lZELR+QdPhq2WJz sUNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j134si963035oib.52.2020.03.06.01.15.20; Fri, 06 Mar 2020 01:15:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726108AbgCFJO6 (ORCPT + 99 others); Fri, 6 Mar 2020 04:14:58 -0500 Received: from ZXSHCAS2.zhaoxin.com ([203.148.12.82]:28090 "EHLO ZXSHCAS2.zhaoxin.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725855AbgCFJO6 (ORCPT ); Fri, 6 Mar 2020 04:14:58 -0500 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHCAS2.zhaoxin.com (10.28.252.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Fri, 6 Mar 2020 17:14:54 +0800 Received: from [10.32.64.44] (10.32.64.44) 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.1261.35; Fri, 6 Mar 2020 17:14:52 +0800 Subject: Re: [PATCH] x86/Kconfig: Make X86_UMIP to cover Zhaoxin CPUs too To: Sean Christopherson CC: , , , , , , , , , References: <1583288285-2804-1-git-send-email-TonyWWang-oc@zhaoxin.com> <20200304171336.GD21662@linux.intel.com> <20200305155909.GD11500@linux.intel.com> From: Tony W Wang-oc Message-ID: <47df634b-d13b-5a5e-c7a4-e6f674d7fdd0@zhaoxin.com> Date: Fri, 6 Mar 2020 17:14:46 +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: <20200305155909.GD11500@linux.intel.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.32.64.44] X-ClientProxiedBy: ZXSHCAS1.zhaoxin.com (10.28.252.161) 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 05/03/2020 23:59, Sean Christopherson wrote: > On Thu, Mar 05, 2020 at 11:40:02AM +0800, Tony W Wang-oc wrote: >> >> On 05/03/2020 01:13, Sean Christopherson wrote: >>> On Wed, Mar 04, 2020 at 10:18:05AM +0800, Tony W Wang-oc wrote: >>>> New Zhaoxin family 7 CPUs support the UMIP (User-Mode Instruction >>>> Prevention) feature. So, modify X86_UMIP depends on Zhaoxin CPUs too. >>>> >>>> Signed-off-by: Tony W Wang-oc >>>> --- >>>> arch/x86/Kconfig | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>> >>>> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig >>>> index 16a4b39..ca4beb8 100644 >>>> --- a/arch/x86/Kconfig >>>> +++ b/arch/x86/Kconfig >>>> @@ -1877,7 +1877,7 @@ config X86_SMAP >>>> >>>> config X86_UMIP >>>> def_bool y >>>> - depends on CPU_SUP_INTEL || CPU_SUP_AMD >>>> + depends on CPU_SUP_INTEL || CPU_SUP_AMD || CPU_SUP_CENTAUR || CPU_SUP_ZHAOXIN >>> >>> The changelog only mentions Zhaoxin, but this also adds Centaur... >> >> Sorry for this. Some Centaur family 7 CPUs also support the UMIP >> feature, so will resend this patch as a patch series. > > Oooh, can you point me at architectural documentation for Centaur family 7? > I've been trying to track down Centaur documentation for CPUID behavior. > . > Centaur uses CPUID.(EAX=7,ECX=0):ECX[bit 2] indicates UMIP feature, that is compatible with Intel's UMIP implementation. Sincerely TonyWWang-oc