mirror-linux/drivers/acpi/arm64
Oliver Upton f818227a2f ACPI: GTDT: Relax sanity checking on Platform Timers array count
Perhaps unsurprisingly there are some platforms where the GTDT isn't
quite right and the Platforms Timer array overflows the length of the
overall table.

While the recently-added sanity checking isn't wrong, it makes it
impossible to boot the kernel on offending platforms. Try to hobble
along and limit the Platform Timer count to the bounds of the table.

Cc: Marc Zyngier <maz@kernel.org>
Cc: Lorenzo Pieralisi <lpieralisi@kernel.org>
Cc: Zheng Zengkai <zhengzengkai@huawei.com>
Cc: stable@vger.kernel.org
Fixes: 263e22d6bd ("ACPI: GTDT: Tighten the check for the array of platform timer structures")
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Acked-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Link: https://lore.kernel.org/r/20250128001749.3132656-1-oliver.upton@linux.dev
Signed-off-by: Will Deacon <will@kernel.org>
2025-02-13 11:12:47 +00:00
..
Kconfig ACPI: ARM Performance Monitoring Unit Table (APMT) initial support 2022-11-07 14:02:11 +00:00
Makefile arm64: FFH: Move ACPI specific code into drivers/acpi/arm64/ 2024-06-13 10:18:40 +01:00
agdi.c ACPI: Switch back to struct platform_driver::remove() 2024-11-12 21:30:30 +01:00
amba.c ACPI / amba: Drop unnecessary check for registered amba_dummy_clk 2024-06-24 18:36:07 +01:00
apmt.c Merge branches 'for-next/kpti', 'for-next/missing-proto-warn', 'for-next/iss2-decode', 'for-next/kselftest', 'for-next/misc', 'for-next/feat_mops', 'for-next/module-alloc', 'for-next/sysreg', 'for-next/cpucap', 'for-next/acpi', 'for-next/kdump', 'for-next/acpi-doc', 'for-next/doc' and 'for-next/tpidr2-fix', remote-tracking branch 'arm64/for-next/perf' into for-next/core 2023-06-23 18:32:20 +01:00
cpuidle.c arm64: cpuidle: Move ACPI specific code into drivers/acpi/arm64/ 2024-06-13 10:18:40 +01:00
dma.c dma-mapping: Add helpers for dma_range_map bounds 2024-04-26 12:07:24 +02:00
ffh.c arm64: FFH: Move ACPI specific code into drivers/acpi/arm64/ 2024-06-13 10:18:40 +01:00
gtdt.c ACPI: GTDT: Relax sanity checking on Platform Timers array count 2025-02-13 11:12:47 +00:00
init.c ACPI: introduce acpi_arch_init() 2024-11-22 21:32:25 +01:00
init.h ACPI: Move AMBA bus scan handling into arm64 specific directory 2023-08-01 13:59:25 +02:00
iort.c ACPI/IORT: Add PMCG platform information for HiSilicon HIP09A 2024-12-05 11:24:18 +00:00
thermal_cpufreq.c ACPI: arm64: export acpi_arch_thermal_cpufreq_pctg() 2023-12-13 13:53:01 +01:00