summaryrefslogtreecommitdiff
path: root/mali_kbase/backend
diff options
context:
space:
mode:
authorJack Diver <diverj@google.com>2022-07-20 11:22:09 +0000
committerJonglin Lee <jonglin@google.com>2022-08-10 18:26:09 +0000
commit1d7dc02a7a1fa366297455a211cb1e59939ee21d (patch)
tree104269d51102608b9ec76639201c3bfdec7414a7 /mali_kbase/backend
parentac29a9bd11a9c9c191d7830d52b2f30adad3fe65 (diff)
downloadgpu-1d7dc02a7a1fa366297455a211cb1e59939ee21d.tar.gz
mali_kbase: platform: DVFS debug log
Log last 100 DVFS level changes from known hang points Bug: 232508335 Change-Id: I6325de023c7018366a40c6b6b67477148887ab94 Signed-off-by: Jonglin Lee <jonglin@google.com>
Diffstat (limited to 'mali_kbase/backend')
-rw-r--r--mali_kbase/backend/gpu/mali_kbase_pm_metrics.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mali_kbase/backend/gpu/mali_kbase_pm_metrics.c b/mali_kbase/backend/gpu/mali_kbase_pm_metrics.c
index f85b466..a218568 100644
--- a/mali_kbase/backend/gpu/mali_kbase_pm_metrics.c
+++ b/mali_kbase/backend/gpu/mali_kbase_pm_metrics.c
@@ -48,6 +48,9 @@
#define GPU_ACTIVE_SCALING_FACTOR ((u64)1E9)
#endif
+void gpu_dvfs_debug_dump(struct kbase_device *kbdev);
+
+
#ifdef CONFIG_MALI_MIDGARD_DVFS
static enum hrtimer_restart dvfs_callback(struct hrtimer *timer)
{
@@ -242,6 +245,7 @@ static void kbase_pm_get_dvfs_utilisation_calc(struct kbase_device *kbdev)
"GPU activity takes longer than time interval: %llu ns > %llu ns",
(unsigned long long)gpu_active_counter,
(unsigned long long)diff_ns);
+ gpu_dvfs_debug_dump(kbdev);
}
}
#endif