Re: [PATCH v3 2/4] Add enabling of the R3 MWAIT during boot for KNL

2016-10-13 Thread Thomas Gleixner
On Thu, 13 Oct 2016, Grzegorz Andrejczuk wrote: > > +static int phi_r3mwait_disabled; __read_mostly please. > + > /* > * Just in case our CPU detection goes bad, or you have a weird system, > * allow a way to override the automatic disabling of MPX. > @@ -61,6 +63,34 @@ void

Re: [PATCH v3 2/4] Add enabling of the R3 MWAIT during boot for KNL

2016-10-13 Thread Thomas Gleixner
On Thu, 13 Oct 2016, Grzegorz Andrejczuk wrote: > > +static int phi_r3mwait_disabled; __read_mostly please. > + > /* > * Just in case our CPU detection goes bad, or you have a weird system, > * allow a way to override the automatic disabling of MPX. > @@ -61,6 +63,34 @@ void

[PATCH v3 2/4] Add enabling of the R3 MWAIT during boot for KNL

2016-10-13 Thread Grzegorz Andrejczuk
If processor is Intel Xeon Phi we enable user-level mwait feature. Enabling this feature suppreses invalid-opcode error, when MONITOR/MWAIT is called from ring 3. Signed-off-by: Grzegorz Andrejczuk --- arch/x86/kernel/cpu/intel.c | 31

[PATCH v3 2/4] Add enabling of the R3 MWAIT during boot for KNL

2016-10-13 Thread Grzegorz Andrejczuk
If processor is Intel Xeon Phi we enable user-level mwait feature. Enabling this feature suppreses invalid-opcode error, when MONITOR/MWAIT is called from ring 3. Signed-off-by: Grzegorz Andrejczuk --- arch/x86/kernel/cpu/intel.c | 31 +++ 1 file changed, 31