Commit 69879329 authored by Sukadev Bhattiprolu's avatar Sukadev Bhattiprolu Committed by Treehugger Robot
Browse files

ANDROID: iommu: Define vendor hook to limit max alignment

When the IOVA framework applies IOVA alignment it aligns all IOVAs
to the smallest PAGE_SIZE order which is greater than or equal to
the requested IOVA size.

We support use cases that requires large buffers (> 64 MB in size)
to be allocated and mapped in their stage 1 page tables.  However,
with this alignment scheme we find ourselves running out of IOVA
space for 32 bit devices,

Define a vendor hook to allow limiting the alignment value used when
allocating IOVAs.

We addressed this issue in Android13-5.15 with commit 989b762e
("FROMLIST: iommu/iova: Add support for IOVA max alignment tuning")

Bug: 190519428
Change-Id: I13032c1b440c050860109aae23f96c0b52782664
Link: https://lore.kernel.org/r/1634148667-409263-1-git-send-email-quic_c_gdjako@quicinc.com/


Signed-off-by: default avatarSukadev Bhattiprolu <quic_sukadev@quicinc.com>
parent e328894d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment