From: Peter Maydell <peter.maydell@linaro.org>
To: Andrew Jones <drjones@redhat.com>
Cc: "QEMU Developers" <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [Qemu-devel] [PATCH] [RFT] target/arm/arm-powerctl: Fix psci info return values
Date: Fri, 3 Mar 2017 18:06:58 +0000 [thread overview]
Message-ID: <CAFEAcA8e-DX5OFPmND-9Oercr5vt6eW-tmDWcD7C81+T_uksXA@mail.gmail.com> (raw)
In-Reply-To: <20170303123232.4967-1-drjones@redhat.com>
On 3 March 2017 at 12:32, Andrew Jones <drjones@redhat.com> wrote:
> The power state spec section 5.1.5 AFFINITY_INFO defines the
> affinity info return values as
>
> 0 ON
> 1 OFF
> 2 ON_PENDING
>
> I grepped QEMU for power_state to ensure that no assumptions
> of OFF=0 were being made.
>
> Signed-off-by: Andrew Jones <drjones@redhat.com>
>
> ---
>
> I found this with the yet to be committed kvm-unit-tests test
> https://lists.cs.columbia.edu/pipermail/kvmarm/2017-February/023820.html
>
> I've added the RFT because I didn't bother to confirm Linux is still
> happy (although I can't see why it wouldn't be happier).
Nice catch. Without this patch:
root@genericarmv8:~# echo 0 > /sys/devices/system/cpu/cpu1/online
[ 112.797621] CPU1: shutdown
[ 112.822447] psci: Retrying again to check for CPU kill
[ 112.841306] psci: Retrying again to check for CPU kill
[ 112.861303] psci: Retrying again to check for CPU kill
[ 112.881346] psci: Retrying again to check for CPU kill
[ 112.901302] psci: Retrying again to check for CPU kill
[ 112.921301] psci: Retrying again to check for CPU kill
[ 112.941303] psci: Retrying again to check for CPU kill
[ 112.961302] psci: Retrying again to check for CPU kill
[ 112.981350] psci: Retrying again to check for CPU kill
[ 113.001368] psci: Retrying again to check for CPU kill
[ 113.001789] psci: CPU1 may not have shut down cleanly
(AFFINITY_INFO reports 0)
[ 113.002429] CPU1 may not have shut down cleanly: -110
With the patch:
root@genericarmv8:~# echo 0 > /sys/devices/system/cpu/cpu1/online
[ 83.303563] CPU1: shutdown
[ 83.308003] psci: CPU1 killed.
Applied to target-arm.next for 2.9.
thanks
-- PMM
prev parent reply other threads:[~2017-03-03 18:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-03 12:32 [Qemu-devel] [PATCH] [RFT] target/arm/arm-powerctl: Fix psci info return values Andrew Jones
2017-03-03 18:06 ` Peter Maydell [this message]
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=CAFEAcA8e-DX5OFPmND-9Oercr5vt6eW-tmDWcD7C81+T_uksXA@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=drjones@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.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).