Merge tag 'v3.10.95' into update
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / misc / mediatek / gpu / mt8127 / mali / mali / Kconfig
1 config MALI400
2 tristate "Mali-300/400/450 support"
3 depends on ARM
4 select DMA_SHARED_BUFFER
5 ---help---
6 This enables support for the ARM Mali-300, Mali-400, and Mali-450
7 GPUs.
8
9 To compile this driver as a module, choose M here: the module will be
10 called mali.
11
12 config MALI450
13 bool "Enable Mali-450 support"
14 depends on MALI400
15 ---help---
16 This enables support for Mali-450 specific features.
17
18 config MALI400_DEBUG
19 bool "Enable debug in Mali driver"
20 depends on MALI400
21 ---help---
22 This enabled extra debug checks and messages in the Mali driver.
23
24 config MALI400_PROFILING
25 bool "Enable Mali profiling"
26 depends on MALI400
27 select TRACEPOINTS
28 default y
29 ---help---
30 This enables gator profiling of Mali GPU events.
31
32 config MALI400_INTERNAL_PROFILING
33 bool "Enable internal Mali profiling API"
34 depends on MALI400_PROFILING
35 default n
36 ---help---
37 This enables the internal legacy Mali profiling API.
38
39 config MALI400_UMP
40 bool "Enable UMP support"
41 depends on MALI400
42 ---help---
43 This enables support for the UMP memory sharing API in the Mali driver.
44
45 config MALI400_POWER_PERFORMANCE_POLICY
46 bool "Enable Mali power performance policy"
47 depends on ARM
48 default n
49 ---help---
50 This enables support for dynamic performance scaling of Mali with the goal of lowering power consumption.
51
52 config MALI_DMA_BUF_MAP_ON_ATTACH
53 bool "Map dma-buf attachments on attach"
54 depends on MALI400 && DMA_SHARED_BUFFER
55 default y
56 ---help---
57 This makes the Mali driver map dma-buf attachments after doing
58 attach. If this is not set the dma-buf attachments will be mapped for
59 every time the GPU need to access the buffer.
60
61 Mapping for each access can cause lower performance.
62
63 config MALI_SHARED_INTERRUPTS
64 bool "Support for shared interrupts"
65 depends on MALI400
66 default n
67 ---help---
68 Adds functionality required to properly support shared interrupts. Without this support,
69 the device driver will fail during insmod if it detects shared interrupts. This also
70 works when the GPU is not using shared interrupts, but might have a slight performance
71 impact.
72
73 config MALI_PMU_PARALLEL_POWER_UP
74 bool "Power up Mali PMU domains in parallel"
75 depends on MALI400
76 default n
77 ---help---
78 This makes the Mali driver power up all PMU power domains in parallel, instead of
79 powering up domains one by one, with a slight delay in between. Powering on all power
80 domains at the same time may cause peak currents higher than what some systems can handle.
81 These systems must not enable this option.