aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/pvr/Kconfig
blob: 0fe0d940a7e6a175f283ebb6b64f00417e036e9a (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

config PVR_SGX
	tristate "PowerVR SGX support"
	depends on ARCH_OMAP && OMAP2_DSS
	select PVR_OMAP_DSS2
	help
	  Enable this option to build support for the PowerVR SGX 3D core.

	  To compile this driver as a module, choose M here:
	  this will generate two modules, called pvrsrvkm and omaplfb.

choice
	prompt "PowerVR SGX core"
	depends on PVR_SGX
	default PVR_SGXCORE_540

config PVR_SGXCORE_540
	bool "SGX 540"

endchoice

choice
	prompt "PowerVR build type"
	depends on PVR_SGX
	default PVR_BUILD_RELEASE

config PVR_BUILD_RELEASE
	bool "Release"

config PVR_BUILD_DEBUG
	bool "Debug"

endchoice

# Release build debugging options

config PVR_NEED_PVR_DPF
	bool "Enable debugging messages in release build"
	depends on PVR_BUILD_RELEASE

config PVR_NEED_PVR_ASSERT
	bool "Enable assertions in release build"
	depends on PVR_BUILD_RELEASE

# Debugging options

config PVR_DEBUG_MEMORY
	bool "Record memory-related debugging information"
	depends on PVR_BUILD_DEBUG
	default y

config PVR_DEBUG_BRIDGE_KM
	bool "Collect bridge statistics"
	depends on PVR_BUILD_DEBUG
	default y

config PVR_DEBUG_TRACE_BRIDGE_KM
	bool "Trace bridge calls"
	depends on PVR_DEBUG_BRIDGE_KM
	default n

config PVR_DEBUG_BRIDGE_KM_DISPATCH_TABLE
	bool "Dump bridge dispatch table entries"
	depends on PVR_BUILD_DEBUG
	default n


#
# General options
#

config PVR_PERCONTEXT_PB
	bool "Per-context parameter buffer (recommended)"
	depends on PVR_SGX
	default y

config PVR_ACTIVE_POWER_MANAGEMENT
	bool "Support for active power management (recommended)"
	depends on PVR_SGX
	default y

config PVR_ACTIVE_POWER_LATENCY_MS
	int "Active power event latency (ms)"
	depends on PVR_ACTIVE_POWER_MANAGEMENT
	default 100

config PVR_SGX_LOW_LATENCY_SCHEDULING
	bool "Enable low-latency scheduling"
	depends on PVR_SGX
	default y

config PVR_USSE_EDM_STATUS_DEBUG
	bool "Trace microkernel status"
	depends on PVR_SGX
	default y if PVR_BUILD_DEBUG

config PVR_DUMP_MK_TRACE
	bool "Dump microkernel trace on HW recovery"
	depends on PVR_USSE_EDM_STATUS_DEBUG
	default y

config PVR_PDUMP
	bool "Support for parameter dumping (Pdump)"
	depends on PVR_SGX
	default n

config PVR_OMAP_DSS2
	bool

choice
	prompt "SGX DVFS mode"
	depends on PVR_SGX
	default SGX_DVFS_MODE_NONE

config SGX_DVFS_MODE_NONE
	bool "None"

config SGX_DVFS_MODE_LINEAR
	bool "Linear"

config SGX_DVFS_MODE_OPTIMIZED
	bool "Optimized"
endchoice

config SGX_DVFS_IDLE_TIMEOUT
	int "DVFS idle timeout (us)"
	depends on PVR_SGX
	default 1000

config PVR_LINUX_MEM_AREA_POOL
	bool "Enable uncached allocation pool"
	depends on PVR_SGX
	default n

config PVR_LINUX_MEM_AREA_POOL_MAX_PAGES
	int "Maximum number of pages in pool"
	depends on PVR_LINUX_MEM_AREA_POOL
	default 10800
	help
		Pool size in pages.
		A size of 0 disables the pool.
		A size of -1 allows the pool to grow indefinitely.