acrn-kernel/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
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
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: LPSS: Add pwm_lookup_table entry for second PWM on CHT/BSW devices 2023-05-19 20:17:10 +02:00
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: video: Remove register_backlight_delay module option and code 2023-04-11 20:55:46 +02:00
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.c ACPI: EC: Fix acpi_ec_dispatch_gpe() 2023-06-27 17:06:51 +02:00
ec_sys.c
event.c
evged.c
fan.h
fan_attr.c
fan_core.c
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
nvs.c
osi.c
osl.c ACPI: OSL: Make should_use_kmap() 0 for RISC-V 2023-06-01 08:45:00 -07:00
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 ACPI: PM: Do not turn of unused power resources on the Toshiba Click Mini 2023-04-27 18:44:43 +02:00
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 x86/smpboot: Remove the CPU0 hotplug kludge 2023-05-15 13:44:49 +02:00
processor_pdc.c
processor_perflib.c
processor_thermal.c
processor_throttling.c
property.c ACPI: property: Refactor acpi_data_prop_read_single() 2023-03-27 20:48:36 +02:00
reboot.c
resource.c ACPI: resource: Remove "Zen" specific match and quirks 2023-06-05 19:20:33 +02:00
sbs.c ACPI: SBS: Fix handling of Smart Battery Selectors 2023-03-30 19:01:05 +02:00
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 ACPI: SPCR: Amend indentation 2023-03-27 20:50:28 +02:00
sysfs.c ACPI: sysfs: Enable ACPI sysfs support for CCEL records 2023-03-27 20:43:58 +02:00
tables.c ACPI: tables: Print RINTC information when MADT is parsed 2023-06-01 08:44:59 -07:00
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 ACPI: VIOT: Initialize the correct IOMMU fwspec 2023-03-30 19:20:42 +02:00
wakeup.c