linux/drivers/acpi/arm64
Guanghui Feng 003e6b56d7 ACPI/IORT: Remove erroneous id_count check in iort_node_get_rmr_info()
According to the ARM IORT specifications DEN 0049 issue E,
the "Number of IDs" field in the ID mapping format reports
the number of IDs in the mapping range minus one.

In iort_node_get_rmr_info(), we erroneously skip ID mappings
whose "Number of IDs" equal to 0, resulting in valid mapping
nodes with a single ID to map being skipped, which is wrong.

Fix iort_node_get_rmr_info() by removing the bogus id_count
check.

Fixes: 491cf4a673 ("ACPI/IORT: Add support to retrieve IORT RMR reserved regions")
Signed-off-by: Guanghui Feng <guanghuifeng@linux.alibaba.com>
Cc: <stable@vger.kernel.org> # 6.0.x
Acked-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Tested-by: Hanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/1689593625-45213-1-git-send-email-guanghuifeng@linux.alibaba.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2023-07-28 14:50:50 +01:00
..
agdi.c ACPI: bus: Consolidate all arm specific initialisation into acpi_arm_init() 2023-06-08 08:07:51 +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
dma.c ACPI: scan: Support multiple DMA windows with different offsets 2022-09-24 18:39:21 +02:00
gtdt.c acpi/arm64: fix next_platform_timer() section mismatch error 2021-10-12 17:41:19 +01:00
init.c ACPI: bus: Consolidate all arm specific initialisation into acpi_arm_init() 2023-06-08 08:07:51 +01:00
init.h ACPI: bus: Consolidate all arm specific initialisation into acpi_arm_init() 2023-06-08 08:07:51 +01:00
iort.c ACPI/IORT: Remove erroneous id_count check in iort_node_get_rmr_info() 2023-07-28 14:50:50 +01:00
Kconfig ACPI: ARM Performance Monitoring Unit Table (APMT) initial support 2022-11-07 14:02:11 +00:00
Makefile ACPI: bus: Consolidate all arm specific initialisation into acpi_arm_init() 2023-06-08 08:07:51 +01:00