Skip to content

Commit 16df359

Browse files
kirylbp3tk0v
authored andcommitted
ACPI: tables: Print MULTIPROC_WAKEUP when MADT is parsed
When MADT is parsed, print MULTIPROC_WAKEUP information: ACPI: MP Wakeup (version[1], mailbox[0x7fffd000], reset[0x7fffe068]) This debug information will be very helpful during bringup. Signed-off-by: Kirill A. Shutemov <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Baoquan He <[email protected]> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]> Acked-by: Kai Huang <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Tested-by: Tao Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1ceebe2 commit 16df359

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

drivers/acpi/tables.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,20 @@ void acpi_table_print_madt_entry(struct acpi_subtable_header *header)
198198
}
199199
break;
200200

201+
case ACPI_MADT_TYPE_MULTIPROC_WAKEUP:
202+
{
203+
struct acpi_madt_multiproc_wakeup *p =
204+
(struct acpi_madt_multiproc_wakeup *)header;
205+
u64 reset_vector = 0;
206+
207+
if (p->version >= ACPI_MADT_MP_WAKEUP_VERSION_V1)
208+
reset_vector = p->reset_vector;
209+
210+
pr_debug("MP Wakeup (version[%d], mailbox[%#llx], reset[%#llx])\n",
211+
p->version, p->mailbox_address, reset_vector);
212+
}
213+
break;
214+
201215
case ACPI_MADT_TYPE_CORE_PIC:
202216
{
203217
struct acpi_madt_core_pic *p = (struct acpi_madt_core_pic *)header;

0 commit comments

Comments
 (0)