aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <[email protected]>2023-01-05 04:10:59 +0000
committerBorislav Petkov (AMD) <[email protected]>2023-01-10 19:21:07 +0100
commite2869bd7af608c343988429ceb1c2fe99644a01f (patch)
tree6bb771b87bd94e12519b752fe1a6fcba700e470d /scripts/gdb/linux/proc.py
parent5353fff29e42d0efc844dcaf764336d20a7f6b44 (diff)
x86/acpi/boot: Do not register processors that cannot be onlined for x2APIC
Section 5.2.12.12 Processor Local x2APIC Structure in the ACPI v6.5 spec mandates that both "enabled" and "online capable" Local APIC Flags should be used to determine if the processor is usable or not. However, Linux doesn't use the "online capable" flag for x2APIC to determine if the processor is usable. As a result, cpu_possible_mask has incorrect value and results in more memory getting allocated for per_cpu variables than it is going to be used. Make sure Linux parses both "enabled" and "online capable" flags for x2APIC to correctly determine if the processor is usable. Fixes: aa06e20f1be6 ("x86/ACPI: Don't add CPUs that are not online capable") Reported-by: Leo Duran <[email protected]> Signed-off-by: Kishon Vijay Abraham I <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Zhang Rui <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions