From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: xen-devel@lists.xenproject.org, boris.ostrovsky@oracle.com,
david.vrabel@citrix.com
Subject: Re: [PATCH] xen-acpi-processor: Don't display errors when we get -ENOSYS
Date: Fri, 25 Apr 2014 16:19:15 +0100 [thread overview]
Message-ID: <535A7CF3.706@citrix.com> (raw)
In-Reply-To: <1398438655-25665-1-git-send-email-konrad.wilk@oracle.com>
On 25/04/14 16:10, Konrad Rzeszutek Wilk wrote:
> which is a perfectly legal error. This can be triggered if the
> user has booted Xen with the no-cpuidle parameter.
>
> Reported-by-and-Tested-by: Don Slutz <dslutz@verizon.com>
> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> ---
It would be more appropriate for Xen to return -ENODEV if it understands
the ACPI hypercalls, but can't do anything with them.
That cat is however out of the bag.
~Andrew
> drivers/xen/xen-acpi-processor.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/xen/xen-acpi-processor.c b/drivers/xen/xen-acpi-processor.c
> index 82358d1..59fc190 100644
> --- a/drivers/xen/xen-acpi-processor.c
> +++ b/drivers/xen/xen-acpi-processor.c
> @@ -127,7 +127,7 @@ static int push_cxx_to_hypervisor(struct acpi_processor *_pr)
> pr_debug(" C%d: %s %d uS\n",
> cx->type, cx->desc, (u32)cx->latency);
> }
> - } else if (ret != -EINVAL)
> + } else if ((ret != -EINVAL) && (ret != -ENOSYS))
> /* EINVAL means the ACPI ID is incorrect - meaning the ACPI
> * table is referencing a non-existing CPU - which can happen
> * with broken ACPI tables. */
> @@ -259,7 +259,7 @@ static int push_pxx_to_hypervisor(struct acpi_processor *_pr)
> (u32) perf->states[i].power,
> (u32) perf->states[i].transition_latency);
> }
> - } else if (ret != -EINVAL)
> + } else if ((ret != -EINVAL) && (ret != -ENOSYS))
> /* EINVAL means the ACPI ID is incorrect - meaning the ACPI
> * table is referencing a non-existing CPU - which can happen
> * with broken ACPI tables. */
prev parent reply other threads:[~2014-04-25 15:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-25 15:10 [PATCH] xen-acpi-processor: Don't display errors when we get -ENOSYS Konrad Rzeszutek Wilk
2014-04-25 15:19 ` Andrew Cooper [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=535A7CF3.706@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=konrad.wilk@oracle.com \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.