linux-stable/drivers/acpi
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
..
acpica ACPI: sleep: Avoid breaking S3 wakeup due to might_sleep() 2023-06-15 18:05:19 +02:00
apei APEI: GHES: correctly return NULL for ghes_get_devices() 2023-06-12 19:31:48 +02:00
arm64 ACPI/IORT: Remove erroneous id_count check in iort_node_get_rmr_info() 2023-07-28 14:50:50 +01:00
dptf
nfit ACPI: NFIT: Add declaration in a local header 2023-06-05 19:06:20 +02:00
numa
pmic
riscv drivers/acpi: RISC-V: Add RHCT related code 2023-06-01 08:45:04 -07:00
x86 Power management updates for 6.5-rc1 2023-06-26 19:36:30 -07:00
ac.c
acpi_adxl.c
acpi_amba.c
acpi_apd.c
acpi_cmos_rtc.c
acpi_configfs.c
acpi_dbg.c
acpi_extlog.c
acpi_ffh.c ACPI: FFH: Drop the inclusion of linux/arm-smccc.h 2023-06-12 19:28:20 +02:00
acpi_fpdt.c
acpi_ipmi.c
acpi_lpat.c
acpi_lpit.c
acpi_lpss.c
acpi_memhotplug.c
acpi_pad.c ACPI: PAD: mark Zhaoxin CPUs NONSTOP TSC correctly 2023-06-12 19:25:55 +02:00
acpi_pcc.c
acpi_platform.c ACPI: platform: Move SMB0001 HID to the header and reuse 2023-07-04 19:28:20 +02:00
acpi_pnp.c
acpi_processor.c
acpi_tad.c
acpi_video.c
acpi_watchdog.c
battery.c
bgrt.c
blacklist.c
bus.c Merge branches 'acpi-bus' and 'acpi-scan' 2023-07-06 19:24:06 +02:00
button.c Merge branches 'acpi-thermal' and 'acpi-button' 2023-06-26 17:20:28 +02:00
container.c
cppc_acpi.c
custom_method.c
debugfs.c
device_pm.c
device_sysfs.c ACPI: bus: Constify acpi_companion_match() returned value 2023-06-29 11:40:55 +02:00
dock.c
ec_sys.c
ec.c ACPI: EC: Fix acpi_ec_dispatch_gpe() 2023-06-27 17:06:51 +02:00
event.c
evged.c
fan_attr.c
fan_core.c
fan.h
glue.c
hed.c
internal.h Merge branches 'acpi-bus' and 'acpi-scan' 2023-07-06 19:24:06 +02:00
ioapic.c
irq.c
Kconfig LoongArch: Add SMT (Simultaneous Multi-Threading) support 2023-06-29 20:58:43 +08:00
Makefile drivers/acpi: RISC-V: Add RHCT related code 2023-06-01 08:45:04 -07:00
nvs.c
osi.c
osl.c
pci_irq.c
pci_link.c
pci_mcfg.c
pci_root.c
pci_slot.c
pfr_telemetry.c
pfr_update.c
platform_profile.c
power.c
pptt.c
prmt.c
proc.c
processor_core.c ACPI: processor_core: RISC-V: Enable mapping processor to the hartid 2023-06-01 08:45:02 -07:00
processor_driver.c
processor_idle.c
processor_pdc.c
processor_perflib.c
processor_thermal.c
processor_throttling.c
property.c
reboot.c
resource.c ACPI: resource: Remove "Zen" specific match and quirks 2023-06-05 19:20:33 +02:00
sbs.c
sbshc.c
sbshc.h
scan.c ACPI: scan: Use the acpi_match_acpi_device() helper 2023-07-04 19:28:20 +02:00
sleep.c Merge branches 'acpi-scan', 'acpi-pm', 'acpi-resource' and 'acpi-ec' 2023-06-26 16:54:10 +02:00
sleep.h
spcr.c
sysfs.c
tables.c
thermal.c ACPI: thermal: Drop struct acpi_thermal_flags 2023-06-16 20:16:44 +02:00
tiny-power-button.c ACPI: tiny-power-button: Eliminate the driver notify callback 2023-06-16 19:48:09 +02:00
utils.c
video_detect.c ACPI: video: Add backlight=native DMI quirk for Dell Studio 1569 2023-06-22 17:54:45 +02:00
viot.c
wakeup.c