diff options
author | diverj <diverj@google.com> | 2021-09-22 14:16:01 +0000 |
---|---|---|
committer | Jack Diver <diverj@google.com> | 2021-10-15 11:07:42 +0000 |
commit | 0b070c42f4de76913ab7f700d635590a3d3261e9 (patch) | |
tree | 72e49b1d99bdf3d63ca1bc14f2e646ea2e1cd3bc /mali_kbase/context | |
parent | 8780abac2d31c5fc96f243e7bea6f4110e005b61 (diff) | |
download | gpu-0b070c42f4de76913ab7f700d635590a3d3261e9.tar.gz |
mali_kbase: platform: Implement per UID time-in-state tracking for CSF
enabled GPUs
* Added optional callbacks for kbase_queue_group running and stopped events.
* The callbacks are executed within update_csg_slot_status where the driver
view of the csg slot is updated.
* An additional call to work_end is included directly in the interrupt
handler to reduce the timing inaccuracy.
* Modified the existing job manger atom start/end functions as well as
the dvfs_level_change, renamed them as work_start/end to be more generic,
and used ifdef's to tweak the implementations to use CSF stats and constants.
Bug: 198405284
Signed-off-by: diverj <diverj@google.com>
Change-Id: I506b4fb66955b111e705f9a57199864db110e6e0
Diffstat (limited to 'mali_kbase/context')
-rw-r--r-- | mali_kbase/context/backend/mali_kbase_context_csf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mali_kbase/context/backend/mali_kbase_context_csf.c b/mali_kbase/context/backend/mali_kbase_context_csf.c index 1ce806f..33912e6 100644 --- a/mali_kbase/context/backend/mali_kbase_context_csf.c +++ b/mali_kbase/context/backend/mali_kbase_context_csf.c @@ -99,6 +99,8 @@ static const struct kbase_context_init context_init[] = { "CSF context initialization failed" }, { kbase_context_add_to_dev_list, kbase_context_remove_from_dev_list, "Adding kctx to device failed" }, + { kbasep_platform_context_init, kbasep_platform_context_term, + "Platform callback for kctx initialization failed" }, }; static void kbase_context_term_partial( |