Re: [Xen-devel] [PATCHv1] arm: reduce power use by contented spin locks with WFE/SEV

2015-07-31 Thread David Vrabel
On 31/07/15 12:41, Stefano Stabellini wrote: > On Fri, 31 Jul 2015, Julien Grall wrote: >> Hi David, >> >> On 31/07/15 11:52, David Vrabel wrote: >>> On 31/07/15 11:45, David Vrabel wrote: Instead of cpu_relax() while spinning and observing the ticket head, introduce spin_relax() which ex

Re: [Xen-devel] [PATCHv1] arm: reduce power use by contented spin locks with WFE/SEV

2015-07-31 Thread Ian Campbell
On Fri, 2015-07-31 at 12:41 +0100, Stefano Stabellini wrote: > On Fri, 31 Jul 2015, Julien Grall wrote: > > Hi David, > > > > On 31/07/15 11:52, David Vrabel wrote: > > > On 31/07/15 11:45, David Vrabel wrote: > > > > Instead of cpu_relax() while spinning and observing the ticket > > > > head, >

Re: [Xen-devel] [PATCHv1] arm: reduce power use by contented spin locks with WFE/SEV

2015-07-31 Thread Stefano Stabellini
On Fri, 31 Jul 2015, Julien Grall wrote: > Hi David, > > On 31/07/15 11:52, David Vrabel wrote: > > On 31/07/15 11:45, David Vrabel wrote: > >> Instead of cpu_relax() while spinning and observing the ticket head, > >> introduce spin_relax() which executes a WFE instruction. After the > >> ticket

Re: [Xen-devel] [PATCHv1] arm: reduce power use by contented spin locks with WFE/SEV

2015-07-31 Thread Julien Grall
Hi David, On 31/07/15 11:52, David Vrabel wrote: > On 31/07/15 11:45, David Vrabel wrote: >> Instead of cpu_relax() while spinning and observing the ticket head, >> introduce spin_relax() which executes a WFE instruction. After the >> ticket head is changed call spin_signal() to execute an SVE >>

Re: [Xen-devel] [PATCHv1] arm: reduce power use by contented spin locks with WFE/SEV

2015-07-31 Thread David Vrabel
On 31/07/15 11:45, David Vrabel wrote: > Instead of cpu_relax() while spinning and observing the ticket head, > introduce spin_relax() which executes a WFE instruction. After the > ticket head is changed call spin_signal() to execute an SVE > instruction to wake any spinners. > > This should impr

Re: [Xen-devel] [PATCHv1] arm: reduce power use by contented spin locks with WFE/SEV

2015-07-31 Thread Andrew Cooper
On 31/07/15 11:45, David Vrabel wrote: > Instead of cpu_relax() while spinning and observing the ticket head, > introduce spin_relax() which executes a WFE instruction. After the > ticket head is changed call spin_signal() to execute an SVE > instruction to wake any spinners. > > This should impro

[Xen-devel] [PATCHv1] arm: reduce power use by contented spin locks with WFE/SEV

2015-07-31 Thread David Vrabel
Instead of cpu_relax() while spinning and observing the ticket head, introduce spin_relax() which executes a WFE instruction. After the ticket head is changed call spin_signal() to execute an SVE instruction to wake any spinners. This should improve power consumption when locks are contented and