[PATCH v2 23/32] sandbox: iommu: remove lmb allocation in the driver
Simon Glass
sjg at chromium.org
Thu Aug 15 22:32:19 CEST 2024
On Wed, 14 Aug 2024 at 05:02, Sughosh Ganu <sughosh.ganu at linaro.org> 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 <sughosh.ganu at linaro.org>
> ---
> 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 <sjg at chromium.org>
More information about the U-Boot
mailing list