1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/linux/amd-x2apic-cpufreq.patch
3 # Copyright (C) 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 the type used for device_declaration is passed in from
15 type = (acpi_type == ACPI_TYPE_DEVICE) ? 1 : 0;
16 in drivers/acpi/processor_pdc.c
18 --- linux-5.14/drivers/acpi/processor_core.c 2021-08-30 00:04:50.000000000 +0200
19 +++ linux-5.14/drivers/acpi/processor_core.c 2021-09-26 18:42:00.234480106 +0200
21 if (!(apic->lapic_flags & ACPI_MADT_ENABLED))
24 - if (device_declaration && (apic->uid == acpi_id)) {
25 + if (apic->uid == acpi_id) {
26 *apic_id = apic->local_apic_id;
29 --- linux-5.14/drivers/acpi/acpi_processor.c 2021-08-30 00:04:50.000000000 +0200
30 +++ linux-5.14/drivers/acpi/acpi_processor.c 2021-09-26 18:44:44.540473555 +0200
32 pr->phys_id = acpi_get_phys_id(pr->handle, device_declaration,
34 if (invalid_phys_cpuid(pr->phys_id))
35 - dev_dbg(&device->dev, "Failed to get CPU physical ID.\n");
36 + dev_err(&device->dev, "Failed to get CPU physical ID.\n");
38 pr->id = acpi_map_cpuid(pr->phys_id, pr->acpi_id);
39 if (!cpu0_initialized && !acpi_has_cpu_in_madt()) {