Skip to contentSkip to conversation

Strange ACPI error messages

kernel 3.13.0-06058-g2d08cd0 In review Jörg Otte 6 participants 13 messages Jan 25, 2014 – Jan 28, 2014 ACPI

lore
Share & tools
lore

Jörg Otte

author
#0 lore raw

Kernel 3.13.0-06058-g2d08cd0 displays following errors on the console:

ACPI: \_PR_.CPU4: failed to get CPU APIC ID.
ACPI: \_PR_.CPU5: failed to get CPU APIC ID.
ACPI: \_PR_.CPU6: failed to get CPU APIC ID.
ACPI: \_PR_.CPU7: failed to get CPU APIC ID.

I don't have CPUs 4..7! Error messages regarding not existing CPUs should not be displayed.
kernel 3.13.0-05617-g3aacd62 and before did'nt show this messages.

This is a regression. I never saw this messages before.

Processor model: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz

$ cat /proc/cpuinfo | grep processor
processor       : 0
processor       : 1
processor       : 2
processor       : 3

Jörg
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw
Quoted 7 lines · Jörg Otte

Kernel 3.13.0-06058-g2d08cd0 displays following errors on the console:

ACPI: \_PR_.CPU4: failed to get CPU APIC ID.
ACPI: \_PR_.CPU5: failed to get CPU APIC ID.
ACPI: \_PR_.CPU6: failed to get CPU APIC ID.
ACPI: \_PR_.CPU7: failed to get CPU APIC ID.

Quoted 5 lines

I don't have CPUs 4..7! Error messages regarding not existing CPUs should not be displayed.
kernel 3.13.0-05617-g3aacd62 and before did'nt show this messages.

This is a regression. I never saw this messages before.

Does your system show any other suspicious symptoms or are you worried about those messages only?

Rafael

#2 lore raw
Quoted 8 lines · Rafael J. Wysocki
Quoted 7 lines · Jörg Otte

Kernel 3.13.0-06058-g2d08cd0 displays following errors on the console:

ACPI: \_PR_.CPU4: failed to get CPU APIC ID.
ACPI: \_PR_.CPU5: failed to get CPU APIC ID.
ACPI: \_PR_.CPU6: failed to get CPU APIC ID.
ACPI: \_PR_.CPU7: failed to get CPU APIC ID.

Quoted 8 lines
Quoted 5 lines

I don't have CPUs 4..7! Error messages regarding not existing CPUs should not be displayed.
kernel 3.13.0-05617-g3aacd62 and before did'nt show this messages.

This is a regression. I never saw this messages before.

Does your system show any other suspicious symptoms or are you worried about those messages only?

Gerry, this is your commit b981513f806d (ACPI / scan: bail out early if failed to parse APIC ID for CPU). Apparently, the BIOS has room for 4 CPUs more than there actually are in the system. Maybe we can reduce the log level of those messages to avoid ringing bells unnecessarily?

Rafael

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 15 lines · Rafael J. Wysocki
Quoted 14 lines · Rafael J. Wysocki
Quoted 12 lines · Jörg Otte

Kernel 3.13.0-06058-g2d08cd0 displays following errors on the console:

ACPI: \_PR_.CPU4: failed to get CPU APIC ID.
ACPI: \_PR_.CPU5: failed to get CPU APIC ID.
ACPI: \_PR_.CPU6: failed to get CPU APIC ID.
ACPI: \_PR_.CPU7: failed to get CPU APIC ID.

I don't have CPUs 4..7! Error messages regarding not existing CPUs should not be displayed.
kernel 3.13.0-05617-g3aacd62 and before did'nt show this messages.

This is a regression. I never saw this messages before.

Quoted 7 lines
Quoted 2 lines

Does your system show any other suspicious symptoms or are you worried about those messages only?

Gerry, this is your commit b981513f806d (ACPI / scan: bail out early if failed to parse APIC ID for CPU). Apparently, the BIOS has room for 4 CPUs more than there actually are in the system. Maybe we can reduce the log level of those messages to avoid ringing bells unnecessarily?

