Linux 3.4 dom0 kernel error loading xen-acpi-processor: Input/output error
Hello,
Does anyone know why loading xen-acpi-processor driver fails like this?:
# modprobe xen-acpi-processor FATAL: Error inserting xen_acpi_processor (/lib/modules/3.4.32-6.el6.centos.alt.x86_64/kernel/drivers/xen/xen-acpi-processor.ko): Input/output error
Using "modprobe -v" doesn't provide any more information about the problem. Also there's nothing in dom0 kernel dmesg.
Hardware is Dell R510 server with Intel Xeon 5600 series CPU. Xen 4.2.1.
Kernel is based on 3.4.32 (so the upstream kernel.org longterm stable version) with some additional Xen patches backported from later upstream kernels. Any tips how to troubleshoot this?
-- Pasi
Quoted 10 lines · Pasi Kärkkäinen
Hello,
Does anyone know why loading xen-acpi-processor driver fails like this?:
# modprobe xen-acpi-processor FATAL: Error inserting xen_acpi_processor (/lib/modules/3.4.32-6.el6.centos.alt.x86_64/kernel/drivers/xen/xen-acpi-processor.ko): Input/output errorUsing "modprobe -v" doesn't provide any more information about the problem. Also there's nothing in dom0 kernel dmesg.
Quoted 6 lines
Hardware is Dell R510 server with Intel Xeon 5600 series CPU. Xen 4.2.1.
Kernel is based on 3.4.32 (so the upstream kernel.org longterm stable version) with some additional Xen patches backported from later upstream kernels. Any tips how to troubleshoot this?
Rebuild the module and add this
drivers/xen/xen-acpi-processor.c +1 -0
@@ -16,6 +16,7 @@* more details. * */ +#define DEBUG 1#include <linux/cpumask.h> #include <linux/cpufreq.h>
That should help in figuring it out.
Quoted 3 lines
-- Pasi
Quoted 33 lines · Konrad Rzeszutek Wilk
Quoted 10 lines · Pasi Kärkkäinen
Hello,
Does anyone know why loading xen-acpi-processor driver fails like this?:
# modprobe xen-acpi-processor FATAL: Error inserting xen_acpi_processor (/lib/modules/3.4.32-6.el6.centos.alt.x86_64/kernel/drivers/xen/xen-acpi-processor.ko): Input/output errorUsing "modprobe -v" doesn't provide any more information about the problem. Also there's nothing in dom0 kernel dmesg.
Quoted 6 lines
Hardware is Dell R510 server with Intel Xeon 5600 series CPU. Xen 4.2.1.
Kernel is based on 3.4.32 (so the upstream kernel.org longterm stable version) with some additional Xen patches backported from later upstream kernels. Any tips how to troubleshoot this?
Rebuild the module and add this
drivers/xen/xen-acpi-processor.c +1
-0@@ -16,6 +16,7 @@* more details. * */ +#define DEBUG 1#include <linux/cpumask.h> #include <linux/cpufreq.h>
Quoted 2 lines
That should help in figuring it out.
Ok, I'll do that.
Thanks!
-- Pasi
Quoted 34 lines · Pasi Kärkkäinen
Quoted 33 lines · Konrad Rzeszutek Wilk
Quoted 10 lines · Pasi Kärkkäinen
Hello,
Does anyone know why loading xen-acpi-processor driver fails like this?:
# modprobe xen-acpi-processor FATAL: Error inserting xen_acpi_processor (/lib/modules/3.4.32-6.el6.centos.alt.x86_64/kernel/drivers/xen/xen-acpi-processor.ko): Input/output errorUsing "modprobe -v" doesn't provide any more information about the problem. Also there's nothing in dom0 kernel dmesg.
Quoted 6 lines
Hardware is Dell R510 server with Intel Xeon 5600 series CPU. Xen 4.2.1.
Kernel is based on 3.4.32 (so the upstream kernel.org longterm stable version) with some additional Xen patches backported from later upstream kernels. Any tips how to troubleshoot this?
Rebuild the module and add this
drivers/xen/xen-acpi-processor.c +1
-0@@ -16,6 +16,7 @@* more details. * */ +#define DEBUG 1#include <linux/cpumask.h> #include <linux/cpufreq.h>
Quoted 6 lines
Quoted 2 lines
That should help in figuring it out.
Ok, I'll do that.
Thanks!
The other thing is that I've been running with this compiled as '=y' instead of '=m'!
That should temporarily fix it for you, but this does need to be fixed.
Quoted 40 lines · Konrad Rzeszutek Wilk
Quoted 39 lines · Pasi Kärkkäinen
Quoted 33 lines · Konrad Rzeszutek Wilk
Quoted 10 lines · Pasi Kärkkäinen
Hello,
Does anyone know why loading xen-acpi-processor driver fails like this?:
# modprobe xen-acpi-processor FATAL: Error inserting xen_acpi_processor (/lib/modules/3.4.32-6.el6.centos.alt.x86_64/kernel/drivers/xen/xen-acpi-processor.ko): Input/output errorUsing "modprobe -v" doesn't provide any more information about the problem. Also there's nothing in dom0 kernel dmesg.
Quoted 6 lines
Hardware is Dell R510 server with Intel Xeon 5600 series CPU. Xen 4.2.1.
Kernel is based on 3.4.32 (so the upstream kernel.org longterm stable version) with some additional Xen patches backported from later upstream kernels. Any tips how to troubleshoot this?
Rebuild the module and add this
drivers/xen/xen-acpi-processor.c +1
-0@@ -16,6 +16,7 @@* more details. * */ +#define DEBUG 1#include <linux/cpumask.h> #include <linux/cpufreq.h> Quoted 2 lines
That should help in figuring it out.
Ok, I'll do that.
Quoted 7 lines
Quoted 1 line
Thanks!
The other thing is that I've been running with this compiled as '=y' instead of '=m'!
That should temporarily fix it for you, but this does need to be fixed.
Actually it seems I'm getting the exact same problem even with CONFIG_XEN_ACPI_PROCESSOR=y.
I guess I'll have to dig deeper into the ACPI code..
-- Pasi
Quoted 33 lines · Konrad Rzeszutek Wilk
Quoted 10 lines · Pasi Kärkkäinen
Hello,
Does anyone know why loading xen-acpi-processor driver fails like this?:
# modprobe xen-acpi-processor FATAL: Error inserting xen_acpi_processor (/lib/modules/3.4.32-6.el6.centos.alt.x86_64/kernel/drivers/xen/xen-acpi-processor.ko): Input/output errorUsing "modprobe -v" doesn't provide any more information about the problem. Also there's nothing in dom0 kernel dmesg.
Quoted 6 lines
Hardware is Dell R510 server with Intel Xeon 5600 series CPU. Xen 4.2.1.
Kernel is based on 3.4.32 (so the upstream kernel.org longterm stable version) with some additional Xen patches backported from later upstream kernels. Any tips how to troubleshoot this?
Rebuild the module and add this
drivers/xen/xen-acpi-processor.c +1
-0@@ -16,6 +16,7 @@* more details. * */ +#define DEBUG 1#include <linux/cpumask.h> #include <linux/cpufreq.h>
Quoted 2 lines
That should help in figuring it out.
This is what I get with DEBUG enabled:
# modprobe -v xen-acpi-processor insmod /lib/modules/3.4.32-6.dbg1.el6.x86_64/kernel/drivers/xen/xen-acpi-processor.ko FATAL: Error inserting xen_acpi_processor (/lib/modules/3.4.32-6.dbg1.el6.x86_64/kernel/drivers/xen/xen-acpi-processor.ko): Input/output error
in dom0 kernel dmesg:
xen-acpi-processor: Max ACPI ID: 24
.. and that's all.
Adding more debug options on the kernel cmdline I see this:
initcall xen_acpi_processor_init+0x0/0x6b0 [xen_acpi_processor] returned -5 after 67 usecs initcall xen_acpi_processor_init+0x0/0x6b0 [xen_acpi_processor] returned with error code -5
And enabling some ACPI debug options:
processor_perflib-0430 [00] processor_get_performa: ACPI-based processor performance control unavailable
I added a bunch of more calls to pr_debug() in xen_acpi_processor_init() and it seems:
/* Do initialization in ACPI core. It is OK to fail here. */
(void)acpi_processor_preregister_performance(acpi_perf_data);
for_each_possible_cpu(i) {
struct acpi_processor_performance *perf;
perf = per_cpu_ptr(acpi_perf_data, i);
rc = acpi_processor_register_performance(perf, i);
if (rc)
goto err_out;
}"goto err_out" is the path taken from here..
It seems acpi_processor_register_performance() returns -EIO.
.. which means in acpi_processor_register_performance()
if (acpi_processor_get_performance_info(pr)) {
pr->performance = NULL;
mutex_unlock(&performance_mutex);
return -EIO;
}It seems acpi_processor_get_performance_info() returns -ENODEV:
if (ACPI_FAILURE(status)) {
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
"ACPI-based processor performance control unavailable\n"));
return -ENODEV;
}Does this ring any bells?
Thanks,
-- Pasi
Quoted 84 lines · Pasi Kärkkäinen
Quoted 33 lines · Konrad Rzeszutek Wilk
Quoted 10 lines · Pasi Kärkkäinen
Hello,
Does anyone know why loading xen-acpi-processor driver fails like this?:
# modprobe xen-acpi-processor FATAL: Error inserting xen_acpi_processor (/lib/modules/3.4.32-6.el6.centos.alt.x86_64/kernel/drivers/xen/xen-acpi-processor.ko): Input/output errorUsing "modprobe -v" doesn't provide any more information about the problem. Also there's nothing in dom0 kernel dmesg.
Quoted 6 lines
Hardware is Dell R510 server with Intel Xeon 5600 series CPU. Xen 4.2.1.
Kernel is based on 3.4.32 (so the upstream kernel.org longterm stable version) with some additional Xen patches backported from later upstream kernels. Any tips how to troubleshoot this?
Rebuild the module and add this
drivers/xen/xen-acpi-processor.c +1
-0@@ -16,6 +16,7 @@* more details. * */ +#define DEBUG 1#include <linux/cpumask.h> #include <linux/cpufreq.h> Quoted 2 lines
That should help in figuring it out.
This is what I get with DEBUG enabled:
# modprobe -v xen-acpi-processor insmod /lib/modules/3.4.32-6.dbg1.el6.x86_64/kernel/drivers/xen/xen-acpi-processor.ko FATAL: Error inserting xen_acpi_processor (/lib/modules/3.4.32-6.dbg1.el6.x86_64/kernel/drivers/xen/xen-acpi-processor.ko): Input/output errorin dom0 kernel dmesg:
xen-acpi-processor: Max ACPI ID: 24.. and that's all.
Adding more debug options on the kernel cmdline I see this:
initcallxen_acpi_processor_init+0x0/0x6b0[xen_acpi_processor] returned -5 after 67 usecs initcallxen_acpi_processor_init+0x0/0x6b0[xen_acpi_processor] returned with error code -5And enabling some ACPI debug options:
processor_perflib-0430 [00]processor_get_performa: ACPI-based processor performance control unavailableI added a bunch of more calls to
pr_debug()inxen_acpi_processor_init()and it seems:/* Do initialization in ACPI core. It is OK to fail here. */ (void)acpi_processor_preregister_performance(acpi_perf_data); for_each_possible_cpu(i) { struct acpi_processor_performance *perf; perf = per_cpu_ptr(acpi_perf_data, i); rc = acpi_processor_register_performance(perf, i); if (rc) goto err_out; }"goto
err_out" is the path taken from here..
It seemsacpi_processor_register_performance()returns-EIO... which means in
acpi_processor_register_performance()if (acpi_processor_get_performance_info(pr)) { pr->performance = NULL; mutex_unlock(&performance_mutex); return -EIO; }It seems
acpi_processor_get_performance_info()returns-ENODEV:
Quoted 9 lines
if (ACPI_FAILURE(status)) { ACPI_DEBUG_PRINT((ACPI_DB_INFO, "ACPI-based processor performance control unavailable\n")); return -ENODEV; }Does this ring any bells?
so in acpi_processor_get_performance_info():
status = acpi_get_handle(pr->handle, "_PCT", &handle);
if (ACPI_FAILURE(status)) {
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
"ACPI-based processor performance control unavailable\n"));
return -ENODEV;
}This is the issue I'm hitting.acpi_get_handle() returns an error so -ENODEV is returned from acpi_processor_get_performance_info().
Debugging acpi_get_handle() reveals the pathname[] ("_PCT") passed isn't valid for some reason, so acpi_ns_valid_root_prefix(pathname[0]) returns false, and a bunch of code is skipped in acpi_get_handle().
Later in acpi_get_handle(): status = acpi_ns_get_node() shows this in dmesg:
nsutils-0363 [82933056] [00] ns_build_internal_name: Returning [ffff8800040f6240] (rel) "_PCT"
utmutex-0261 [82933056] [00] ut_acquire_mutex : Thread 82933056 attempting to acquire Mutex [ACPI_MTX_Namespace]
osl-1058 [82933056] [00] os_wait_semaphore : Waiting for semaphore[ffff880039c01aa0|1|65535]
osl-1077 [82933056] [00] os_wait_semaphore : Acquired semaphore[ffff880039c01aa0|1|65535] utmutex-0269 [82933056] [00] ut_acquire_mutex : Thread 82933056 acquired Mutex [ACPI_MTX_Namespace]
nsaccess-0398 [82933056] [00] ns_lookup : Searching relative to prefix scope [CPU1] (ffff880039699240)
nsaccess-0510 [82933056] [00] ns_lookup : Simple Pathname (1 segment, Flags=2)
nsdump-0087 [82933056] [00] ns_print_pathname : [_PCT]
nssearch-0114 [82933056] [00] ns_search_one_scope : Searching \_PR_.CPU1 (ffff880039699240) For [_PCT] (Untyped)
nssearch-0168 [82933056] [00] ns_search_one_scope : Name [_PCT] (Untyped) not found in search in scope [CPU1] ffff880039699240 first child ffff8800396a4e48
nssearch-0379 [82933056] [00] ns_search_and_enter : _PCT Not found in ffff880039699240 [Not adding]
nsaccess-0571 [82933056] [00] ns_lookup : Name [_PCT] not found in scope [CPU1] ffff880039699240
nsutils-0743 [82933056] [00] ns_get_node : _PCT, AE_NOT_FOUND
utmutex-0300 [82933056] [00] ut_release_mutex : Thread 82933056 releasing Mutex [ACPI_MTX_Namespace]
osl-1097 [82933056] [00] os_signal_semaphore : Signaling semaphore[ffff880039c01aa0|1].. and thus ACPI_SUCCESS(status) is false. _PCT was not found. Any ideas why the Performance Control stuff can't be found?
Thanks,
-- Pasi
Quoted 128 lines · Pasi Kärkkäinen
Quoted 84 lines · Pasi Kärkkäinen
Quoted 33 lines · Konrad Rzeszutek Wilk
Quoted 10 lines · Pasi Kärkkäinen
Hello,
Does anyone know why loading xen-acpi-processor driver fails like this?:
# modprobe xen-acpi-processor FATAL: Error inserting xen_acpi_processor (/lib/modules/3.4.32-6.el6.centos.alt.x86_64/kernel/drivers/xen/xen-acpi-processor.ko): Input/output errorUsing "modprobe -v" doesn't provide any more information about the problem. Also there's nothing in dom0 kernel dmesg.
Quoted 6 lines
Hardware is Dell R510 server with Intel Xeon 5600 series CPU. Xen 4.2.1.
Kernel is based on 3.4.32 (so the upstream kernel.org longterm stable version) with some additional Xen patches backported from later upstream kernels. Any tips how to troubleshoot this?
Rebuild the module and add this
drivers/xen/xen-acpi-processor.c +1
-0@@ -16,6 +16,7 @@* more details. * */ +#define DEBUG 1#include <linux/cpumask.h> #include <linux/cpufreq.h> Quoted 2 lines
That should help in figuring it out.
This is what I get with DEBUG enabled:
# modprobe -v xen-acpi-processor insmod /lib/modules/3.4.32-6.dbg1.el6.x86_64/kernel/drivers/xen/xen-acpi-processor.ko FATAL: Error inserting xen_acpi_processor (/lib/modules/3.4.32-6.dbg1.el6.x86_64/kernel/drivers/xen/xen-acpi-processor.ko): Input/output errorin dom0 kernel dmesg:
xen-acpi-processor: Max ACPI ID: 24.. and that's all.
Adding more debug options on the kernel cmdline I see this:
initcallxen_acpi_processor_init+0x0/0x6b0[xen_acpi_processor] returned -5 after 67 usecs initcallxen_acpi_processor_init+0x0/0x6b0[xen_acpi_processor] returned with error code -5And enabling some ACPI debug options:
processor_perflib-0430 [00]processor_get_performa: ACPI-based processor performance control unavailableI added a bunch of more calls to
pr_debug()inxen_acpi_processor_init()and it seems:/* Do initialization in ACPI core. It is OK to fail here. */ (void)acpi_processor_preregister_performance(acpi_perf_data); for_each_possible_cpu(i) { struct acpi_processor_performance *perf; perf = per_cpu_ptr(acpi_perf_data, i); rc = acpi_processor_register_performance(perf, i); if (rc) goto err_out; }"goto
err_out" is the path taken from here..
It seemsacpi_processor_register_performance()returns-EIO... which means in
acpi_processor_register_performance()if (acpi_processor_get_performance_info(pr)) { pr->performance = NULL; mutex_unlock(&performance_mutex); return -EIO; }It seems
acpi_processor_get_performance_info()returns-ENODEV:Quoted 9 lines
if (ACPI_FAILURE(status)) { ACPI_DEBUG_PRINT((ACPI_DB_INFO, "ACPI-based processor performance control unavailable\n")); return -ENODEV; }Does this ring any bells?
so in
acpi_processor_get_performance_info():status =
acpi_get_handle(pr->handle, "_PCT", &handle);if (ACPI_FAILURE(status)) { ACPI_DEBUG_PRINT((ACPI_DB_INFO, "ACPI-based processor performance control unavailable\n")); return -ENODEV; }This is the issue I'm hitting.
acpi_get_handle()returns an error so-ENODEVis returned fromacpi_processor_get_performance_info().Debugging
acpi_get_handle()reveals the pathname[] ("_PCT") passed isn't valid for some reason, soacpi_ns_valid_root_prefix(pathname[0])returns false, and a bunch of code is skipped inacpi_get_handle().Later in
acpi_get_handle(): status =acpi_ns_get_node()shows this in dmesg:nsutils-0363 [82933056] [00]
ns_build_internal_name: Returning [ffff8800040f6240] (rel) "_PCT"utmutex-0261 [82933056] [00] ut_acquire_mutex : Thread 82933056 attempting to acquire Mutex [ACPI_MTX_Namespace] osl-1058 [82933056] [00] os_wait_semaphore : Waiting for semaphore[ffff880039c01aa0|1|65535] osl-1077 [82933056] [00] os_wait_semaphore : Acquired semaphore[ffff880039c01aa0|1|65535] utmutex-0269 [82933056] [00] ut_acquire_mutex : Thread 82933056 acquired Mutex [ACPI_MTX_Namespace] nsaccess-0398 [82933056] [00] ns_lookup : Searching relative to prefix scope [CPU1] (ffff880039699240) nsaccess-0510 [82933056] [00] ns_lookup : Simple Pathname (1 segment, Flags=2) nsdump-0087 [82933056] [00] ns_print_pathname : [_PCT] nssearch-0114 [82933056] [00] ns_search_one_scope : Searching \_PR_.CPU1 (ffff880039699240) For [_PCT] (Untyped) nssearch-0168 [82933056] [00] ns_search_one_scope : Name [_PCT] (Untyped) not found in search in scope [CPU1] ffff880039699240 first child ffff8800396a4e48 nssearch-0379 [82933056] [00] ns_search_and_enter : _PCT Not found in ffff880039699240 [Not adding] nsaccess-0571 [82933056] [00] ns_lookup : Name [_PCT] not found in scope [CPU1] ffff880039699240 nsutils-0743 [82933056] [00] ns_get_node : _PCT, AE_NOT_FOUND utmutex-0300 [82933056] [00] ut_release_mutex : Thread 82933056 releasing Mutex [ACPI_MTX_Namespace] osl-1097 [82933056] [00] os_signal_semaphore : Signaling semaphore[ffff880039c01aa0|1]
Quoted 2 lines
.. and thus
ACPI_SUCCESS(status)is false._PCTwas not found. Any ideas why the Performance Control stuff can't be found?
No, but I usually do one more thing to check my assumptions. I extract the SSDT and DSDT:
cat /sys/firmware/acpi/DSDT > /tmp/dsdt
iasl -d /tmp/dsdt
and search for the _PCT to make sure they are actually there.
Independetly of this I was looking at seeing why on v3.9-rc1 it would not work, and found out that this patch:
d5aaffa9dd531c978c6f3fea06a2972653bd7fc8
Author: Dirk Brandewie <[email protected]> Date: Thu Jan 17 16:22:21 2013 +0000
cpufreq: handle cpufreq being disabled for all exported function.
makes acpi_processor_register_performance return -22. Which is b/c
824 if (!(acpi_processor_ppc_status & PPC_REGISTERED)) {
and that is b/c:
227 void acpi_processor_ppc_init(void)
228 {
229 if (!cpufreq_register_notifier
230 (&acpi_ppc_notifier_block, CPUFREQ_POLICY_NOTIFIER))
231 acpi_processor_ppc_status |= PPC_REGISTERED;
232 else
233 printk(KERN_DEBUG
234 "Warning: Processor Platform Limit not supported.\n");
235 }
'cpufreq_register_notifier' fails and acpi_processor_ppc_status is not set to PPC_REGISTERED.
Quoted 11 lines
Thanks,
-- Pasi
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 3 lines
.. and thus
ACPI_SUCCESS(status)is false._PCTwas not found. Any ideas why the Performance Control stuff can't be found?No, but I usually do one more thing to check my assumptions. I extract the SSDT and DSDT:
cat
/sys/firmware/acpi/DSDT>/tmp/dsdt
In dom0:
cat: /sys/firmware/acpi/DSDT: No such file or directory
# ls /sys/firmware/acpi/ interrupts pm_profile tables
Quoted 3 lines
iasl -d
/tmp/dsdt
and search for the_PCTto make sure they are actually there.
I don't seem to have /sys/firmware/acpi/DSDT on baremetal either.. I wonder what's going on..
'acpidump' from pmtools seems to be able to dump the DSDT. (on baremetal):
# acpidump --table DSDT -b -o dsdt.bin # iasl -d dsdt.bin
Intel ACPI Component Architecture
AML Disassembler version 20090123 [Oct 23 2012]
Copyright (C) 2000 - 2009 Intel Corporation
Supports ACPI Specification Revision 3.0a
Loading Acpi table from file dsdt.bin
Acpi table [DSDT] successfully installed and loaded Pass 1 parse of [DSDT]
Pass 2 parse of [DSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)
..............................................................................................................................................................................................................................................................................................................................................................
Parsing completed
Disassembly completed, written to "dsdt.dsl"
# grep -i pct dsdt.dsl | wc -l 0
# acpidump --table SSDT -b -o ssdt.bin # iasl -d ssdt.bin
Intel ACPI Component Architecture
AML Disassembler version 20090123 [Oct 23 2012]
Copyright (C) 2000 - 2009 Intel Corporation
Supports ACPI Specification Revision 3.0a
Loading Acpi table from file ssdt.bin
Acpi table [SSDT] successfully installed and loaded Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)
................................................................................................................................................................................................................................................................................................................................................................................................................................................
Parsing completed
Disassembly completed, written to "ssdt.dsl"
# grep -i pct ssdt.dsl | wc -l 0
So uhm.. is this a BIOS/firmware bug?
-- Pasi
Quoted 12 lines · Pasi Kärkkäinen
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 3 lines
.. and thus
ACPI_SUCCESS(status)is false._PCTwas not found. Any ideas why the Performance Control stuff can't be found?No, but I usually do one more thing to check my assumptions. I extract the SSDT and DSDT:
cat
/sys/firmware/acpi/DSDT>/tmp/dsdt
Quoted 7 lines
In dom0:
cat:
/sys/firmware/acpi/DSDT: No such file or directory# ls /sys/firmware/acpi/ interrupts pm_profile tables
Actually the correct path is: /sys/firmware/acpi/tables/DSDT So the acpi tables are there.
.. but the problem is there's no _PCT info in them.
-- Pasi
Quoted 17 lines · Pasi Kärkkäinen
Quoted 16 lines · Pasi Kärkkäinen
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 3 lines
.. and thus
ACPI_SUCCESS(status)is false._PCTwas not found. Any ideas why the Performance Control stuff can't be found?No, but I usually do one more thing to check my assumptions. I extract the SSDT and DSDT:
cat
/sys/firmware/acpi/DSDT>/tmp/dsdtIn dom0:
cat:
/sys/firmware/acpi/DSDT: No such file or directory
Quoted 9 lines
Quoted 3 lines
# ls /sys/firmware/acpi/ interrupts pm_profile tablesActually the correct path is:
/sys/firmware/acpi/tables/DSDTSo the acpi tables are there... but the problem is there's no
_PCTinfo in them.
.. so on which hardware is xen-acpi-processor driver required?
Is the actual problem that I don't have _PCT because it's not required/supported on my hw, and thus I don't need the whole xen-acpi-processor driver?
I checked the Xeon 5600 CPU, and also Ivy Bridge i7, and there's no _PCT on either one..
-- Pasi
Quoted 28 lines · Pasi Kärkkäinen
Quoted 17 lines · Pasi Kärkkäinen
Quoted 16 lines · Pasi Kärkkäinen
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 3 lines
.. and thus
ACPI_SUCCESS(status)is false._PCTwas not found. Any ideas why the Performance Control stuff can't be found?No, but I usually do one more thing to check my assumptions. I extract the SSDT and DSDT:
cat
/sys/firmware/acpi/DSDT>/tmp/dsdtIn dom0:
cat:
/sys/firmware/acpi/DSDT: No such file or directoryQuoted 9 lines
Quoted 3 lines
# ls /sys/firmware/acpi/ interrupts pm_profile tablesActually the correct path is:
/sys/firmware/acpi/tables/DSDTSo the acpi tables are there... but the problem is there's no
_PCTinfo in them.
Quoted 6 lines
.. so on which hardware is xen-acpi-processor driver required?
Is the actual problem that I don't have
_PCTbecause it's not required/supported on my hw, and thus I don't need the whole xen-acpi-processor driver?I checked the Xeon 5600 CPU, and also Ivy Bridge i7, and there's no
_PCTon either one..
I always forget which of _P* are important. I think _PPC, _PSS and _PCD are the crucial ones. The _PCT is the thermal one - which I think are usually found on laptops.
In your case then .. lets go back to the start - the driver failed with -EIO and it was v3.4.x kernel? Now that I've figured out the regression with v3.9 I can take a look at this.
Quoted 3 lines
-- Pasi
Quoted 9 lines · Konrad Rzeszutek Wilk
Quoted 9 lines
Quoted 6 lines
Actually the correct path is:
/sys/firmware/acpi/tables/DSDTSo the acpi tables are there... but the problem is there's no
_PCTinfo in them... so on which hardware is xen-acpi-processor driver required?
Quoted 9 lines
Quoted 4 lines
Is the actual problem that I don't have
_PCTbecause it's not required/supported on my hw, and thus I don't need the whole xen-acpi-processor driver?I checked the Xeon 5600 CPU, and also Ivy Bridge i7, and there's no
_PCTon either one..I always forget which of _P* are important. I think
_PPC,_PSSand_PCDare the crucial ones. The_PCTis the thermal one - which I think are usually found on laptops.
I don't seem to have _PCT on my Ivy Bridge i7 laptop..
Quoted 4 lines
In your case then .. lets go back to the start - the driver failed with
-EIOand it was v3.4.x kernel? Now that I've figured out the regression with v3.9 I can take a look at this.
Ok.
So the problem for me with Linux 3.4.32 kernel is "modprobe xen-acpi-processor" fails:
initcall xen_acpi_processor_init+0x0/0x6b0 [xen_acpi_processor] returned with error code -5
The error deeper down in the ACPI internals is:
processor_perflib-0430 [00] processor_get_performa: ACPI-based processor performance control unavailable
Function call path is this:
xen_acpi_processor_init()
acpi_processor_register_performance(perf, i) <-- returns -EIO
acpi_processor_get_performance_info(pr) <-- returns -ENODEV and prints the error to dmesg
acpi_get_handle(pr->handle, "_PCT", &handle);
acpi_ns_get_node() <-- doesn't find _PCT
goto err_out; <-- modprobe xen-acpi-processor fails
The CPU in question is:
Intel(R) Xeon(R) CPU L5640
ACPI DSDT.dsl is here:
http://pasik.reaktio.net/dell-r510-acpi-dsdt.dsl
-- Pasi
Quoted 27 lines · Pasi Kärkkäinen
Quoted 9 lines · Konrad Rzeszutek Wilk
Quoted 9 lines
Quoted 6 lines
Actually the correct path is:
/sys/firmware/acpi/tables/DSDTSo the acpi tables are there... but the problem is there's no
_PCTinfo in them... so on which hardware is xen-acpi-processor driver required?
Quoted 9 lines
Quoted 4 lines
Is the actual problem that I don't have
_PCTbecause it's not required/supported on my hw, and thus I don't need the whole xen-acpi-processor driver?I checked the Xeon 5600 CPU, and also Ivy Bridge i7, and there's no
_PCTon either one..I always forget which of _P* are important. I think
_PPC,_PSSand_PCDare the crucial ones. The_PCTis the thermal one - which I think are usually found on laptops.I don't seem to have
_PCTon my Ivy Bridge i7 laptop..Quoted 4 lines
In your case then .. lets go back to the start - the driver failed with
-EIOand it was v3.4.x kernel? Now that I've figured out the regression with v3.9 I can take a look at this.
Quoted 5 lines
Ok.
So the problem for me with Linux 3.4.32 kernel is "modprobe xen-acpi-processor" fails:
initcallxen_acpi_processor_init+0x0/0x6b0[xen_acpi_processor] returned with error code -5
Great :-( On my box (SandyBridge i3 2100, MS-7680) it installs just fine. This is v3.4.22 with
cat linux-build/.config|grep PROCESSORCONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=mCONFIG_XEN_ACPI_PROCESSOR=m
Quoted 2 lines
The error deeper down in the ACPI internals is:
processor_perflib-0430 [00]processor_get_performa: ACPI-based processor performance control unavailable
I think looking at the code, that even on baremetal you would not have any P-states.
I am looking at the code, and the one thing that caught my eye is this comment:
/*
* Do a quick check if the systems looks like it should use ACPI
* cpufreq. We look at a _PCT method being available, but don't
* do a whole lot of sanity checks.
*/
And since your machine has no _PCT, it just bypasses it.
Is there a BIOS option for power saving? Perhaps its off?
Quoted 9 lines
Function call path is this:
xen_acpi_processor_init()
acpi_processor_register_performance(perf, i)<-- returns-EIO
acpi_processor_get_performance_info(pr)<-- returns-ENODEVand prints the error to dmesg
acpi_get_handle(pr->handle, "_PCT", &handle);
acpi_ns_get_node()<-- doesn't find_PCT
Quoted 8 lines
goto
err_out; <-- modprobe xen-acpi-processor failsThe CPU in question is:
Intel(R) Xeon(R) CPU L5640ACPI DSDT.dsl is here:
http://pasik.reaktio.net/dell-r510-acpi-dsdt.dsl
Oh wait, this is not an laptop! It is some rack-server.
Quoted 9 lines
-- Pasi
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 34 lines · Konrad Rzeszutek Wilk
Quoted 27 lines · Pasi Kärkkäinen
Quoted 9 lines · Konrad Rzeszutek Wilk
Quoted 9 lines
Quoted 6 lines
Actually the correct path is:
/sys/firmware/acpi/tables/DSDTSo the acpi tables are there... but the problem is there's no
_PCTinfo in them... so on which hardware is xen-acpi-processor driver required?
Quoted 9 lines
Quoted 4 lines
Is the actual problem that I don't have
_PCTbecause it's not required/supported on my hw, and thus I don't need the whole xen-acpi-processor driver?I checked the Xeon 5600 CPU, and also Ivy Bridge i7, and there's no
_PCTon either one..I always forget which of _P* are important. I think
_PPC,_PSSand_PCDare the crucial ones. The_PCTis the thermal one - which I think are usually found on laptops.I don't seem to have
_PCTon my Ivy Bridge i7 laptop..Quoted 4 lines
In your case then .. lets go back to the start - the driver failed with
-EIOand it was v3.4.x kernel? Now that I've figured out the regression with v3.9 I can take a look at this.Quoted 5 lines
Ok.
So the problem for me with Linux 3.4.32 kernel is "modprobe xen-acpi-processor" fails:
initcallxen_acpi_processor_init+0x0/0x6b0[xen_acpi_processor] returned with error code -5
Quoted 8 lines
Great :-( On my box (SandyBridge i3 2100, MS-7680) it installs just fine. This is v3.4.22 with
cat linux-build/.config|grep PROCESSOR
CONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=mCONFIG_XEN_ACPI_PROCESSOR=m
I'm using:
CONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=mCONFIG_XEN_ACPI_PROCESSOR=m
Quoted 15 lines
Quoted 3 lines
The error deeper down in the ACPI internals is:
processor_perflib-0430 [00]processor_get_performa: ACPI-based processor performance control unavailableI think looking at the code, that even on baremetal you would not have any P-states.
I am looking at the code, and the one thing that caught my eye is this comment:
/*
* Do a quick check if the systems looks like it should use ACPI
* cpufreq. We look at a_PCTmethod being available, but don't
* do a whole lot of sanity checks.
*/
Quoted 4 lines
And since your machine has no
_PCT, it just bypasses it.Is there a BIOS option for power saving? Perhaps its off?
Hmm, good question, I'll have to check..
Quoted 12 lines
Quoted 12 lines
Function call path is this:
xen_acpi_processor_init()
acpi_processor_register_performance(perf, i)<-- returns-EIO
acpi_processor_get_performance_info(pr)<-- returns-ENODEVand prints the error to dmesg
acpi_get_handle(pr->handle, "_PCT", &handle);
acpi_ns_get_node()<-- doesn't find_PCTgoto
err_out; <-- modprobe xen-acpi-processor fails
Quoted 8 lines
Quoted 5 lines
The CPU in question is:
Intel(R) Xeon(R) CPU L5640ACPI DSDT.dsl is here:
http://pasik.reaktio.net/dell-r510-acpi-dsdt.dslOh wait, this is not an laptop! It is some rack-server.
Correct. It's a Dell R510 rack server.
-- Pasi
Quoted 23 lines · Pasi Kärkkäinen
Quoted 14 lines
Quoted 8 lines
I don't seem to have
_PCTon my Ivy Bridge i7 laptop..Quoted 4 lines
In your case then .. lets go back to the start - the driver failed with
-EIOand it was v3.4.x kernel? Now that I've figured out the regression with v3.9 I can take a look at this.Quoted 5 lines
Ok.
So the problem for me with Linux 3.4.32 kernel is "modprobe xen-acpi-processor" fails:
initcallxen_acpi_processor_init+0x0/0x6b0[xen_acpi_processor] returned with error code -5Quoted 8 lines
Great :-( On my box (SandyBridge i3 2100, MS-7680) it installs just fine. This is v3.4.22 with
cat linux-build/.config|grep PROCESSOR
CONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=mCONFIG_XEN_ACPI_PROCESSOR=m
Quoted 6 lines
I'm using:
CONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=mCONFIG_XEN_ACPI_PROCESSOR=m
Do you see _PCT on your SandyBridge i3 DSDT?
Quoted 16 lines
Quoted 16 lines
Quoted 4 lines
The error deeper down in the ACPI internals is:
processor_perflib-0430 [00]processor_get_performa: ACPI-based processor performance control unavailableI think looking at the code, that even on baremetal you would not have any P-states.
I am looking at the code, and the one thing that caught my eye is this comment:
/*
* Do a quick check if the systems looks like it should use ACPI
* cpufreq. We look at a_PCTmethod being available, but don't
* do a whole lot of sanity checks.
*/
Quoted 7 lines
Quoted 4 lines
And since your machine has no
_PCT, it just bypasses it.Is there a BIOS option for power saving? Perhaps its off?
Hmm, good question, I'll have to check..
My Dell R510 BIOS has these settings:
Turbo Mode: Enabled.
C States: Enabled.
Power Management: "Active Power Controller".
Other options for "Power Management" include: "Custom", "OS Control" and "Maximum Performance".
I tried changing it to "OS Control", but then "modprobe xen-acpi-processor" gives error -19, "No such device".
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Function call path is this:
xen_acpi_processor_init()
acpi_processor_register_performance(perf, i)<-- returns-EIO
acpi_processor_get_performance_info(pr)<-- returns-ENODEVand prints the error to dmesg
acpi_get_handle(pr->handle, "_PCT", &handle);
acpi_ns_get_node()<-- doesn't find_PCTgoto
err_out; <-- modprobe xen-acpi-processor failsThe CPU in question is:
Intel(R) Xeon(R) CPU L5640
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
ACPI DSDT.dsl is here:
http://pasik.reaktio.net/dell-r510-acpi-dsdt.dslOh wait, this is not an laptop! It is some rack-server.
Correct. It's a Dell R510 rack server.
Did you mean that xen-acpi-processor driver is not needed on servers?
-- Pasi
Quoted 24 lines · Pasi Kärkkäinen
Quoted 23 lines · Pasi Kärkkäinen
Quoted 22 lines
Quoted 8 lines
I don't seem to have
_PCTon my Ivy Bridge i7 laptop..Quoted 4 lines
In your case then .. lets go back to the start - the driver failed with
-EIOand it was v3.4.x kernel? Now that I've figured out the regression with v3.9 I can take a look at this.Quoted 5 lines
Ok.
So the problem for me with Linux 3.4.32 kernel is "modprobe xen-acpi-processor" fails:
initcallxen_acpi_processor_init+0x0/0x6b0[xen_acpi_processor] returned with error code -5Great :-( On my box (SandyBridge i3 2100, MS-7680) it installs just fine. This is v3.4.22 with
cat linux-build/.config|grep PROCESSOR
CONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=mCONFIG_XEN_ACPI_PROCESSOR=m
Quoted 8 lines
Quoted 6 lines
I'm using:
CONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=mCONFIG_XEN_ACPI_PROCESSOR=mDo you see
_PCTon your SandyBridge i3 DSDT?
No. I am actually not seeing a lot of them, but I am still seeing P-states?!
15:03:49 # 21 :/sys/firmware/acpi/tables/
Quoted 1 line
xenpm get-cpufreq-para 0
cpu id : 0affected_cpus : 0
cpuinfo frequency : max [3100000] min [1600000] cur [1600000]scaling_driver : acpi-cpufreqscaling_avail_gov : userspace performance powersave ondemandcurrent_governor : ondemand
ondemand specific :
sampling_rate : max [10000000] min [10000] cur [20000]
up_threshold : 80
scaling_avail_freq : 3100000 3000000 2900000 2800000 2700000 2600000 2500000 2400000 2300000 2200000 2100000 2000000 1900000 1800000 1700000 *1600000
scaling frequency : max [3100000] min [1600000] cur [1600000]WTF!?
And also the C-states:
Quoted 1 line
xenpm get-cpuidle-states 0
Max possible C-state: C7
cpu id : 0
total C-states : 3
idle time(ms) : 543153
C0 : transition [ 45047]
residency [ 11006 ms]
C1 : transition [ 14099]
residency [ 13076 ms]
C2 : transition [ 30948] residency [ 527658 ms]
pc2 : [ 13698 ms]
pc3 : [ 0 ms]
pc6 : [ 484534 ms]
pc7 : [ 0 ms]
cc3 : [ 0 ms]
cc6 : [ 525300 ms]
cc7 : [ 0 ms]
I need to look back at my notes on how the _PCT, _PSS, _Pwhatevername work.
Quoted 27 lines · Konrad Rzeszutek Wilk
Quoted 26 lines · Pasi Kärkkäinen
Quoted 25 lines · Pasi Kärkkäinen
Quoted 14 lines
Quoted 8 lines
I don't seem to have
_PCTon my Ivy Bridge i7 laptop..Quoted 4 lines
In your case then .. lets go back to the start - the driver failed with
-EIOand it was v3.4.x kernel? Now that I've figured out the regression with v3.9 I can take a look at this.Quoted 5 lines
Ok.
So the problem for me with Linux 3.4.32 kernel is "modprobe xen-acpi-processor" fails:
initcallxen_acpi_processor_init+0x0/0x6b0[xen_acpi_processor] returned with error code -5Quoted 8 lines
Great :-( On my box (SandyBridge i3 2100, MS-7680) it installs just fine. This is v3.4.22 with
cat linux-build/.config|grep PROCESSOR
CONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=mCONFIG_XEN_ACPI_PROCESSOR=mI'm using:
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
CONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=mCONFIG_XEN_ACPI_PROCESSOR=mDo you see
_PCTon your SandyBridge i3 DSDT?No. I am actually not seeing a lot of them, but I am still seeing P-states?!
OK, good. I'm not the only one who doesn't see _PCT :)
Quoted 8 lines
15:03:49 # 21 :/sys/firmware/acpi/tables/
Quoted 1 line
xenpm get-cpufreq-para 0
cpu id : 0
affected_cpus: 0
cpuinfo frequency : max [3100000] min [1600000] cur [1600000]scaling_driver: acpi-cpufreqscaling_avail_gov: userspace performance powersave ondemandcurrent_governor: ondemand
Quoted 8 lines
ondemand specific : sampling_rate : max [10000000] min [10000] cur [20000] up_threshold : 80 scaling_avail_freq : 3100000 3000000 2900000 2800000 2700000 2600000 2500000 2400000 2300000 2200000 2100000 2000000 1900000 1800000 1700000 *1600000 scaling frequency : max [3100000] min [1600000] cur [1600000]WTF!?
On my server:
# xenpm get-cpufreq-para 0 [CPU0] failed to get cpufreq parameter
Quoted 12 lines
And also the C-states:
Quoted 1 line
xenpm get-cpuidle-states 0
Max possible C-state: C7
cpu id : 0
total C-states : 3
idle time(ms) : 543153
C0 : transition [ 45047]residency [ 11006 ms] C1 : transition [ 14099] residency [ 13076 ms] C2 : transition [ 30948]
Quoted 9 lines
residency [ 527658 ms]
pc2 : [ 13698 ms]
pc3 : [ 0 ms]
pc6 : [ 484534 ms]
pc7 : [ 0 ms]
cc3 : [ 0 ms]
cc6 : [ 525300 ms]
cc7 : [ 0 ms]
# xenpm get-cpuidle-states 0 Max possible C-state: C7
cpu id : 0
total C-states : 2
idle time(ms) : 418428
C0 : transition [ 1]
residency [ 1526 ms]
C1 : transition [ 1]
residency [ 418428 ms]
pc2 : [ 0 ms]
pc3 : [ 0 ms]
pc6 : [ 0 ms]
pc7 : [ 0 ms]
cc3 : [ 0 ms]
cc6 : [ 0 ms]
cc7 : [ 0 ms]
Quoted 3 lines
I need to look back at my notes on how the
_PCT,_PSS,_Pwhatevernamework.
Yep. Does xen-acpi-processor driver load OK on your servers?
-- Pasi
Quoted 7 lines · Pasi Kärkkäinen
Quoted 4 lines
I need to look back at my notes on how the
_PCT,_PSS,_Pwhatevernamework.Yep. Does xen-acpi-processor driver load OK on your servers?
I just tried Linux 3.8.3 as dom0 on the Xeon 5600 CPU and xen-acpi-processor fails in the same way as it fails with Linux 3.4.
I also tested on my Ivy Bridge i7 desktop, and there xen-acpi-processor driver loads OK..
-- Pasi
Quoted 6 lines · Pasi Kärkkäinen
Quoted 5 lines · Pasi Kärkkäinen
Quoted 4 lines
I need to look back at my notes on how the
_PCT,_PSS,_Pwhatevernamework.
Quoted 7 lines
Quoted 2 lines
Yep. Does xen-acpi-processor driver load OK on your servers?
I just tried Linux 3.8.3 as dom0 on the Xeon 5600 CPU and xen-acpi-processor fails in the same way as it fails with Linux 3.4.
I also tested on my Ivy Bridge i7 desktop, and there xen-acpi-processor driver loads OK..
And when I add some extra printks in working box I see that these calls:
acpi_get_handle(pr->handle, "_PCT", &handle); acpi_get_handle(pr->handle, "_PSD", &handle); acpi_get_handle(pr->handle, "_PSS", &handle);
work, yet in the SSDT and DSDT those strings don't show up? I think this requires some deep ACPI sorcery to figure out. On the AMD boxes they nicely show up.
Quoted 15 lines · Konrad Rzeszutek Wilk
Quoted 6 lines · Pasi Kärkkäinen
Quoted 5 lines · Pasi Kärkkäinen
Quoted 4 lines
I need to look back at my notes on how the
_PCT,_PSS,_Pwhatevernamework.Quoted 7 lines
Quoted 2 lines
Yep. Does xen-acpi-processor driver load OK on your servers?
I just tried Linux 3.8.3 as dom0 on the Xeon 5600 CPU and xen-acpi-processor fails in the same way as it fails with Linux 3.4.
I also tested on my Ivy Bridge i7 desktop, and there xen-acpi-processor driver loads OK..
Quoted 8 lines
And when I add some extra printks in working box I see that these calls:
acpi_get_handle(pr->handle, "_PCT", &handle); acpi_get_handle(pr->handle, "_PSD", &handle); acpi_get_handle(pr->handle, "_PSS", &handle);work, yet in the SSDT and DSDT those strings don't show up?
That's weird.. then again it probably explains why I didn't see those strings either in SSDT/DSDT on the i7 boxes.
Quoted 4 lines
I think this
requires some deep ACPI sorcery to figure out. On the AMD boxes they nicely show up.
Yeah I was afraid of that ;)
I've already tried simple things with acpi.debug_level=0xffffffff and acpi.debug_layer=0xffffffff but nothing obvious so far.. I need to dig deeper..
It'd help to understand how all that SSDT/DSDT and PCT/PSD/PSS stuff is supposed to work..
If you happen to have good links to read about this ACPI black magic let me know (I'll probably regret asking for this ;)
-- Pasi
Quoted 19 lines
Quoted 10 lines
Quoted 1 line
I also tested on my Ivy Bridge i7 desktop, and there xen-acpi-processor driver loads OK..
And when I add some extra printks in working box I see that these calls:
acpi_get_handle(pr->handle, "_PCT", &handle); acpi_get_handle(pr->handle, "_PSD", &handle); acpi_get_handle(pr->handle, "_PSS", &handle);work, yet in the SSDT and DSDT those strings don't show up?
That's weird.. then again it probably explains why I didn't see those strings either in SSDT/DSDT on the i7 boxes.
Quoted 4 lines
I think this
requires some deep ACPI sorcery to figure out. On the AMD boxes they nicely show up.
Quoted 7 lines
Yeah I was afraid of that ;)
I've already tried simple things with acpi.debug_level=0xffffffff and acpi.debug_layer=0xffffffff but nothing obvious so far.. I need to dig deeper..
It'd help to understand how all that SSDT/DSDT and PCT/PSD/PSS stuff is supposed to work..
If you happen to have good links to read about this ACPI black magic let me know (I'll probably regret asking for this ;)
I've been using a combination of
http://www.plasma-online.de/index.html?content=http%3A//www.plasma-online.de/english/identify/serial/pnp_id_pnp.html
and the DSDT to eliminate all of the entries that are not relevant to power-states. Also, the P-states (and C-states) are all within the:
Scope (\_PR)
{
..
}that.
Also the ACPI spec - I took a look at the PCT, PSD, and PSS and what kind of information they are suppose to contain (which is pretty much just an structure of some data). There is also the _OSC method in ACPI which is to be executed by the ACPI AML, and by executing said method then the _PCT, _PSD, _PSS, etc are suppose to appear in the ACPI namespace.
I also look at coreboot, since it has a bunch of AMLs and comments. Especially src/cpu/intel/haswell/acpi.c
.. There is a ton of interesting stuff there:src/cpu/intel/turbo/turbo.c or src/northbridge/intel/sandybridge
Anywho, back to the DSDT, which on my box shows:
Scope (_PR)
{
OperationRegion (SSDT, SystemMemory, 0xBAE0AC18, 0x038C)
OperationRegion (CSDT, SystemMemory, 0xBAE0BE18, 0x0084)
Name (NCST, 0x02)
Name (NPSS, 0x10)
Name (HNDL, 0x80000000)
Name (CHDL, 0x80000000)
Name (TNLP, 0x0004)
Name (CINT, Zero)
Name (PDCV, 0xFFFFFFFF)
Name (APSS, Package (0x10)
{
Package (0x06)
{
0x0C1C,
0x0000FDE8,
0x000A,
0x000A,
0x1F00,
0x1F00
}, .. snip..
Method (OSC, 4, NotSerialized)
{
CreateDWordField (Arg3, Zero, STS)
CreateDWordField (Arg3, 0x04, CAP)
CreateDWordField (Arg0, Zero, IID0)
CreateDWordField (Arg0, 0x04, IID1)
CreateDWordField (Arg0, 0x08, IID2)
CreateDWordField (Arg0, 0x0C, IID3)
Name (UID0, Buffer (0x10)
{
/* 0000 */ 0x16, 0xA6, 0x77, 0x40, 0x0C, 0x29, 0xBE, 0x47,
/* 0008 */ 0x9E, 0xBD, 0xD8, 0x70, 0x58, 0x71, 0x39, 0x53
})
CreateDWordField (UID0, Zero, EID0)
CreateDWordField (UID0, 0x04, EID1)
CreateDWordField (UID0, 0x08, EID2)
CreateDWordField (UID0, 0x0C, EID3)
If (LNot (LAnd (LAnd (LEqual (IID0, EID0), LEqual (IID1, EID1)),
LAnd (LEqual (IID2, EID2), LEqual (IID3, EID3)))))
{
Store (0x06, Index (STS, Zero))
Return (Arg3)
}
And (PDCV, CAP, PDCV)
If (LEqual (CINT, Zero))
{
Store (One, CINT)
If (LEqual (And (PDCV, 0x09), 0x09))
{
If (LNotEqual (NPSS, Zero))
{
Load (SSDT, HNDL)
}
}
If (LEqual (And (PDCV, 0x10), 0x10))
{
If (LNotEqual (NCST, 0xFF))
{
Load (CSDT, CHDL)
}
}
}
Return (Arg3)
}
}Which looks to load an new SSDT or CSDT. Looking back at your DSDT - which BTW has tons of debug usage:
Store ("Platform _OSC, APEI is implementend", Debug)
should make it easier to narrow it down.
You don't appear to have any Load method, so perhaps you have some SSDTs. If you look at those (there can be many), that might help. Again, you are looking at \_PR scope.
On my box, I took the SSDT but it did not give any insight, except that the _PDC and _OSC end up calling in the \_PR.OSC method pasted above:
Scope (\_PR)
{
Processor (P000, 0x01, 0x00000410, 0x06)
{
.. snip..
Method (_OSC, 4, NotSerialized)
{
Return (\_PR.OSC)
Arg0
Arg1
Arg2
Arg3
}
}
}It looks like the magic incantations are in:
OperationRegion (CSDT, SystemMemory, 0xBAE0BE18, 0x0084)
so physical address 0xBAE0BE18. The machine is offline so it will have to wait until I can get the contents of that physical address.
Quoted 20 lines
On my box, I took the SSDT but it did not give any insight, except that the
_PDCand_OSCend up calling in the \_PR.OSC method pasted above:Scope (\_PR) { Processor (P000, 0x01, 0x00000410, 0x06) { .. snip.. Method (_OSC, 4, NotSerialized) { Return (\_PR.OSC) Arg0 Arg1 Arg2 Arg3 } } }
Quoted 6 lines
It looks like the magic incantations are in:
OperationRegion (CSDT, SystemMemory, 0xBAE0BE18, 0x0084)so physical address
0xBAE0BE18. The machine is offline so it will have to wait until I can get the contents of that physical address.
And if I dug deep enough and looked in: /sys/firmware/acpi/tables/dynamic/ I would have found SSDT2 and SSDT3 and SSDT2 sure enough has:
Scope (\_PR.P000)
{
Name (_PCT, Package (0x02)
{. .. snip..
and also the _PSS, _PPC, etc.
Quoted 31 lines · Konrad Rzeszutek Wilk
Quoted 20 lines
On my box, I took the SSDT but it did not give any insight, except that the
_PDCand_OSCend up calling in the \_PR.OSC method pasted above:Scope (\_PR) { Processor (P000, 0x01, 0x00000410, 0x06) { .. snip.. Method (_OSC, 4, NotSerialized) { Return (\_PR.OSC) Arg0 Arg1 Arg2 Arg3 } } }Quoted 6 lines
It looks like the magic incantations are in:
OperationRegion (CSDT, SystemMemory, 0xBAE0BE18, 0x0084)so physical address
0xBAE0BE18. The machine is offline so it will have to wait until I can get the contents of that physical address.And if I dug deep enough and looked in:
/sys/firmware/acpi/tables/dynamic/I would have found SSDT2 and SSDT3 and SSDT2 sure enough has:
Quoted 9 lines
Scope (\_PR.P000) { Name (_PCT, Package (0x02) {. .. snip..
and also the
_PSS,_PPC, etc.
Hmm, on the R510 server where xen-acpi-processor doesn't work /sys/firmware/acpi/tables/dynamic/ is empty..
-- Pasi
Quoted 37 lines · Pasi Kärkkäinen
Quoted 36 lines · Konrad Rzeszutek Wilk
Quoted 20 lines
On my box, I took the SSDT but it did not give any insight, except that the
_PDCand_OSCend up calling in the \_PR.OSC method pasted above:Scope (\_PR) { Processor (P000, 0x01, 0x00000410, 0x06) { .. snip.. Method (_OSC, 4, NotSerialized) { Return (\_PR.OSC) Arg0 Arg1 Arg2 Arg3 } } }Quoted 6 lines
It looks like the magic incantations are in:
OperationRegion (CSDT, SystemMemory, 0xBAE0BE18, 0x0084)so physical address
0xBAE0BE18. The machine is offline so it will have to wait until I can get the contents of that physical address.And if I dug deep enough and looked in:
/sys/firmware/acpi/tables/dynamic/I would have found SSDT2 and SSDT3 and SSDT2 sure enough has:Scope (\_PR.P000) { Name (_PCT, Package (0x02) {
Quoted 7 lines
Quoted 4 lines
. .. snip..
and also the
_PSS,_PPC, etc.Hmm, on the R510 server where xen-acpi-processor doesn't work
/sys/firmware/acpi/tables/dynamic/is empty..
Pfff.. And 'cpuinfo' or 'cpufreq-info' when you boot baremetal gives you different P-states?
If so, is the DSDT different that when running under Xen? And lasty, does it create any SSDT in the dynamic directory?
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 3 lines
Hmm, on the R510 server where xen-acpi-processor doesn't work
/sys/firmware/acpi/tables/dynamic/is empty..Pfff.. And 'cpuinfo' or 'cpufreq-info' when you boot baremetal gives you different P-states?
If so, is the DSDT different that when running under Xen? And lasty, does it create any SSDT in the dynamic directory?
Finally I figured this one out.. in the end it was a BIOS settings/configuration issue.
I found this: http://en.community.dell.com/techcenter/power-cooling/w/wiki/best-practices-in-power-management.aspx
So I had to enable "OS Control" for "Power Management" in the Dell server BIOS, and after that the CPU P-states are available in the ACPI tables, and xen-acpi-processor driver loads and works OK in the dom0 kernel!
(I'm almost 100% certain I tried that option already earlier,
so I don't have any idea why it didn't work back then.. but *now* it seems to work!)
For reference I'm using Intel L5640 Xeon CPU, and here's xenpm output for it:
# xenpm get-cpufreq-states
cpu id : 0
total P-states : 7
usable P-states : 7
current frequency : 1596 MHz
P0 [2262 MHz]: transition [ 5]
residency [ 59 ms]
P1 [2261 MHz]: transition [ 0]
residency [ 0 ms]
P2 [2128 MHz]: transition [ 0]
residency [ 0 ms]
P3 [1995 MHz]: transition [ 0]
residency [ 0 ms]
P4 [1862 MHz]: transition [ 0]
residency [ 0 ms]
P5 [1729 MHz]: transition [ 0]
residency [ 0 ms]
*P6 [1596 MHz]: transition [ 5]residency [ 3437 ms]
cpu id : 1
total P-states : 7
usable P-states : 7
current frequency : 1596 MHz
P0 [2262 MHz]: transition [ 4]
residency [ 103 ms]
P1 [2261 MHz]: transition [ 0]
residency [ 0 ms]
P2 [2128 MHz]: transition [ 0]
residency [ 0 ms]
P3 [1995 MHz]: transition [ 0]
residency [ 0 ms]
P4 [1862 MHz]: transition [ 0]
residency [ 0 ms]
P5 [1729 MHz]: transition [ 0]
residency [ 0 ms]
*P6 [1596 MHz]: transition [ 4]residency [ 5893 ms]
.. and so on.
Thanks a lot Konrad for your help on this!
-- Pasi
Quoted 12 lines · Pasi Kärkkäinen
Quoted 10 lines · Konrad Rzeszutek Wilk
Quoted 3 lines
Hmm, on the R510 server where xen-acpi-processor doesn't work
/sys/firmware/acpi/tables/dynamic/is empty..Pfff.. And 'cpuinfo' or 'cpufreq-info' when you boot baremetal gives you different P-states?
If so, is the DSDT different that when running under Xen? And lasty, does it create any SSDT in the dynamic directory?
Quoted 7 lines
Finally I figured this one out.. in the end it was a BIOS settings/configuration issue.
I found this: http://en.community.dell.com/techcenter/power-cooling/w/wiki/best-practices-in-power-management.aspx
So I had to enable "OS Control" for "Power Management" in the Dell server BIOS, and after that the CPU P-states are available in the ACPI tables, and xen-acpi-processor driver loads and works OK in the dom0 kernel!
Aah, right. That would explain it.
Quoted 6 lines
(I'm almost 100% certain I tried that option already earlier,
so I don't have any idea why it didn't work back then.. but *now* it seems to work!)For reference I'm using Intel L5640 Xeon CPU, and here's xenpm output for it:
Quoted 8 lines
# xenpm get-cpufreq-statescpu id : 0
total P-states : 7
usable P-states : 7
current frequency : 1596 MHz
P0 [2262 MHz]: transition [ 5]
residency [ 59 ms]
Woot! Turbo Mode!
Quoted 30 lines
P1 [2261 MHz]: transition [ 0] residency [ 0 ms] P2 [2128 MHz]: transition [ 0] residency [ 0 ms] P3 [1995 MHz]: transition [ 0] residency [ 0 ms] P4 [1862 MHz]: transition [ 0] residency [ 0 ms] P5 [1729 MHz]: transition [ 0] residency [ 0 ms] *P6 [1596 MHz]: transition [ 5]residency [ 3437 ms]
cpu id : 1
total P-states : 7
usable P-states : 7
current frequency : 1596 MHz
P0 [2262 MHz]: transition [ 4]
residency [ 103 ms]P1 [2261 MHz]: transition [ 0] residency [ 0 ms] P2 [2128 MHz]: transition [ 0] residency [ 0 ms] P3 [1995 MHz]: transition [ 0] residency [ 0 ms] P4 [1862 MHz]: transition [ 0] residency [ 0 ms] P5 [1729 MHz]: transition [ 0] residency [ 0 ms] *P6 [1596 MHz]: transition [ 4]
Quoted 6 lines
residency [ 5893 ms]
.. and so on.
Thanks a lot Konrad for your help on this!
Sure thing, thought you found the resolution so the credit is due you.
Quoted 4 lines
-- Pasi
Quoted 8 lines · Konrad Rzeszutek Wilk
Quoted 8 lines
(I'm almost 100% certain I tried that option already earlier,
so I don't have any idea why it didn't work back then.. but *now* it seems to work!)For reference I'm using Intel L5640 Xeon CPU, and here's xenpm output for it:
# xenpm get-cpufreq-states
Quoted 9 lines
Quoted 6 lines
cpu id : 0
total P-states : 7
usable P-states : 7
current frequency : 1596 MHz
P0 [2262 MHz]: transition [ 5]
residency [ 59 ms]Woot! Turbo Mode!
Yep, turbo seems to work..
# xenpm get-cpufreq-para
cpu id : 0affected_cpus : 0
cpuinfo frequency : max [2262000] min [1596000] cur [2262000]scaling_driver : acpi-cpufreqscaling_avail_gov : userspace performance powersave ondemandcurrent_governor : ondemand
ondemand specific :
sampling_rate : max [10000000] min [10000] cur [20000]
up_threshold : 80
scaling_avail_freq : 2262000 2261000 2128000 1995000 1862000 1729000 *1596000
scaling frequency : max [2262000] min [1596000] cur [1596000]
turbo mode : enabled..
-- Pasi