summaryrefstree
path: root/kernel/drivers/gpu/arm/tMIx/r2p0/Kconfig
blob: 01fcb7fd24805a500532e1ab3076cdf0b5b7a0d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
#
# (C) COPYRIGHT 2012-2015 ARM Limited. All rights reserved.
#
# This program is free software and is provided to you under the terms of the
# GNU General Public License version 2 as published by the Free Software
# Foundation, and any use by you of this program is subject to the terms
# of such GNU licence.
#
# A copy of the licence is included with the program, and can also be obtained
# from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA  02110-1301, USA.
#
#



# MALI_SEC_INTEGRATION
# To resolve the choice error in Kconfig,
# move the config selection to Kbulid.
#
# choice
#	prompt "Streamline support"
#	depends on MALI_R12P0
#	default MALI_TIMELINE_DISABLED
#	help
#	  Select streamline support configuration.
#
# config MALI_TIMELINE_DISABLED
#	bool "Streamline support disabled"
#	depends on MALI_R12P0
#	help
#	  Disable support for ARM Streamline Performance Analyzer.
#
#	  Timeline support will not be included in
#	  kernel code.
#	  Debug stream will not be generated.
#
# config MALI_GATOR_SUPPORT_TIMELINE
#	bool "Streamline support via Gator"
#	default n
#	depends on MALI_R12P0
#	help
#	  Adds diagnostic support for use with the ARM Streamline Performance Analyzer.
#	  You will need the Gator device driver already loaded before loading this driver when enabling
#	  Streamline debug support.
#
# config MALI_MIPE_ENABLED
#	bool "Streamline support via MIPE"
#	depends on MALI_R12P0
#	help
#	  Adds diagnostic support for use with the ARM Streamline Performance Analyzer.
#
#	  Stream will be transmitted directly to Mali GPU library.
#	  Compatible version of the library is required to read debug stream generated by kernel.
#
# endchoice
#	  This is a legacy interface required by older versions of Streamline.

# { SRUK-MALI_SYSTRACE_SUPPORT
config MALI_SYSTRACE_SUPPORT
	bool "systrace Debug support"
	depends on MALI_T8XX
	default y
	help
	  Enable systrace marker in kernel
# SRUK-MALI_SYSTRACE_SUPPORT }

config MALI_GATOR_SUPPORT
	bool "Streamline support via Gator"
	depends on MALI_MIDGARD
	default n
	help
	  Adds diagnostic support for use with the ARM Streamline Performance Analyzer.
	  You will need the Gator device driver already loaded before loading this driver when enabling
	  Streamline debug support.
	  This is a legacy interface required by older versions of Streamline.

config MALI_DVFS
	bool "Enable DVFS"
	depends on MALI_TMIX
	default n
	help
	  Choose this option to enable DVFS in the Mali Midgard DDK.

config MALI_PM_QOS
	bool "Enable DVFS with QoS"
	depends on MALI_TMIX && MALI_DVFS && PM_DEVFREQ && CPU_FREQ
	default n
	help
	  Choose this option to enable PM_QOS in the Mali tMIX DDK.

config MALI_BTS_OPTIMIZATION
	bool "Enable GPU BTS"
	depends on MALI_DVFS
	default n
	help
	  Choose this option to enable BTS in the Mali tMIX DDK.

config MALI_RT_PM
	bool "Enable Runtime power management"
	depends on MALI_TMIX
	depends on PM
	default y
	help
	  Choose this option to enable runtime power management in the Mali Midgard DDK.

config MALI_MIDGARD_ENABLE_TRACE
	bool "Enable MIDGARD kbase tracing"
	depends on MALI_TMIX
	default n
	help
	  Enables tracing in kbase.  Trace log available through
	  the "mali_trace" debugfs file, when the CONFIG_DEBUG_FS is enabled

config MALI_EXYNOS_TRACE
	bool "Enable EXYNOS kbase tracing"
	depends on MALI_TMIX
	default y
	help
	  Enables tracing in kbase.  Trace log available through
	  the "mali_trace" debugfs file, when the CONFIG_DEBUG_FS is enabled

config MALI_EXYNOS_TRACE_ALL
	bool "Enable EXYNOS kbase tracing with Mali Trace"
	depends on MALI_TMIX
	depends on MALI_EXYNOS_TRACE
	default n
	help
	  Change tracing level in kbase. Trace log available through
	  the "mali_trace" debugfs file, when the CONFIG_DEBUG_FS is enabled

config MALI_DEBUG_SYS
	bool "Enable sysfs for the Mali Midgard DDK "
	depends on MALI_TMIX && SYSFS
	default y
	help
	  Enables sysfs for the Mali Midgard DDK. Set/Monitor the Mali Midgard DDK

config MALI_DEVFREQ
	bool "devfreq support for Mali"
	depends on MALI_TMIX && PM_DEVFREQ
	help
	  Support devfreq for Mali.

	  Using the devfreq framework and, by default, the simpleondemand
	  governor, the frequency of Mali will be dynamically selected from the
	  available OPPs.

config MALI_DMA_FENCE
	bool "DMA_BUF fence support for Mali"
	depends on MALI_TMIX && !KDS
	default n
	help
	  Support DMA_BUF fences for Mali.

	  This option should only be enabled if KDS is not present and
	  the Linux Kernel has built in support for DMA_BUF fences.

config MALI_GPU_CORE_MASK_SELECTION
	bool "gpu core mask selection for Mali"
	depends on MALI_TMIX
	default y
	help
		Support gpu core mask selection for Mali.

		Using the gpu coremask selection.

config MALI_EXYNOS_SECURE_RENDERING
       bool "Exynos Secure Rendering Support"
       depends on MALI_TMIX && ION_EXYNOS && EXYNOS_CONTENT_PATH_PROTECTION
       default n
       help
               Support Secure Rendering with Exynos SoC

config MALI_DEBUG_KERNEL_SYSFS
       bool "Support Kernel Group Debug SysFS"
       depends on MALI_TMIX && MALI_DEBUG_SYS
       default n
       help
               Support Support Kernel Group Debug SysFS on /sys/kernel/gpu

# MALI_EXPERT configuration options

menuconfig MALI_EXPERT
	depends on MALI_TMIX
	bool "Enable Expert Settings"
	default n
	help
	  Enabling this option and modifying the default settings may produce a driver with performance or
	  other limitations.

config MALI_PRFCNT_SET_SECONDARY
	bool "Use secondary set of performance counters"
	depends on MALI_TMIX && MALI_EXPERT
	default n
	help
	  Select this option to use secondary set of performance counters. Kernel
	  features that depend on an access to the primary set of counters may
	  become unavailable. Enabling this option will prevent power management
	  from working optimally and may cause instrumentation tools to return
	  bogus results.

	  If unsure, say N.

#config MALI_PLATFORM_FAKE
#	bool "Enable fake platform device support"
#	depends on MALI_TMIX && MALI_EXPERT
#	default n
#	help
#	  When you start to work with the Mali Midgard series device driver the platform-specific code of
#	  the Linux kernel for your platform may not be complete. In this situation the kernel device driver
#	  supports creating the platform device outside of the Linux platform-specific code.
#	  Enable this option if would like to use a platform device configuration from within the device driver.
#
#choice
#	prompt "Platform configuration"
#	depends on MALI_MIDGARD && MALI_EXPERT
#	default MALI_PLATFORM_DEVICETREE
#	help
#	  Select the SOC platform that contains a Mali Midgard GPU
#
#config MALI_PLATFORM_DEVICETREE
#	bool "Device Tree platform"
#	depends on OF
#	help
#	  Select this option to use Device Tree with the Mali driver.
#
#	  When using this option the Mali driver will get the details of the
#	  GPU hardware from the Device Tree. This means that the same driver
#	  binary can run on multiple platforms as long as all the GPU hardware
#	  details are described in the device tree.
#
#	  Device Tree is the recommended method for the Mali driver platform
#	  integration.
#
#config MALI_PLATFORM_VEXPRESS
#	depends on ARCH_VEXPRESS && (ARCH_VEXPRESS_CA9X4 || ARCH_VEXPRESS_CA15X4)
#	bool "Versatile Express"
#config MALI_PLATFORM_VEXPRESS_VIRTEX7_40MHZ
#	depends on ARCH_VEXPRESS && (ARCH_VEXPRESS_CA9X4 || ARCH_VEXPRESS_CA15X4)
#	bool "Versatile Express w/Virtex7 @ 40Mhz"
#config MALI_PLATFORM_GOLDFISH
#	depends on ARCH_GOLDFISH
#	bool "Android Goldfish virtual CPU"
#config MALI_PLATFORM_PBX
#	depends on ARCH_REALVIEW && REALVIEW_EB_A9MP && MACH_REALVIEW_PBX
#	bool "Realview PBX-A9"
#
#endchoice

config MALI_PLATFORM_THIRDPARTY
    depends on MALI_TMIX
    bool "Third Party Platform"
    default y
      help
      Select the SOC platform that contains a Mali-T8XX

config MALI_PLATFORM_THIRDPARTY_NAME
	depends on MALI_TMIX && MALI_PLATFORM_THIRDPARTY && MALI_EXPERT
	string "Third party platform name"
	help
	  Enter the name of a third party platform that is supported. The third part configuration
	  file must be in midgard/config/tpip/mali_kbase_config_xxx.c where xxx is the name
	  specified here.

config MALI_DEBUG
	bool "Debug build"
	depends on MALI_TMIX && MALI_EXPERT
	default n
	help
	  Select this option for increased checking and reporting of errors.

config MALI_FENCE_DEBUG
	bool "Debug sync fence usage"
	depends on MALI_TMIX && MALI_EXPERT && SYNC
	default y if MALI_DEBUG
	help
	  Select this option to enable additional checking and reporting on the
	  use of sync fences in the Mali driver.

	  This will add a 3s timeout to all sync fence waits in the Mali
	  driver, so that when work for Mali has been waiting on a sync fence
	  for a long time a debug message will be printed, detailing what fence
	  is causing the block, and which dependent Mali atoms are blocked as a
	  result of this.

	  The timeout can be changed at runtime through the js_soft_timeout
	  device attribute, where the timeout is specified in milliseconds.

config MALI_NO_MALI
	bool "No Mali"
	depends on MALI_TMIX && MALI_EXPERT
	default n
	help
	  This can be used to test the driver in a simulated environment
	  whereby the hardware is not physically present. If the hardware is physically
	  present it will not be used. This can be used to test the majority of the
	  driver without needing actual hardware or for software benchmarking.
	  All calls to the simulated hardware will complete immediately as if the hardware
	  completed the task.

config MALI_ERROR_INJECT
	bool "Error injection"
	depends on MALI_TMIX && MALI_EXPERT && MALI_NO_MALI
	default n
	help
	  Enables insertion of errors to test module failure and recovery mechanisms.

config MALI_TRACE_TIMELINE
	bool "Timeline tracing"
	depends on MALI_TMIX && MALI_EXPERT
	default n
	help
	  Enables timeline tracing through the kernel tracepoint system.

config MALI_SYSTEM_TRACE
	bool "Enable system event tracing support"
	depends on MALI_TMIX && MALI_EXPERT
	default n
	help
	  Choose this option to enable system trace events for each
	  kbase event.	This is typically used for debugging but has
	  minimal overhead when not in use. Enable only if you know what
	  you are doing.

config MALI_SEC_HWCNT
	bool "Enable sec hwcnt feature"
	depends on MALI_TMIX
	default n
	help
	
	  Enable sec hwcnt feature.

config MALI_GPU_MMU_AARCH64
	bool "Use AArch64 page tables"
	depends on MALI_TMIX && MALI_EXPERT
	default n
	help
	  Use AArch64 format page tables for the GPU instead of LPAE-style.
	  The two formats have the same functionality and performance but a
	  future GPU may deprecate or remove the legacy LPAE-style format.

	  The LPAE-style format is supported on all Midgard and current Bifrost
	  GPUs. Enabling AArch64 format restricts the driver to only supporting
	  Bifrost GPUs.

	  If in doubt, say N.

source "drivers/gpu/arm/tMIx/r2p0/platform/Kconfig"