It is standard practice (at least in SuperMicro boxes, but I've also seen it elsewhere) for the BIOS to have ACPI tables mentioning all cores supported by the biggest core-count CPU topology possible by the motherboard. The cores you don't have are reported as if they were hotpluggable but absent, even if they will *never* show up at runtime. Meh.

So yes, such warnings will get annoying *very* quickly.

Signature · 8 lines
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
Quoted 24 lines · Henrique de Moraes Holschuh
Quoted 15 lines · Rafael J. Wysocki
Quoted 14 lines · Rafael J. Wysocki
Quoted 12 lines · Jörg Otte

Kernel 3.13.0-06058-g2d08cd0 displays following errors on the console:

ACPI: \_PR_.CPU4: failed to get CPU APIC ID.
ACPI: \_PR_.CPU5: failed to get CPU APIC ID.
ACPI: \_PR_.CPU6: failed to get CPU APIC ID.
ACPI: \_PR_.CPU7: failed to get CPU APIC ID.

I don't have CPUs 4..7! Error messages regarding not existing CPUs should not be displayed.
kernel 3.13.0-05617-g3aacd62 and before did'nt show this messages.

This is a regression. I never saw this messages before.

Quoted 7 lines
Quoted 2 lines

Does your system show any other suspicious symptoms or are you worried about those messages only?

Gerry, this is your commit b981513f806d (ACPI / scan: bail out early if failed to parse APIC ID for CPU). Apparently, the BIOS has room for 4 CPUs more than there actually are in the system. Maybe we can reduce the log level of those messages to avoid ringing bells unnecessarily?

Quoted 7 lines

It is standard practice (at least in SuperMicro boxes, but I've also seen it elsewhere) for the BIOS to have ACPI tables mentioning all cores supported by the biggest core-count CPU topology possible by the motherboard. The cores you don't have are reported as if they were hotpluggable but absent, even if they will *never* show up at runtime. Meh.

So yes, such warnings will get annoying *very* quickly.

Well, what about using acpi_handle_debug() in there, then?

Signature · 6 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw

Hi all,
I will take care of this issue and send out a patch soon.
Thanks!
Gerry

Quoted 31 lines · Rafael J. Wysocki
Quoted 30 lines · Henrique de Moraes Holschuh
Quoted 15 lines · Rafael J. Wysocki
Quoted 14 lines · Rafael J. Wysocki
Quoted 12 lines · Jörg Otte

Kernel 3.13.0-06058-g2d08cd0 displays following errors on the console:

ACPI: \_PR_.CPU4: failed to get CPU APIC ID.
ACPI: \_PR_.CPU5: failed to get CPU APIC ID.
ACPI: \_PR_.CPU6: failed to get CPU APIC ID.
ACPI: \_PR_.CPU7: failed to get CPU APIC ID.

I don't have CPUs 4..7! Error messages regarding not existing CPUs should not be displayed.
kernel 3.13.0-05617-g3aacd62 and before did'nt show this messages.

This is a regression. I never saw this messages before.

Quoted 7 lines
Quoted 2 lines

Does your system show any other suspicious symptoms or are you worried about those messages only?

Gerry, this is your commit b981513f806d (ACPI / scan: bail out early if failed to parse APIC ID for CPU). Apparently, the BIOS has room for 4 CPUs more than there actually are in the system. Maybe we can reduce the log level of those messages to avoid ringing bells unnecessarily?

It is standard practice (at least in SuperMicro boxes, but I've also seen it elsewhere) for the BIOS to have ACPI tables mentioning all cores supported by the biggest core-count CPU topology possible by the motherboard. The cores you don't have are reported as if they were hotpluggable but absent, even if they will *never* show up at runtime. Meh.

Quoted 4 lines
Quoted 1 line

So yes, such warnings will get annoying *very* quickly.

Well, what about using acpi_handle_debug() in there, then?

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#6 lore raw
In reply to Rafael J. Wysocki

2014-01-25 Rafael J. Wysocki <[email protected]>:

Quoted 12 lines · Jörg Otte
Quoted 11 lines

Kernel 3.13.0-06058-g2d08cd0 displays following errors on the console:

ACPI: \_PR_.CPU4: failed to get CPU APIC ID.
ACPI: \_PR_.CPU5: failed to get CPU APIC ID.
ACPI: \_PR_.CPU6: failed to get CPU APIC ID.
ACPI: \_PR_.CPU7: failed to get CPU APIC ID.

I don't have CPUs 4..7! Error messages regarding not existing CPUs should not be displayed.
kernel 3.13.0-05617-g3aacd62 and before did'nt show this messages.

Quoted 7 lines
Quoted 1 line

This is a regression. I never saw this messages before.

Does your system show any other suspicious symptoms or are you worried about those messages only?

Rafael

what's looking badly is this:

ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20131218/hwxface-580)
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20131218/hwxface-580)

and this:

acpi PNP0A08:00: _OSC: OS supports [ASPM ClockPM Segments MSI]
\_SB_.PCI0:_OSC invalid UUID
_OSC request data:1 1e 0
acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM

but these messages are not new.

Jörg
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
Quoted 21 lines · Jörg Otte

2014-01-25 Rafael J. Wysocki <[email protected]>:

Quoted 12 lines · Jörg Otte
Quoted 11 lines

Kernel 3.13.0-06058-g2d08cd0 displays following errors on the console:

ACPI: \_PR_.CPU4: failed to get CPU APIC ID.
ACPI: \_PR_.CPU5: failed to get CPU APIC ID.
ACPI: \_PR_.CPU6: failed to get CPU APIC ID.
ACPI: \_PR_.CPU7: failed to get CPU APIC ID.

I don't have CPUs 4..7! Error messages regarding not existing CPUs should not be displayed.
kernel 3.13.0-05617-g3aacd62 and before did'nt show this messages.

Quoted 7 lines
Quoted 1 line

This is a regression. I never saw this messages before.

Does your system show any other suspicious symptoms or are you worried about those messages only?

Rafael

Quoted 6 lines

what's looking badly is this:

ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20131218/hwxface-580)
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20131218/hwxface-580)

That means your BIOS doesn't support system sleep states S1 and S2, but we should be able to suppress those messages I think.

Quoted 6 lines

and this:

acpi PNP0A08:00: _OSC: OS supports [ASPM ClockPM Segments MSI]
\_SB_.PCI0:_OSC invalid UUID
_OSC request data:1 1e 0
acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM

That means the BIOS doesn't want to grant the kernel control of extended PCIe features on your system.

Quoted 1 line

but these messages are not new.

They indicate things that are not supported by the BIOS, but I agree that the messages are a bit cryptic.

Thanks!

Signature · 6 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#8 lore raw

PATCH 1/1 ACPI: reduce log level for message "ACPI: \_PR_.CPU4: failed to get CPU APIC ID"

In reply to Jörg Otte

Commit b981513f806d (ACPI / scan: bail out early if failed to parse APIC ID for CPU) emits an error message if ACPI processor driver fails to query APIC ID for the CPU.

Originally it's designed to catch BIOS bugs for CPU hot-addition. But it accidently reveals another type of BIOS bug that:
1) BIOS implements ACPI objects for all possible instead of present CPUs. (It's legal per ACPI specification.)
2) BIOS doesn't implement _STA method for CPU objects. OSPM assumes that all CPU objects are present and functioning and binds ACPI processor driver to those CPU objects, which then triggers the error message. According to ACPI spec, BIOS should implement _STA method for those absent CPUs at least.

Though it's a BIOS bug in essential, there are some BIOSes in the fields which are implmented in this way. So reduce the log level from ERR to DEBUG to accommodate these existing BIOSes.

Fixes b981513f806d (ACPI / scan: bail out early if failed to parse APIC ID for CPU)
---
 drivers/acpi/acpi_processor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/acpi_processor.c +1 -1
index c9311be..c29c2c3 100644
@@ -261,7 +261,7 @@ static int acpi_processor_get_info(struct acpi_device *device)
 
 	apic_id = acpi_get_apicid(pr->handle, device_declaration, pr->acpi_id);
 	if (apic_id < 0) {
-		acpi_handle_err(pr->handle, "failed to get CPU APIC ID.\n");
+		acpi_handle_debug(pr->handle, "failed to get CPU APIC ID.\n");
 		return -ENODEV;
 	}
 	pr->apic_id = apic_id;
Signature · 1 line
1.7.10.4
author
#9 lore raw

Re: [PATCH] ACPI: reduce log level for message "ACPI: \_PR_.CPU4: failed to get CPU APIC ID"

2014-01-27 Jiang Liu <[email protected]>:

Quoted 38 lines

Commit b981513f806d (ACPI / scan: bail out early if failed to parse APIC ID for CPU) emits an error message if ACPI processor driver fails to query APIC ID for the CPU.

Originally it's designed to catch BIOS bugs for CPU hot-addition. But it accidently reveals another type of BIOS bug that:
1) BIOS implements ACPI objects for all possible instead of present CPUs. (It's legal per ACPI specification.)
2) BIOS doesn't implement _STA method for CPU objects. OSPM assumes that all CPU objects are present and functioning and binds ACPI processor driver to those CPU objects, which then triggers the error message. According to ACPI spec, BIOS should implement _STA method for those absent CPUs at least.

Though it's a BIOS bug in essential, there are some BIOSes in the fields which are implmented in this way. So reduce the log level from ERR to DEBUG to accommodate these existing BIOSes.

