hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/gpu/arm/bifrost/context/backend/mali_kbase_context_jm.c
....@@ -1,7 +1,7 @@
11 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
22 /*
33 *
4
- * (C) COPYRIGHT 2019-2021 ARM Limited. All rights reserved.
4
+ * (C) COPYRIGHT 2019-2022 ARM Limited. All rights reserved.
55 *
66 * This program is free software and is provided to you under the terms of the
77 * GNU General Public License version 2 as published by the Free Software
....@@ -27,7 +27,6 @@
2727 #include <gpu/mali_kbase_gpu_regmap.h>
2828 #include <mali_kbase.h>
2929 #include <mali_kbase_ctx_sched.h>
30
-#include <mali_kbase_dma_fence.h>
3130 #include <mali_kbase_kinstr_jm.h>
3231 #include <mali_kbase_mem_linux.h>
3332 #include <mali_kbase_mem_pool_group.h>
....@@ -36,11 +35,15 @@
3635
3736 #if IS_ENABLED(CONFIG_DEBUG_FS)
3837 #include <mali_kbase_debug_mem_view.h>
38
+#include <mali_kbase_debug_mem_zones.h>
39
+#include <mali_kbase_debug_mem_allocs.h>
3940 #include <mali_kbase_mem_pool_debugfs.h>
4041
4142 void kbase_context_debugfs_init(struct kbase_context *const kctx)
4243 {
4344 kbase_debug_mem_view_init(kctx);
45
+ kbase_debug_mem_zones_init(kctx);
46
+ kbase_debug_mem_allocs_init(kctx);
4447 kbase_mem_pool_debugfs_init(kctx->kctx_dentry, kctx);
4548 kbase_jit_debugfs_init(kctx);
4649 kbasep_jd_debugfs_ctx_init(kctx);
....@@ -110,6 +113,11 @@
110113 flush_workqueue(kctx->jctx.job_done_wq);
111114 }
112115
116
+/**
117
+ * kbase_context_free - Free kcontext at its destruction
118
+ *
119
+ * @kctx: kcontext to be freed
120
+ */
113121 static void kbase_context_free(struct kbase_context *kctx)
114122 {
115123 kbase_timeline_post_kbase_context_destroy(kctx);
....@@ -121,8 +129,6 @@
121129 { NULL, kbase_context_free, NULL },
122130 { kbase_context_common_init, kbase_context_common_term,
123131 "Common context initialization failed" },
124
- { kbase_dma_fence_init, kbase_dma_fence_term,
125
- "DMA fence initialization failed" },
126132 { kbase_context_mem_pool_group_init, kbase_context_mem_pool_group_term,
127133 "Memory pool group initialization failed" },
128134 { kbase_mem_evictable_init, kbase_mem_evictable_deinit,