ACPI/IORT: Handle memory address size limits as limits
authorRobin Murphy <robin.murphy@arm.com>
Fri, 19 Apr 2024 16:54:42 +0000 (17:54 +0100)
committerJoerg Roedel <jroedel@suse.de>
Fri, 26 Apr 2024 10:07:23 +0000 (12:07 +0200)
commit91cfd679f9e8b9a7bf2f26adf66eff99dbe2026b
treeca69e75a2bba33ccc84f4685f6282291cdb6ff4e
parentba503cf41c90e173f9421f7882d84b228bada97a
ACPI/IORT: Handle memory address size limits as limits

Return the Root Complex/Named Component memory address size limit as an
inclusive limit value, rather than an exclusive size. This saves having
to fudge an off-by-one for the 64-bit case, and simplifies our caller.

Acked-by: Hanjun Guo <guohanjun@huawei.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/284ae9fbadb12f2e3b5a30cd4d037d0e6843a8f4.1713523152.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/acpi/arm64/dma.c
drivers/acpi/arm64/iort.c
include/linux/acpi_iort.h