hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/gpu/arm/bifrost/build.bp
....@@ -1,7 +1,7 @@
11 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
22 /*
33 *
4
- * (C) COPYRIGHT 2017-2021 ARM Limited. All rights reserved.
4
+ * (C) COPYRIGHT 2017-2023 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
....@@ -28,11 +28,15 @@
2828 defaults: [
2929 "kernel_defaults",
3030 ],
31
- no_mali: {
31
+ mali_no_mali: {
3232 kbuild_options: [
3333 "CONFIG_MALI_BIFROST_NO_MALI=y",
3434 "CONFIG_MALI_NO_MALI_DEFAULT_GPU={{.gpu}}",
35
+ "CONFIG_GPU_HWVER={{.hwver}}",
3536 ],
37
+ },
38
+ mali_platform_dt_pin_rst: {
39
+ kbuild_options: ["CONFIG_MALI_PLATFORM_DT_PIN_RST=y"],
3640 },
3741 gpu_has_csf: {
3842 kbuild_options: ["CONFIG_MALI_CSF_SUPPORT=y"],
....@@ -49,9 +53,6 @@
4953 mali_midgard_enable_trace: {
5054 kbuild_options: ["CONFIG_MALI_BIFROST_ENABLE_TRACE=y"],
5155 },
52
- mali_dma_fence: {
53
- kbuild_options: ["CONFIG_MALI_BIFROST_DMA_FENCE=y"],
54
- },
5556 mali_arbiter_support: {
5657 kbuild_options: ["CONFIG_MALI_ARBITER_SUPPORT=y"],
5758 },
....@@ -61,8 +62,11 @@
6162 mali_dma_buf_legacy_compat: {
6263 kbuild_options: ["CONFIG_MALI_DMA_BUF_LEGACY_COMPAT=y"],
6364 },
64
- mali_2mb_alloc: {
65
- kbuild_options: ["CONFIG_MALI_2MB_ALLOC=y"],
65
+ large_page_alloc_override: {
66
+ kbuild_options: ["CONFIG_LARGE_PAGE_ALLOC_OVERRIDE=y"],
67
+ },
68
+ large_page_alloc: {
69
+ kbuild_options: ["CONFIG_LARGE_PAGE_ALLOC=y"],
6670 },
6771 mali_memory_fully_backed: {
6872 kbuild_options: ["CONFIG_MALI_MEMORY_FULLY_BACKED=y"],
....@@ -84,9 +88,6 @@
8488 },
8589 mali_error_inject: {
8690 kbuild_options: ["CONFIG_MALI_BIFROST_ERROR_INJECT=y"],
87
- },
88
- mali_gem5_build: {
89
- kbuild_options: ["CONFIG_MALI_GEM5_BUILD=y"],
9091 },
9192 mali_debug: {
9293 kbuild_options: [
....@@ -133,6 +134,12 @@
133134 mali_hw_errata_1485982_use_clock_alternative: {
134135 kbuild_options: ["CONFIG_MALI_HW_ERRATA_1485982_USE_CLOCK_ALTERNATIVE=y"],
135136 },
137
+ platform_is_fpga: {
138
+ kbuild_options: ["CONFIG_MALI_IS_FPGA=y"],
139
+ },
140
+ mali_coresight: {
141
+ kbuild_options: ["CONFIG_MALI_CORESIGHT=y"],
142
+ },
136143 kbuild_options: [
137144 "CONFIG_MALI_PLATFORM_NAME={{.mali_platform_name}}",
138145 "MALI_CUSTOMER_RELEASE={{.release}}",
....@@ -153,8 +160,8 @@
153160 // is an umbrella feature that would be open for inappropriate use
154161 // (catch-all for experimental CS code without separating it into
155162 // different features).
156
- "MALI_INCREMENTAL_RENDERING={{.incremental_rendering}}",
157
- "GPU_TIMESTAMP_CORRECTION={{.gpu_timestamp_correction}}",
163
+ "MALI_INCREMENTAL_RENDERING_JM={{.incremental_rendering_jm}}",
164
+ "MALI_BASE_CSF_PERFORMANCE_TESTS={{.base_csf_performance_tests}}",
158165 ],
159166 }
160167
....@@ -173,6 +180,10 @@
173180 "context/*.c",
174181 "context/*.h",
175182 "context/Kbuild",
183
+ "hwcnt/*.c",
184
+ "hwcnt/*.h",
185
+ "hwcnt/backend/*.h",
186
+ "hwcnt/Kbuild",
176187 "ipa/*.c",
177188 "ipa/*.h",
178189 "ipa/Kbuild",
....@@ -180,6 +191,15 @@
180191 "platform/*/*.c",
181192 "platform/*/*.h",
182193 "platform/*/Kbuild",
194
+ "platform/*/*/*.c",
195
+ "platform/*/*/*.h",
196
+ "platform/*/*/Kbuild",
197
+ "platform/*/*/*.c",
198
+ "platform/*/*/*.h",
199
+ "platform/*/*/Kbuild",
200
+ "platform/*/*/*/*.c",
201
+ "platform/*/*/*/*.h",
202
+ "platform/*/*/*/Kbuild",
183203 "thirdparty/*.c",
184204 "thirdparty/Kbuild",
185205 "debug/*.c",
....@@ -206,6 +226,10 @@
206226 "device/backend/*_jm.c",
207227 "gpu/backend/*_jm.c",
208228 "gpu/backend/*_jm.h",
229
+ "hwcnt/backend/*_jm.c",
230
+ "hwcnt/backend/*_jm.h",
231
+ "hwcnt/backend/*_jm_*.c",
232
+ "hwcnt/backend/*_jm_*.h",
209233 "jm/*.h",
210234 "tl/backend/*_jm.c",
211235 "mmu/backend/*_jm.c",
....@@ -227,6 +251,10 @@
227251 "device/backend/*_csf.c",
228252 "gpu/backend/*_csf.c",
229253 "gpu/backend/*_csf.h",
254
+ "hwcnt/backend/*_csf.c",
255
+ "hwcnt/backend/*_csf.h",
256
+ "hwcnt/backend/*_csf_*.c",
257
+ "hwcnt/backend/*_csf_*.h",
230258 "tl/backend/*_csf.c",
231259 "mmu/backend/*_csf.c",
232260 "ipa/backend/*_csf.c",