hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/gpu/arm/bifrost/Kbuild
....@@ -1,6 +1,6 @@
11 # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
22 #
3
-# (C) COPYRIGHT 2012-2021 ARM Limited. All rights reserved.
3
+# (C) COPYRIGHT 2012-2023 ARM Limited. All rights reserved.
44 #
55 # This program is free software and is provided to you under the terms of the
66 # GNU General Public License version 2 as published by the Free Software
....@@ -48,6 +48,10 @@
4848 $(error CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND must be set in Kernel configuration)
4949 endif
5050
51
+ifeq ($(CONFIG_FW_LOADER), n)
52
+ $(error CONFIG_FW_LOADER must be set in Kernel configuration)
53
+endif
54
+
5155 ifeq ($(CONFIG_MALI_PRFCNT_SET_SELECT_VIA_DEBUG_FS), y)
5256 ifneq ($(CONFIG_DEBUG_FS), y)
5357 $(error CONFIG_MALI_PRFCNT_SET_SELECT_VIA_DEBUG_FS depends on CONFIG_DEBUG_FS to be set in Kernel configuration)
....@@ -55,10 +59,8 @@
5559 endif
5660
5761 ifeq ($(CONFIG_MALI_BIFROST_FENCE_DEBUG), y)
58
- ifneq ($(CONFIG_SYNC), y)
59
- ifneq ($(CONFIG_SYNC_FILE), y)
60
- $(error CONFIG_MALI_BIFROST_FENCE_DEBUG depends on CONFIG_SYNC || CONFIG_SYNC_FILE to be set in Kernel configuration)
61
- endif
62
+ ifneq ($(CONFIG_SYNC_FILE), y)
63
+ $(error CONFIG_MALI_BIFROST_FENCE_DEBUG depends on CONFIG_SYNC_FILE to be set in Kernel configuration)
6264 endif
6365 endif
6466
....@@ -67,7 +69,7 @@
6769 #
6870
6971 # Driver version string which is returned to userspace via an ioctl
70
-MALI_RELEASE_NAME ?= '"g7p1-01bet0"'
72
+MALI_RELEASE_NAME ?= '"g18p0-01eac0"'
7173 # Set up defaults if not defined by build system
7274 ifeq ($(CONFIG_MALI_BIFROST_DEBUG), y)
7375 MALI_UNIT_TEST = 1
....@@ -77,8 +79,6 @@
7779 MALI_CUSTOMER_RELEASE ?= 1
7880 endif
7981 MALI_COVERAGE ?= 0
80
-
81
-CONFIG_MALI_PLATFORM_NAME ?= "devicetree"
8282
8383 # Kconfig passes in the name with quotes for in-tree builds - remove them.
8484 MALI_PLATFORM_DIR := $(shell echo $(CONFIG_MALI_PLATFORM_NAME))
....@@ -90,6 +90,7 @@
9090 MALI_JIT_PRESSURE_LIMIT_BASE ?= 1
9191 MALI_USE_CSF ?= 0
9292 endif
93
+
9394
9495 ifneq ($(CONFIG_MALI_KUTF), n)
9596 MALI_KERNEL_TEST_API ?= 1
....@@ -103,7 +104,7 @@
103104 #
104105 # Experimental features must default to disabled, e.g.:
105106 # MALI_EXPERIMENTAL_FEATURE ?= 0
106
-MALI_INCREMENTAL_RENDERING ?= 0
107
+MALI_INCREMENTAL_RENDERING_JM ?= 0
107108
108109 #
109110 # ccflags
....@@ -116,8 +117,7 @@
116117 -DMALI_COVERAGE=$(MALI_COVERAGE) \
117118 -DMALI_RELEASE_NAME=$(MALI_RELEASE_NAME) \
118119 -DMALI_JIT_PRESSURE_LIMIT_BASE=$(MALI_JIT_PRESSURE_LIMIT_BASE) \
119
- -DMALI_INCREMENTAL_RENDERING=$(MALI_INCREMENTAL_RENDERING) \
120
- -DMALI_KBASE_BUILD \
120
+ -DMALI_INCREMENTAL_RENDERING_JM=$(MALI_INCREMENTAL_RENDERING_JM) \
121121 -DMALI_PLATFORM_DIR=$(MALI_PLATFORM_DIR)
122122
123123
....@@ -149,18 +149,15 @@
149149 mali_kbase_cache_policy.o \
150150 mali_kbase_ccswe.o \
151151 mali_kbase_mem.o \
152
+ mali_kbase_mem_migrate.o \
152153 mali_kbase_mem_pool_group.o \
153154 mali_kbase_native_mgm.o \
154155 mali_kbase_ctx_sched.o \
155156 mali_kbase_gpuprops.o \
156157 mali_kbase_pm.o \
157158 mali_kbase_config.o \
159
+ mali_kbase_kinstr_prfcnt.o \
158160 mali_kbase_vinstr.o \
159
- mali_kbase_hwcnt.o \
160
- mali_kbase_hwcnt_gpu.o \
161
- mali_kbase_hwcnt_legacy.o \
162
- mali_kbase_hwcnt_types.o \
163
- mali_kbase_hwcnt_virtualizer.o \
164161 mali_kbase_softjobs.o \
165162 mali_kbase_hw.o \
166163 mali_kbase_debug.o \
....@@ -170,6 +167,8 @@
170167 mali_kbase_mem_profile_debugfs.o \
171168 mali_kbase_disjoint_events.o \
172169 mali_kbase_debug_mem_view.o \
170
+ mali_kbase_debug_mem_zones.o \
171
+ mali_kbase_debug_mem_allocs.o \
173172 mali_kbase_smc.o \
174173 mali_kbase_mem_pool.o \
175174 mali_kbase_mem_pool_debugfs.o \
....@@ -179,27 +178,21 @@
179178 mali_kbase_regs_history_debugfs.o \
180179 mali_kbase_dvfs_debugfs.o \
181180 mali_power_gpu_frequency_trace.o \
182
- mali_kbase_trace_gpu_mem.o
181
+ mali_kbase_trace_gpu_mem.o \
182
+ mali_kbase_pbha.o
183
+
184
+bifrost_kbase-$(CONFIG_DEBUG_FS) += mali_kbase_pbha_debugfs.o
183185
184186 bifrost_kbase-$(CONFIG_MALI_CINSTR_GWT) += mali_kbase_gwt.o
185
-
186
-bifrost_kbase-$(CONFIG_SYNC) += \
187
- mali_kbase_sync_android.o \
188
- mali_kbase_sync_common.o
189187
190188 bifrost_kbase-$(CONFIG_SYNC_FILE) += \
191189 mali_kbase_fence_ops.o \
192190 mali_kbase_sync_file.o \
193191 mali_kbase_sync_common.o
194192
195
-ifeq ($(CONFIG_MALI_CSF_SUPPORT),y)
196
- bifrost_kbase-y += \
197
- mali_kbase_hwcnt_backend_csf.o \
198
- mali_kbase_hwcnt_backend_csf_if_fw.o
199
-else
193
+ifneq ($(CONFIG_MALI_CSF_SUPPORT),y)
200194 bifrost_kbase-y += \
201195 mali_kbase_jm.o \
202
- mali_kbase_hwcnt_backend_jm.o \
203196 mali_kbase_dummy_job_wa.o \
204197 mali_kbase_debug_job_fault.o \
205198 mali_kbase_event.o \
....@@ -208,11 +201,6 @@
208201 mali_kbase_js.o \
209202 mali_kbase_js_ctx_attr.o \
210203 mali_kbase_kinstr_jm.o
211
-
212
- bifrost_kbase-$(CONFIG_MALI_BIFROST_DMA_FENCE) += \
213
- mali_kbase_fence_ops.o \
214
- mali_kbase_dma_fence.o \
215
- mali_kbase_fence.o
216204
217205 bifrost_kbase-$(CONFIG_SYNC_FILE) += \
218206 mali_kbase_fence_ops.o \
....@@ -227,6 +215,7 @@
227215 $(src)/backend/gpu/Kbuild \
228216 $(src)/mmu/Kbuild \
229217 $(src)/tl/Kbuild \
218
+ $(src)/hwcnt/Kbuild \
230219 $(src)/gpu/Kbuild \
231220 $(src)/thirdparty/Kbuild \
232221 $(src)/platform/$(MALI_PLATFORM_DIR)/Kbuild