Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5838451ybf; Thu, 5 Mar 2020 08:00:18 -0800 (PST) X-Google-Smtp-Source: ADFU+vvE5OCKlhgAoaw39FaDA5Zto5xHZYiGGLzEdn3M0WmPT2V0Ix6wtqEeKBFSPfNjbuXaHg/Y X-Received: by 2002:aca:abd4:: with SMTP id u203mr5935868oie.104.1583424018390; Thu, 05 Mar 2020 08:00:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583424018; cv=none; d=google.com; s=arc-20160816; b=TKB8jKCdq+vrl2CB1BDpejSvmLFrxMIDBaUQDlPWNX6r8eTa/WkCBQSJLGTqYJaNjE QoWLl2q/wYfSxReePMwPWUl2O6cK/NXBmY3gR92EuODzKUyM7uQTgGcWSPG4901BC9bn roQt71gvCLYmWGXX9Wr8LsUr93MaE3R+HbChZgnbjOyeqbeRbflJmwM484qNoL5cQvfv U7EbnOP+AQkjsB82EuwnzB9ZaJPsChMJg/jKBhj4YEs9zGoFOvu5PDUQkEEy+sZKfdYU s04/HZFahnaYwlm96F6K/EiVjXtX+Gi90IE2l4b1atdg08HWyV1rBaK8mEK1pKNOEDVQ /18A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=FAhduqbaJN4p/u9FL8Ya/doFg+d7IlPsM4dVPUM8xYQ=; b=Bh9PYiQ+W58+7odGalMQZOzWeaPEeUNcSAEqo4KMRDWjAH58AXECkT8hA4J9QBbXFI nDGwgkXp2l+IMEk1YHAQZc7GO368eugBti6g2oN8jdjXTCddHWgAMctQoKfpmVN7f4Gp +GRG//5Eq8Nj++rnj/4f+P6+WdUZu/7i57Yz5Zb7hyL8DGcRmHVIgUERImczastf62VS vp2zSiLI5iVht+EBeDyouZdKKlH5reLEKiRAcRTeKLR4UQwis785bIQJMslsno71z6Kt 0VYh1JIMpGcKb/zP12YSXNodTyykoFHj+Jpwszp7R42NbFiqqGWXNrDVqTpda5ap9w3X D/gQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m16si2894164oig.129.2020.03.05.08.00.05; Thu, 05 Mar 2020 08:00:18 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727079AbgCEP7M (ORCPT + 99 others); Thu, 5 Mar 2020 10:59:12 -0500 Received: from mga02.intel.com ([134.134.136.20]:42219 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726915AbgCEP7L (ORCPT ); Thu, 5 Mar 2020 10:59:11 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Mar 2020 07:59:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,518,1574150400"; d="scan'208";a="352382578" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.202]) by fmsmga001.fm.intel.com with ESMTP; 05 Mar 2020 07:59:10 -0800 Date: Thu, 5 Mar 2020 07:59:09 -0800 From: Sean Christopherson To: Tony W Wang-oc Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, DavidWang@zhaoxin.com, CooperYan@zhaoxin.com, QiyuanWang@zhaoxin.com, HerryYang@zhaoxin.com Subject: Re: [PATCH] x86/Kconfig: Make X86_UMIP to cover Zhaoxin CPUs too Message-ID: <20200305155909.GD11500@linux.intel.com> References: <1583288285-2804-1-git-send-email-TonyWWang-oc@zhaoxin.com> <20200304171336.GD21662@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.