Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f99bce02 authored by Lynus Vaz's avatar Lynus Vaz
Browse files

msm: kgsl: Use context bank 1 for IOMMU-v2



As of commit 27cfed19 IOMMU-v2 uses context bank 1 for gfx3d_user instead
of context bank 0. Update the context offsets accordingly to access the
registers of the appropriate context bank.

Change-Id: I6c9c2b74e7ea82ec07fb916968bba85e8eb79b3e
Signed-off-by: default avatarLynus Vaz <lvaz@codeaurora.org>
parent 61a76028
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -17,12 +17,12 @@

#define KGSL_IOMMU_CTX_OFFSET_V0	0
#define KGSL_IOMMU_CTX_OFFSET_V1	0x8000
#define KGSL_IOMMU_CTX_OFFSET_V2	0x8000
#define KGSL_IOMMU_CTX_OFFSET_V2	0x9000
#define KGSL_IOMMU_CTX_SHIFT		12

/* IOMMU V2 AHB base is fixed */
#define KGSL_IOMMU_V2_AHB_BASE		0xA000
/* IOMMU_V2 AHB base points to ContextBank0 */
/* IOMMU_V2 AHB base points to ContextBank1 */
#define KGSL_IOMMU_CTX_AHB_OFFSET_V2   0

/* TLBLKCR fields */