forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/arm/bifrost/context/backend/mali_kbase_context_csf.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
....@@ -26,7 +26,6 @@
2626 #include <context/mali_kbase_context_internal.h>
2727 #include <gpu/mali_kbase_gpu_regmap.h>
2828 #include <mali_kbase.h>
29
-#include <mali_kbase_dma_fence.h>
3029 #include <mali_kbase_mem_linux.h>
3130 #include <mali_kbase_mem_pool_group.h>
3231 #include <mmu/mali_kbase_mmu.h>
....@@ -35,19 +34,26 @@
3534 #if IS_ENABLED(CONFIG_DEBUG_FS)
3635 #include <csf/mali_kbase_csf_csg_debugfs.h>
3736 #include <csf/mali_kbase_csf_kcpu_debugfs.h>
37
+#include <csf/mali_kbase_csf_sync_debugfs.h>
3838 #include <csf/mali_kbase_csf_tiler_heap_debugfs.h>
3939 #include <csf/mali_kbase_csf_cpu_queue_debugfs.h>
4040 #include <mali_kbase_debug_mem_view.h>
41
+#include <mali_kbase_debug_mem_zones.h>
42
+#include <mali_kbase_debug_mem_allocs.h>
4143 #include <mali_kbase_mem_pool_debugfs.h>
4244
4345 void kbase_context_debugfs_init(struct kbase_context *const kctx)
4446 {
4547 kbase_debug_mem_view_init(kctx);
48
+ kbase_debug_mem_zones_init(kctx);
49
+ kbase_debug_mem_allocs_init(kctx);
4650 kbase_mem_pool_debugfs_init(kctx->kctx_dentry, kctx);
4751 kbase_jit_debugfs_init(kctx);
4852 kbase_csf_queue_group_debugfs_init(kctx);
4953 kbase_csf_kcpu_debugfs_init(kctx);
54
+ kbase_csf_sync_debugfs_init(kctx);
5055 kbase_csf_tiler_heap_debugfs_init(kctx);
56
+ kbase_csf_tiler_heap_total_debugfs_init(kctx);
5157 kbase_csf_cpu_queue_debugfs_init(kctx);
5258 }
5359 KBASE_EXPORT_SYMBOL(kbase_context_debugfs_init);