Re: [PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-02-26 Thread Fenghua Yu
On Wed, Feb 20, 2019 at 10:37:27PM -0800, Andy Lutomirski wrote: > On Wed, Feb 20, 2019 at 7:44 PM Tao Xu wrote: > > > > From: Fenghua Yu > > > > > From patchwork Wed Jan 16 21:18:41 2019 > > Content-Type: text/plain; charset="utf-8" > > [snipped more stuff like this] > > What happened here?

Re: [PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-02-26 Thread Fenghua Yu
On Sun, Feb 24, 2019 at 11:45:35AM -0800, Andy Lutomirski wrote: > On Thu, Feb 21, 2019 at 2:57 PM Yu, Fenghua wrote: > > > > > From: Fenghua Yu [mailto:fenghua...@intel.com] > > > On Wed, Feb 20, 2019 at 10:37:27PM -0800, Andy Lutomirski wrote: > > > Or to simplify the situation, how about we

Re: [PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-02-24 Thread Andy Lutomirski
On Thu, Feb 21, 2019 at 2:57 PM Yu, Fenghua wrote: > > > From: Fenghua Yu [mailto:fenghua...@intel.com] > > On Wed, Feb 20, 2019 at 10:37:27PM -0800, Andy Lutomirski wrote: > > Or to simplify the situation, how about we still use zero as global max wait > > time (i.e. no limitation for global

Re: [PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-02-21 Thread Tao Xu
On 2/22/2019 3:24 AM, Yu, Fenghua wrote: On Wed, Feb 20, 2019 at 10:37:27PM -0800, Andy Lutomirski wrote: On Wed, Feb 20, 2019 at 7:44 PM Tao Xu wrote: From: Fenghua Yu From patchwork Wed Jan 16 21:18:41 2019 Content-Type: text/plain; charset="utf-8" [snipped more stuff like this]

RE: [PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-02-21 Thread Yu, Fenghua
> From: Fenghua Yu [mailto:fenghua...@intel.com] > On Wed, Feb 20, 2019 at 10:37:27PM -0800, Andy Lutomirski wrote: > Or to simplify the situation, how about we still use zero as global max wait > time (i.e. no limitation for global wait time) as implemented in this patch > set? User can still

Re: [PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-02-21 Thread Fenghua Yu
On Wed, Feb 20, 2019 at 10:37:27PM -0800, Andy Lutomirski wrote: > On Wed, Feb 20, 2019 at 7:44 PM Tao Xu wrote: > > > > From: Fenghua Yu > > > > > From patchwork Wed Jan 16 21:18:41 2019 > > Content-Type: text/plain; charset="utf-8" > > [snipped more stuff like this] > > What happened here?

Re: [PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-02-21 Thread Peter Zijlstra
On Wed, Feb 20, 2019 at 10:37:27PM -0800, Andy Lutomirski wrote: > On Wed, Feb 20, 2019 at 7:44 PM Tao Xu wrote: > > +static ssize_t umwait_enable_c0_2_show(struct device *dev, > > + struct device_attribute *attr, > > +

Re: [PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-02-20 Thread Andy Lutomirski
On Wed, Feb 20, 2019 at 7:44 PM Tao Xu wrote: > > From: Fenghua Yu > > From patchwork Wed Jan 16 21:18:41 2019 > Content-Type: text/plain; charset="utf-8" [snipped more stuff like this] What happened here? > +/* Return value that will be used to set umwait control MSR */ > +static inline u32

[PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-01-16 Thread Fenghua Yu
UMONITOR, UMWAIT, and TPAUSE are a set of user wait instructions. UMONITOR arms address monitoring hardware using an address. A store to an address within the specified address range triggers the monitoring hardware to wake up the processor waiting in umwait. UMWAIT instructs the processor to

[PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-01-16 Thread Fenghua Yu
UMONITOR, UMWAIT, and TPAUSE are a set of user wait instructions. UMONITOR arms address monitoring hardware using an address. A store to an address within the specified address range triggers the monitoring hardware to wake up the processor waiting in umwait. UMWAIT instructs the processor to