Re: [PATCH v6: 4/4] x86/cpufeature: Add R3MWAIT to CPU features

2016-10-27 Thread Borislav Petkov
On Thu, Oct 27, 2016 at 04:46:54PM +, Andrejczuk, Grzegorz wrote: > I was reusing Word 3 as you suggested in patch rev. 1. There was idea > to use init_scattered_cpuid_features. I meant this word 3: /* Other features, Linux-defined mapping, word 3 */ /* This range is used for feature bits

Re: [PATCH v6: 4/4] x86/cpufeature: Add R3MWAIT to CPU features

2016-10-27 Thread Borislav Petkov
On Thu, Oct 27, 2016 at 04:46:54PM +, Andrejczuk, Grzegorz wrote: > I was reusing Word 3 as you suggested in patch rev. 1. There was idea > to use init_scattered_cpuid_features. I meant this word 3: /* Other features, Linux-defined mapping, word 3 */ /* This range is used for feature bits

RE: [PATCH v6: 4/4] x86/cpufeature: Add R3MWAIT to CPU features

2016-10-27 Thread Andrejczuk, Grzegorz
> On Thu, Oct 27, 2016 at 04:02:03PM +0200, Grzegorz Andrejczuk wrote: > > Add cpu feature for ring 3 monitor/mwait. > > Set HWCAP2 1st bit during init. > > > > Signed-off-by: Grzegorz Andrejczuk > > --- > > arch/x86/include/asm/cpufeatures.h | 2 ++ > >

RE: [PATCH v6: 4/4] x86/cpufeature: Add R3MWAIT to CPU features

2016-10-27 Thread Andrejczuk, Grzegorz
> On Thu, Oct 27, 2016 at 04:02:03PM +0200, Grzegorz Andrejczuk wrote: > > Add cpu feature for ring 3 monitor/mwait. > > Set HWCAP2 1st bit during init. > > > > Signed-off-by: Grzegorz Andrejczuk > > --- > > arch/x86/include/asm/cpufeatures.h | 2 ++ > > arch/x86/kernel/cpu/intel.c| 4

Re: [PATCH v6: 4/4] x86/cpufeature: Add R3MWAIT to CPU features

2016-10-27 Thread Borislav Petkov
On Thu, Oct 27, 2016 at 04:02:03PM +0200, Grzegorz Andrejczuk wrote: > Add cpu feature for ring 3 monitor/mwait. > Set HWCAP2 1st bit during init. > > Signed-off-by: Grzegorz Andrejczuk > --- > arch/x86/include/asm/cpufeatures.h | 2 ++ >

Re: [PATCH v6: 4/4] x86/cpufeature: Add R3MWAIT to CPU features

2016-10-27 Thread Borislav Petkov
On Thu, Oct 27, 2016 at 04:02:03PM +0200, Grzegorz Andrejczuk wrote: > Add cpu feature for ring 3 monitor/mwait. > Set HWCAP2 1st bit during init. > > Signed-off-by: Grzegorz Andrejczuk > --- > arch/x86/include/asm/cpufeatures.h | 2 ++ > arch/x86/kernel/cpu/intel.c| 4 > 2 files

[PATCH v6: 4/4] x86/cpufeature: Add R3MWAIT to CPU features

2016-10-27 Thread Grzegorz Andrejczuk
Add cpu feature for ring 3 monitor/mwait. Set HWCAP2 1st bit during init. Signed-off-by: Grzegorz Andrejczuk --- arch/x86/include/asm/cpufeatures.h | 2 ++ arch/x86/kernel/cpu/intel.c| 4 2 files changed, 6 insertions(+) diff --git

[PATCH v6: 4/4] x86/cpufeature: Add R3MWAIT to CPU features

2016-10-27 Thread Grzegorz Andrejczuk
Add cpu feature for ring 3 monitor/mwait. Set HWCAP2 1st bit during init. Signed-off-by: Grzegorz Andrejczuk --- arch/x86/include/asm/cpufeatures.h | 2 ++ arch/x86/kernel/cpu/intel.c| 4 2 files changed, 6 insertions(+) diff --git a/arch/x86/include/asm/cpufeatures.h