Re: [Xen-devel] [PATCH v8 06/24] x86: refactor psr: implement get hw info flow.

2017-03-10 Thread Yi Sun
On 17-03-10 01:57:57, Jan Beulich wrote: > >>> On 10.03.17 at 02:43, wrote: > > On 17-03-08 08:15:33, Jan Beulich wrote: > >> >>> On 15.02.17 at 09:49, wrote: > >> > --- a/xen/arch/x86/psr.c > >> > +++ b/xen/arch/x86/psr.c > >> > @@ -84,6 +84,7 @@ enum psr_feat_type { > >> > PSR_SOCKET_L3_CA

Re: [Xen-devel] [PATCH v8 06/24] x86: refactor psr: implement get hw info flow.

2017-03-10 Thread Jan Beulich
>>> On 10.03.17 at 02:43, wrote: > On 17-03-08 08:15:33, Jan Beulich wrote: >> >>> On 15.02.17 at 09:49, wrote: >> > --- a/xen/arch/x86/psr.c >> > +++ b/xen/arch/x86/psr.c >> > @@ -84,6 +84,7 @@ enum psr_feat_type { >> > PSR_SOCKET_L3_CAT = 0, >> > PSR_SOCKET_L3_CDP, >> > PSR_SOCKE

Re: [Xen-devel] [PATCH v8 06/24] x86: refactor psr: implement get hw info flow.

2017-03-09 Thread Yi Sun
On 17-03-08 08:15:33, Jan Beulich wrote: > >>> On 15.02.17 at 09:49, wrote: > > --- a/xen/arch/x86/psr.c > > +++ b/xen/arch/x86/psr.c > > @@ -84,6 +84,7 @@ enum psr_feat_type { > > PSR_SOCKET_L3_CAT = 0, > > PSR_SOCKET_L3_CDP, > > PSR_SOCKET_L2_CAT, > > +PSR_SOCKET_UNKNOWN = 0xF

Re: [Xen-devel] [PATCH v8 06/24] x86: refactor psr: implement get hw info flow.

2017-03-08 Thread Jan Beulich
>>> On 15.02.17 at 09:49, wrote: > --- a/xen/arch/x86/psr.c > +++ b/xen/arch/x86/psr.c > @@ -84,6 +84,7 @@ enum psr_feat_type { > PSR_SOCKET_L3_CAT = 0, > PSR_SOCKET_L3_CDP, > PSR_SOCKET_L2_CAT, > +PSR_SOCKET_UNKNOWN = 0x, Any reason to use this value, instead of just the n

Re: [Xen-devel] [PATCH v8 06/24] x86: refactor psr: implement get hw info flow.

2017-02-28 Thread Roger Pau Monné
On Wed, Feb 15, 2017 at 04:49:21PM +0800, Yi Sun wrote: > This patch implements get HW info flow including L3 CAT callback > function. > > It also changes sysctl interface to make it more general. > > With this patch, 'psr-hwinfo' can work for L3 CAT. > > Signed-off-by: Yi Sun > Reviewed-by: Ko

Re: [Xen-devel] [PATCH v8 06/24] x86: refactor psr: implement get hw info flow.

2017-02-26 Thread Wei Liu
On Wed, Feb 15, 2017 at 04:49:21PM +0800, Yi Sun wrote: [...] > /* L3 CAT functions implementation. */ > static void l3_cat_init_feature(struct cpuid_leaf regs, > struct feat_node *feat, > @@ -225,8 +247,22 @@ static unsigned int l3_cat_get_cos_max(const struct >

[Xen-devel] [PATCH v8 06/24] x86: refactor psr: implement get hw info flow.

2017-02-15 Thread Yi Sun
This patch implements get HW info flow including L3 CAT callback function. It also changes sysctl interface to make it more general. With this patch, 'psr-hwinfo' can work for L3 CAT. Signed-off-by: Yi Sun Reviewed-by: Konrad Rzeszutek Wilk --- xen/arch/x86/psr.c| 75 +