Re: [PATCH v3 3/7] ACPI/IORT: Handle memory address size limits as limits

From
Hanjun Guo <guohanjun@huawei.com>
Date
2024-02-24 11:43:31
Also in
linux-acpi, linux-devicetree, linux-iommu, lkml
Reply to
Robin Murphy, 2024-02-09
On 2024/2/10 0:50, Robin Murphy wrote:
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.

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
---
v2: Avoid undefined shifts (grr...)
---
  drivers/acpi/arm64/dma.c  |  9 +++------
  drivers/acpi/arm64/iort.c | 20 ++++++++++----------
  include/linux/acpi_iort.h |  4 ++--
  3 files changed, 15 insertions(+), 18 deletions(-)
This also makes the code easier to read,

Acked-by: Hanjun Guo <guohanjun@huawei.com>

Thanks
Hanjun

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (17 messages) 17 messages, 6 authors, last reply 2024-03-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help