summaryrefslogtreecommitdiff
path: root/mali_kbase/backend/gpu/mali_kbase_jm_rb.c
diff options
context:
space:
mode:
authorJack Diver <diverj@google.com>2022-10-20 13:40:30 +0000
committerLucas Wei <lucaswei@google.com>2022-10-20 14:07:33 +0000
commit25610dd4fe18d44d5a454b063cb39f4ef211084e (patch)
treeb1c3fc3f3927fd53465b7f32f9aa11eb355777a7 /mali_kbase/backend/gpu/mali_kbase_jm_rb.c
parent83f5ee271f5531af167fb6174ae4c821605ad026 (diff)
downloadgpu-25610dd4fe18d44d5a454b063cb39f4ef211084e.tar.gz
mali_kbase: jm: Only execute work_begin on a transition to submitted
Without this patch, the platform work_begin callback will be called multiple times for the same atom if a state update request is made and the atom still resolves to submitted. Bug: 247721380 Test: Boot g101 to home Test: No per-UID-tis warnings Signed-off-by: Jack Diver <diverj@google.com> Change-Id: I535d1a1c2f983f0162dc0e18fe40544e61246d4c
Diffstat (limited to 'mali_kbase/backend/gpu/mali_kbase_jm_rb.c')
-rw-r--r--mali_kbase/backend/gpu/mali_kbase_jm_rb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mali_kbase/backend/gpu/mali_kbase_jm_rb.c b/mali_kbase/backend/gpu/mali_kbase_jm_rb.c
index 1f08b90..48d1de8 100644
--- a/mali_kbase/backend/gpu/mali_kbase_jm_rb.c
+++ b/mali_kbase/backend/gpu/mali_kbase_jm_rb.c
@@ -1015,6 +1015,8 @@ void kbase_backend_slot_update(struct kbase_device *kbdev)
katom[idx]->gpu_rb_state =
KBASE_ATOM_GPU_RB_SUBMITTED;
+ kbasep_platform_event_work_begin(katom[idx]);
+
/* ***TRANSITION TO HIGHER STATE*** */
fallthrough;
case KBASE_ATOM_GPU_RB_SUBMITTED:
@@ -1026,8 +1028,6 @@ void kbase_backend_slot_update(struct kbase_device *kbdev)
kbase_pm_metrics_update(kbdev,
&katom[idx]->start_timestamp);
- kbasep_platform_event_work_begin(katom[idx]);
-
break;
case KBASE_ATOM_GPU_RB_RETURN_TO_JS: