summaryrefslogtreecommitdiff
path: root/mali_kbase/backend
diff options
context:
space:
mode:
authorKevin DuBois <kevindubois@google.com>2022-12-15 19:20:26 +0000
committerKevin DuBois <kevindubois@google.com>2022-12-20 23:26:13 +0000
commit0483baae8f0ccdb93a8345200dd1ab74f16b27e8 (patch)
tree7b08058a0026898db0007b9936cf65379a9de159 /mali_kbase/backend
parent8f693d381b0a1b06ab4cc768d8f2e351b211bb61 (diff)
downloadgpu-0483baae8f0ccdb93a8345200dd1ab74f16b27e8.tar.gz
mali_kbase: workaround: pause before init L2 on.
Some devices seem to get stuck when trying to turn L2 on in rare case. As workaround, place a pause of 200us before writing L2_PWRON. Test: build, boot Test: stability test Bug: 262266339 Change-Id: I6acfbb5fbe4497e4adacab01ceb6bfd90e646874
Diffstat (limited to 'mali_kbase/backend')
-rw-r--r--mali_kbase/backend/gpu/mali_kbase_pm_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mali_kbase/backend/gpu/mali_kbase_pm_driver.c b/mali_kbase/backend/gpu/mali_kbase_pm_driver.c
index 840ca26..2ef22d9 100644
--- a/mali_kbase/backend/gpu/mali_kbase_pm_driver.c
+++ b/mali_kbase/backend/gpu/mali_kbase_pm_driver.c
@@ -1276,6 +1276,8 @@ static int kbase_pm_l2_update_state(struct kbase_device *kbdev)
switch (backend->l2_state) {
case KBASE_L2_OFF:
if (kbase_pm_is_l2_desired(kbdev)) {
+ // Workaround: give a short pause here before starting L2 transition.
+ udelay(200);
#if MALI_USE_CSF && defined(KBASE_PM_RUNTIME)
/* Enable HW timer of IPA control before
* L2 cache is powered-up.