aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorSunil V L <[email protected]>2024-10-14 12:27:39 +0530
committerThomas Gleixner <[email protected]>2024-10-15 23:14:25 +0200
commita98a0f050ced4bd4ecb59e92412916012b7c2917 (patch)
tree22e46f831960eb94943e94c186fa307403802e12 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent6b1e0651e9ce8ce418ad4ff360e7b9925dc5da79 (diff)
irqchip/riscv-intc: Fix SMP=n boot with ACPI
When CONFIG_SMP is disabled, the static array rintc_acpi_data with size NR_CPUS is not sufficient to hold all RINTC structures passed from the firmware. All RINTC structures are required to configure IMSIC/APLIC/PLIC properly irrespective of SMP in the OS. So, allocate dynamic memory based on the number of RINTC structures in MADT to fix this issue. Fixes: f8619b66bdb1 ("irqchip/riscv-intc: Add ACPI support for AIA") Reported-by: Björn Töpel <[email protected]> Signed-off-by: Sunil V L <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Alexandre Ghiti <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/all/[email protected] Closes: https://github.com/linux-riscv/linux-riscv/actions/runs/11280997511/job/31375229012
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions