From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Peng Subject: Re: [PATCH v7 1/3] x86: Support enable CDP by boot parameter and add get CDP status Date: Wed, 14 Oct 2015 10:02:27 +0800 Message-ID: <20151014020227.GA4427@pengc-linux.bj.intel.com> References: <1444726426-10567-1-git-send-email-he.chen@linux.intel.com> <1444726426-10567-2-git-send-email-he.chen@linux.intel.com> Reply-To: Chao Peng Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZmBSk-0005I2-4W for xen-devel@lists.xenproject.org; Wed, 14 Oct 2015 02:06:42 +0000 Content-Disposition: inline In-Reply-To: <1444726426-10567-2-git-send-email-he.chen@linux.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: He Chen Cc: wei.liu2@citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, jbeulich@suse.com, xen-devel@lists.xenproject.org, keir@xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Oct 13, 2015 at 04:53:44PM +0800, He Chen wrote: > Add boot parameter `psr=cdp` to enable CDP at boot time. > Intel Code/Data Prioritization (CDP) feature is based on CAT. Note that > cos_max would be half when CDP is on. struct psr_cat_cbm is extended to > support CDP operation. Extend psr_get_cat_l3_info sysctl to get CDP > status. > > Signed-off-by: He Chen > Reviewed-by: Andrew Cooper > --- > Changes in v7: > * write CDP data mask (mask1) before turning CDP on > * check CDP status before clear enabled bit in function cat_cpu_fini Reviewed-by: Chao Peng