* [PATCH] xen/cpuidle: Reduce logging level for unknown apic_ids
@ 2013-07-15 20:09 Andrew Cooper
2013-07-16 8:03 ` Jan Beulich
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Cooper @ 2013-07-15 20:09 UTC (permalink / raw)
To: Xen-devel; +Cc: Andrew Cooper, Keir Fraser, Jan Beulich
Dom0 uses this hypercall to pass ACPI information to Xen.
It is not very uncommon for more cpus to be listed in the ACPI tables than are
present on the system, particularly on systems with a common BIOS for a 2 and
4 socket server varients.
As Dom0 does not control the number of entries in the ACPI tables, and is
required to pass everything it finds to Xen, reduce the ERR to an INFO.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Keir Fraser <keir@xen.org>
CC: Jan Beulich <JBeulich@suse.com>
---
xen/arch/x86/acpi/cpu_idle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/arch/x86/acpi/cpu_idle.c b/xen/arch/x86/acpi/cpu_idle.c
index 8cb1514..90e0a49 100644
--- a/xen/arch/x86/acpi/cpu_idle.c
+++ b/xen/arch/x86/acpi/cpu_idle.c
@@ -1031,7 +1031,7 @@ long set_cx_pminfo(uint32_t cpu, struct xen_processor_power *power)
cpu_id = get_cpu_id(cpu);
if ( cpu_id == -1 )
{
- printk(XENLOG_ERR "no cpu_id for acpi_id %d\n", cpu);
+ printk(XENLOG_INFO "no cpu_id for acpi_id %d\n", cpu);
return -EINVAL;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] xen/cpuidle: Reduce logging level for unknown apic_ids
2013-07-15 20:09 [PATCH] xen/cpuidle: Reduce logging level for unknown apic_ids Andrew Cooper
@ 2013-07-16 8:03 ` Jan Beulich
0 siblings, 0 replies; 2+ messages in thread
From: Jan Beulich @ 2013-07-16 8:03 UTC (permalink / raw)
To: Andrew Cooper; +Cc: xen-devel, Keir Fraser
>>> On 15.07.13 at 22:09, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
> --- a/xen/arch/x86/acpi/cpu_idle.c
> +++ b/xen/arch/x86/acpi/cpu_idle.c
> @@ -1031,7 +1031,7 @@ long set_cx_pminfo(uint32_t cpu, struct xen_processor_power *power)
> cpu_id = get_cpu_id(cpu);
> if ( cpu_id == -1 )
> {
> - printk(XENLOG_ERR "no cpu_id for acpi_id %d\n", cpu);
> + printk(XENLOG_INFO "no cpu_id for acpi_id %d\n", cpu);
Could we make this a warning on the first hit, and informational
on subsequent ones, so that at the default log level there's at
least some trace of this in the logs? Or alternatively make this
a warning in all cases, but gate other than the first invocation
on the opt_cpu_info flag (which would then need to be moved
out of __cpuinitdata)?
Also, once at it, could you change the message to something
less tied to C variable names, e.g. "No CPU ID for ACPI ID %#x\n"?
Jan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-16 8:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-15 20:09 [PATCH] xen/cpuidle: Reduce logging level for unknown apic_ids Andrew Cooper
2013-07-16 8:03 ` Jan Beulich
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).