On Wed, 14 Aug 2024 at 05:02, Sughosh Ganu <[email protected]> wrote: > > The sandbox iommu driver uses the LMB module to allocate a particular > range of memory for the device virtual address(DVA). This used to work > earlier since the LMB memory map was caller specific and not > global. But with the change to make the LMB allocations global and > persistent, adding this memory range has other side effects. On the > other hand, the sandbox iommu test expects to see this particular > value of the DVA. Use the DVA address directly, instead of mapping it > in the LMB memory map, and then have it allocated. > > Signed-off-by: Sughosh Ganu <[email protected]> > --- > Changes since V1: > * Move the DVA address and page size as macros to the test.h header > file. > > > arch/sandbox/include/asm/test.h | 4 ++++ > drivers/iommu/sandbox_iommu.c | 25 ++++++------------------- > 2 files changed, 10 insertions(+), 19 deletions(-)
Reviewed-by: Simon Glass <[email protected]>

