Skip to content

Commit 4125d10

Browse files
chenhuacairafaeljw
authored andcommitted
ACPI: tables: Print CORE_PIC information when MADT is parsed
When MADT is parsed, print CORE_PIC information as below: ACPI: CORE PIC (processor_id[0x00] core_id[0x00] enabled) ACPI: CORE PIC (processor_id[0x01] core_id[0x01] enabled) ... ACPI: CORE PIC (processor_id[0xff] core_id[0xff] enabled) This debug information will be very helpful to bring up early systems to see if processor_id and core_id are matched or not as spec defined. Signed-off-by: Huacai Chen <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 30a0b95 commit 4125d10

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/acpi/tables.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,16 @@ void acpi_table_print_madt_entry(struct acpi_subtable_header *header)
210210
}
211211
break;
212212

213+
case ACPI_MADT_TYPE_CORE_PIC:
214+
{
215+
struct acpi_madt_core_pic *p = (struct acpi_madt_core_pic *)header;
216+
217+
pr_debug("CORE PIC (processor_id[0x%02x] core_id[0x%02x] %s)\n",
218+
p->processor_id, p->core_id,
219+
(p->flags & ACPI_MADT_ENABLED) ? "enabled" : "disabled");
220+
}
221+
break;
222+
213223
default:
214224
pr_warn("Found unsupported MADT entry (type = 0x%x)\n",
215225
header->type);

0 commit comments

Comments
 (0)