Fixes b981513f806d (ACPI / scan: bail out early if failed to parse APIC ID for CPU)
---
 drivers/acpi/acpi_processor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/acpi_processor.c +1 -2
index c9311be..c29c2c3 100644
@@ -261,7 +261,7 @@ static int acpi_processor_get_info(struct acpi_device *device)
 
        apic_id = acpi_get_apicid(pr->handle, device_declaration, pr->acpi_id);
        if (apic_id < 0) {
-               acpi_handle_err(pr->handle, "failed to get CPU APIC ID.\n");
+               acpi_handle_debug(pr->handle, "failed to get CPU APIC ID.\n");
                return -ENODEV;
        }
        pr->apic_id = apic_id;
--
Quoted 2 lines

1.7.10.4

Thanks, the patch works for me.

Jörg
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#10 lore raw

Re: [PATCH] ACPI: reduce log level for message "ACPI: \_PR_.CPU4: failed to get CPU APIC ID"

In reply to Jiang Liu

drivers/acpi/acpi_processor.c static int acpi_processor_get_info(struct acpi_device *device) · line 266

Quoted 12 lines · Jiang Liu
drivers/acpi/acpi_processor.c +1 -1
index c9311be..c29c2c3 100644
@@ -261,7 +261,7 @@ static int acpi_processor_get_info(struct acpi_device *device)
 
 	apic_id = acpi_get_apicid(pr->handle, device_declaration, pr->acpi_id);
 	if (apic_id < 0) {
-		acpi_handle_err(pr->handle, "failed to get CPU APIC ID.\n");
+		acpi_handle_debug(pr->handle, "failed to get CPU APIC ID.\n");
 		return -ENODEV;
 	}

Don't we already leave some artifact in the kernel log at boot about apic ids that don't get registered? I'm wondering if we should have this warning at all.

#11 lore raw

Re: [PATCH] ACPI: reduce log level for message "ACPI: \_PR_.CPU4: failed to get CPU APIC ID"

Quoted 8 lines · David Rientjes
Quoted 6 lines · Jiang Liu
drivers/acpi/acpi_processor.c +0 -0
index c9311be..c29c2c3 100644
@@ -261,7 +261,7 @@ static int acpi_processor_get_info(struct acpi_device *device)
 
Quoted 9 lines

drivers/acpi/acpi_processor.c static int acpi_processor_get_info(struct acpi_device *device) · line 266

Quoted 6 lines
drivers/acpi/acpi_processor.c +1 -1
  	apic_id = acpi_get_apicid(pr->handle, device_declaration, pr->acpi_id);
  	if (apic_id < 0) {
-		acpi_handle_err(pr->handle, "failed to get CPU APIC ID.\n");
+		acpi_handle_debug(pr->handle, "failed to get CPU APIC ID.\n");
  		return -ENODEV;
  	}

Don't we already leave some artifact in the kernel log at boot about apic ids that don't get registered? I'm wondering if we should have this warning at all.

It is useful for knowing that there are potentially broken objects in the ACPI tables.

#12 lore raw

Re: [PATCH] ACPI: reduce log level for message "ACPI: \_PR_.CPU4: failed to get CPU APIC ID"

Quoted 21 lines · Rafael J. Wysocki
Quoted 11 lines · David Rientjes
Quoted 9 lines · Jiang Liu
drivers/acpi/acpi_processor.c +0 -0
index c9311be..c29c2c3 100644
@@ -261,7 +261,7 @@ static int acpi_processor_get_info(struct
 acpi_device *device)
        apic_id = acpi_get_apicid(pr->handle, device_declaration,
 pr->acpi_id);
Quoted 8 lines

drivers/acpi/acpi_processor.c static int acpi_processor_get_info(struct acpi_device *device) · line 266

Quoted 5 lines
drivers/acpi/acpi_processor.c +1 -1
      if (apic_id < 0) {
-        acpi_handle_err(pr->handle, "failed to get CPU APIC ID.\n");
+        acpi_handle_debug(pr->handle, "failed to get CPU APIC ID.\n");
          return -ENODEV;
      }

Don't we already leave some artifact in the kernel log at boot about apic ids that don't get registered? I'm wondering if we should have this warning at all.

Quoted 2 lines

It is useful for knowing that there are potentially broken objects in the ACPI tables.

And it's very useful to identify BIOS bug in case of CPU hot-addition. It caused our test team about 1 week to identify BIOS bug in CPU hot-addition, so I added this debug message.
Thanks!
Gerry

Quoted 2 lines