sandbox: iommu: remove lmb allocation in the driver
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@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -49,6 +49,10 @@ struct unit_test_state;
|
||||
#define PCI_EA_BAR2_MAGIC 0x72727272
|
||||
#define PCI_EA_BAR4_MAGIC 0x74747474
|
||||
|
||||
/* Used by the sandbox iommu driver */
|
||||
#define SANDBOX_IOMMU_DVA_ADDR 0x89abc000
|
||||
#define SANDBOX_IOMMU_PAGE_SIZE SZ_4K
|
||||
|
||||
enum {
|
||||
SANDBOX_IRQN_PEND = 1, /* Interrupt number for 'pending' test */
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user