From: Ian Campbell <ian.campbell@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: wei.liu2@citrix.com, andrew.cooper3@citrix.com,
xen-devel@lists.xen.org, julien.grall@citrix.com,
David Vrabel <david.vrabel@citrix.com>,
jbeulich@suse.com
Subject: Re: [PATCH v2] arm: reduce power use by contented spin locks with WFE/SEV
Date: Mon, 3 Aug 2015 12:58:05 +0100 [thread overview]
Message-ID: <1438603085.30740.130.camel@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1508031248000.11337@kaball.uk.xensource.com>
On Mon, 2015-08-03 at 12:51 +0100, Stefano Stabellini wrote:
> On Mon, 3 Aug 2015, Ian Campbell wrote:
> > From: David Vrabel <david.vrabel@citrix.com>
> >
> > Instead of cpu_relax() while spinning and observing the ticket head,
> > introduce arch_lock_relax() which executes a WFE instruction. After
> > the ticket head is changed call arch_lock_signal() to execute an SEV
> > instruction (with the required DSB first) to wake any spinners.
> >
> > This should improve power consumption when locks are contented and
> > spinning.
> >
> > For consistency also move arch_lock_(acquire|release)_barrier to
> > asm/spinlock.h.
> >
> > Booted the result on arm32 (Midway) and arm64 (Mustang). Build test
> > only on amd64.
> >
> > Signed-off-by: David Vrabel <david.vrabel@citrix.com>
> > [ijc: add barrier, rename as arch_lock_*, move arch_lock_*_barrier,
> > test]
> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> > Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> > Cc: Jan Beulich <jbeulich@suse.com>
> > Cc: Andrew Cooper <andrew.cooper3@citrix.com>
>
> I don't know why you are moving arch_lock_(acquire|release)_barrier to
> spinlock.h as part of this patch,
It's literally explained two paragraphs above... "For consistency", i.e. to
put arch_lock_* in the same place.
next prev parent reply other threads:[~2015-08-03 11:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 11:29 [PATCH v2] arm: reduce power use by contented spin locks with WFE/SEV Ian Campbell
2015-08-03 11:51 ` Stefano Stabellini
2015-08-03 11:58 ` Ian Campbell [this message]
2015-08-03 12:00 ` Andrew Cooper
2015-08-11 15:07 ` Jan Beulich
2015-09-15 11:17 ` Ian Campbell
2015-09-15 10:28 ` Ian Campbell
2015-09-15 10:39 ` Stefano Stabellini
2015-09-15 11:17 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1438603085.30740.130.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=david.vrabel@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien.grall@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).