msm: kgsl: Initialize protect registers before powerup list
These registers are part of the IFPC power up list. So, perform
these register writes before populating the list.
Change-Id: I0d48316daf285eee68f8594908b3e925d9c677fc
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
diff --git a/drivers/gpu/msm/adreno_a6xx.c b/drivers/gpu/msm/adreno_a6xx.c
index 7b783a9..1250437 100644
--- a/drivers/gpu/msm/adreno_a6xx.c
+++ b/drivers/gpu/msm/adreno_a6xx.c
@@ -791,13 +791,14 @@
kgsl_regwrite(device, A6XX_RB_CONTEXT_SWITCH_GMEM_SAVE_RESTORE,
0x1);
+ a6xx_protect_init(adreno_dev);
+
if (!patch_reglist && (adreno_dev->pwrup_reglist.gpuaddr != 0)) {
a6xx_patch_pwrup_reglist(adreno_dev);
patch_reglist = true;
}
a6xx_preemption_start(adreno_dev);
- a6xx_protect_init(adreno_dev);
/*
* We start LM here because we want all the following to be up