]> asedeno.scripts.mit.edu Git - linux.git/blob - drivers/gpu/drm/Kconfig
9d005ac98c2b81f167303b5deb8ef845c18b16f9
[linux.git] / drivers / gpu / drm / Kconfig
1 #
2 # Drm device configuration
3 #
4 # This driver provides support for the
5 # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
6 #
7 menuconfig DRM
8         tristate "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)"
9         depends on (AGP || AGP=n) && !EMULATED_CMPXCHG && HAS_DMA
10         select HDMI
11         select FB_CMDLINE
12         select I2C
13         select I2C_ALGOBIT
14         select DMA_SHARED_BUFFER
15         select SYNC_FILE
16         help
17           Kernel-level support for the Direct Rendering Infrastructure (DRI)
18           introduced in XFree86 4.0. If you say Y here, you need to select
19           the module that's right for your graphics card from the list below.
20           These modules provide support for synchronization, security, and
21           DMA transfers. Please see <http://dri.sourceforge.net/> for more
22           details.  You should also select and configure AGP
23           (/dev/agpgart) support if it is available for your platform.
24
25 config DRM_MIPI_DSI
26         bool
27         depends on DRM
28
29 config DRM_PANEL_ORIENTATION_QUIRKS
30         tristate
31
32 config DRM_DP_AUX_CHARDEV
33         bool "DRM DP AUX Interface"
34         depends on DRM
35         help
36           Choose this option to enable a /dev/drm_dp_auxN node that allows to
37           read and write values to arbitrary DPCD registers on the DP aux
38           channel.
39
40 config DRM_DEBUG_MM
41         bool "Insert extra checks and debug info into the DRM range managers"
42         default n
43         depends on DRM=y
44         depends on STACKTRACE_SUPPORT
45         select STACKDEPOT
46         help
47           Enable allocation tracking of memory manager and leak detection on
48           shutdown.
49
50           Recommended for driver developers only.
51
52           If in doubt, say "N".
53
54 config DRM_DEBUG_MM_SELFTEST
55         tristate "kselftests for DRM range manager (struct drm_mm)"
56         depends on DRM
57         depends on DEBUG_KERNEL
58         select PRIME_NUMBERS
59         select DRM_LIB_RANDOM
60         default n
61         help
62           This option provides a kernel module that can be used to test
63           the DRM range manager (drm_mm) and its API. This option is not
64           useful for distributions or general kernels, but only for kernel
65           developers working on DRM and associated drivers.
66
67           If in doubt, say "N".
68
69 config DRM_KMS_HELPER
70         tristate
71         depends on DRM
72         help
73           CRTC helpers for KMS drivers.
74
75 config DRM_KMS_FB_HELPER
76         bool
77         depends on DRM_KMS_HELPER
78         select FB
79         select FRAMEBUFFER_CONSOLE if !EXPERT
80         select FRAMEBUFFER_CONSOLE_DETECT_PRIMARY if FRAMEBUFFER_CONSOLE
81         select FB_SYS_FOPS
82         select FB_SYS_FILLRECT
83         select FB_SYS_COPYAREA
84         select FB_SYS_IMAGEBLIT
85         select FB_CFB_FILLRECT
86         select FB_CFB_COPYAREA
87         select FB_CFB_IMAGEBLIT
88         select FB_DEFERRED_IO
89         help
90           FBDEV helpers for KMS drivers.
91
92 config DRM_FBDEV_EMULATION
93         bool "Enable legacy fbdev support for your modesetting driver"
94         depends on DRM
95         select DRM_KMS_HELPER
96         select DRM_KMS_FB_HELPER
97         default y
98         help
99           Choose this option if you have a need for the legacy fbdev
100           support. Note that this support also provides the linux console
101           support on top of your modesetting driver.
102
103           If in doubt, say "Y".
104
105 config DRM_FBDEV_OVERALLOC
106         int "Overallocation of the fbdev buffer"
107         depends on DRM_FBDEV_EMULATION
108         default 100
109         help
110           Defines the fbdev buffer overallocation in percent. Default
111           is 100. Typical values for double buffering will be 200,
112           triple buffering 300.
113
114 config DRM_LOAD_EDID_FIRMWARE
115         bool "Allow to specify an EDID data set instead of probing for it"
116         depends on DRM
117         help
118           Say Y here, if you want to use EDID data to be loaded from the
119           /lib/firmware directory or one of the provided built-in
120           data sets. This may be necessary, if the graphics adapter or
121           monitor are unable to provide appropriate EDID data. Since this
122           feature is provided as a workaround for broken hardware, the
123           default case is N. Details and instructions how to build your own
124           EDID data are given in Documentation/EDID/HOWTO.txt.
125
126 config DRM_TTM
127         tristate
128         depends on DRM && MMU
129         help
130           GPU memory management subsystem for devices with multiple
131           GPU memory types. Will be enabled automatically if a device driver
132           uses it.
133
134 config DRM_GEM_CMA_HELPER
135         bool
136         depends on DRM
137         help
138           Choose this if you need the GEM CMA helper functions
139
140 config DRM_KMS_CMA_HELPER
141         bool
142         depends on DRM
143         select DRM_GEM_CMA_HELPER
144         select DRM_KMS_FB_HELPER
145         select FB_SYS_FILLRECT
146         select FB_SYS_COPYAREA
147         select FB_SYS_IMAGEBLIT
148         help
149           Choose this if you need the KMS CMA helper functions
150
151 config DRM_VM
152         bool
153         depends on DRM && MMU
154
155 source "drivers/gpu/drm/i2c/Kconfig"
156
157 source "drivers/gpu/drm/arm/Kconfig"
158
159 config DRM_RADEON
160         tristate "ATI Radeon"
161         depends on DRM && PCI && MMU
162         select FW_LOADER
163         select DRM_KMS_HELPER
164         select DRM_TTM
165         select POWER_SUPPLY
166         select HWMON
167         select BACKLIGHT_CLASS_DEVICE
168         select BACKLIGHT_LCD_SUPPORT
169         select INTERVAL_TREE
170         help
171           Choose this option if you have an ATI Radeon graphics card.  There
172           are both PCI and AGP versions.  You don't need to choose this to
173           run the Radeon in plain VGA mode.
174
175           If M is selected, the module will be called radeon.
176
177 source "drivers/gpu/drm/radeon/Kconfig"
178
179 config DRM_AMDGPU
180         tristate "AMD GPU"
181         depends on DRM && PCI && MMU
182         select FW_LOADER
183         select DRM_KMS_HELPER
184         select DRM_TTM
185         select POWER_SUPPLY
186         select HWMON
187         select BACKLIGHT_CLASS_DEVICE
188         select BACKLIGHT_LCD_SUPPORT
189         select INTERVAL_TREE
190         select CHASH
191         help
192           Choose this option if you have a recent AMD Radeon graphics card.
193
194           If M is selected, the module will be called amdgpu.
195
196 source "drivers/gpu/drm/amd/amdgpu/Kconfig"
197
198 source "drivers/gpu/drm/amd/lib/Kconfig"
199
200 source "drivers/gpu/drm/nouveau/Kconfig"
201
202 source "drivers/gpu/drm/i915/Kconfig"
203
204 config DRM_VGEM
205         tristate "Virtual GEM provider"
206         depends on DRM
207         help
208           Choose this option to get a virtual graphics memory manager,
209           as used by Mesa's software renderer for enhanced performance.
210           If M is selected the module will be called vgem.
211
212
213 source "drivers/gpu/drm/exynos/Kconfig"
214
215 source "drivers/gpu/drm/rockchip/Kconfig"
216
217 source "drivers/gpu/drm/vmwgfx/Kconfig"
218
219 source "drivers/gpu/drm/gma500/Kconfig"
220
221 source "drivers/gpu/drm/udl/Kconfig"
222
223 source "drivers/gpu/drm/ast/Kconfig"
224
225 source "drivers/gpu/drm/mgag200/Kconfig"
226
227 source "drivers/gpu/drm/cirrus/Kconfig"
228
229 source "drivers/gpu/drm/armada/Kconfig"
230
231 source "drivers/gpu/drm/atmel-hlcdc/Kconfig"
232
233 source "drivers/gpu/drm/rcar-du/Kconfig"
234
235 source "drivers/gpu/drm/shmobile/Kconfig"
236
237 source "drivers/gpu/drm/sun4i/Kconfig"
238
239 source "drivers/gpu/drm/omapdrm/Kconfig"
240
241 source "drivers/gpu/drm/tilcdc/Kconfig"
242
243 source "drivers/gpu/drm/qxl/Kconfig"
244
245 source "drivers/gpu/drm/bochs/Kconfig"
246
247 source "drivers/gpu/drm/virtio/Kconfig"
248
249 source "drivers/gpu/drm/msm/Kconfig"
250
251 source "drivers/gpu/drm/fsl-dcu/Kconfig"
252
253 source "drivers/gpu/drm/tegra/Kconfig"
254
255 source "drivers/gpu/drm/stm/Kconfig"
256
257 source "drivers/gpu/drm/panel/Kconfig"
258
259 source "drivers/gpu/drm/bridge/Kconfig"
260
261 source "drivers/gpu/drm/sti/Kconfig"
262
263 source "drivers/gpu/drm/amd/amdkfd/Kconfig"
264
265 source "drivers/gpu/drm/imx/Kconfig"
266
267 source "drivers/gpu/drm/vc4/Kconfig"
268
269 source "drivers/gpu/drm/etnaviv/Kconfig"
270
271 source "drivers/gpu/drm/arc/Kconfig"
272
273 source "drivers/gpu/drm/hisilicon/Kconfig"
274
275 source "drivers/gpu/drm/mediatek/Kconfig"
276
277 source "drivers/gpu/drm/zte/Kconfig"
278
279 source "drivers/gpu/drm/mxsfb/Kconfig"
280
281 source "drivers/gpu/drm/meson/Kconfig"
282
283 source "drivers/gpu/drm/tinydrm/Kconfig"
284
285 source "drivers/gpu/drm/pl111/Kconfig"
286
287 source "drivers/gpu/drm/tve200/Kconfig"
288
289 # Keep legacy drivers last
290
291 menuconfig DRM_LEGACY
292         bool "Enable legacy drivers (DANGEROUS)"
293         depends on DRM && MMU
294         select DRM_VM
295         help
296           Enable legacy DRI1 drivers. Those drivers expose unsafe and dangerous
297           APIs to user-space, which can be used to circumvent access
298           restrictions and other security measures. For backwards compatibility
299           those drivers are still available, but their use is highly
300           inadvisable and might harm your system.
301
302           You are recommended to use the safe modeset-only drivers instead, and
303           perform 3D emulation in user-space.
304
305           Unless you have strong reasons to go rogue, say "N".
306
307 if DRM_LEGACY
308
309 config DRM_TDFX
310         tristate "3dfx Banshee/Voodoo3+"
311         depends on DRM && PCI
312         help
313           Choose this option if you have a 3dfx Banshee or Voodoo3 (or later),
314           graphics card.  If M is selected, the module will be called tdfx.
315
316 config DRM_R128
317         tristate "ATI Rage 128"
318         depends on DRM && PCI
319         select FW_LOADER
320         help
321           Choose this option if you have an ATI Rage 128 graphics card.  If M
322           is selected, the module will be called r128.  AGP support for
323           this card is strongly suggested (unless you have a PCI version).
324
325 config DRM_I810
326         tristate "Intel I810"
327         # !PREEMPT because of missing ioctl locking
328         depends on DRM && AGP && AGP_INTEL && (!PREEMPT || BROKEN)
329         help
330           Choose this option if you have an Intel I810 graphics card.  If M is
331           selected, the module will be called i810.  AGP support is required
332           for this driver to work.
333
334 config DRM_MGA
335         tristate "Matrox g200/g400"
336         depends on DRM && PCI
337         select FW_LOADER
338         help
339           Choose this option if you have a Matrox G200, G400 or G450 graphics
340           card.  If M is selected, the module will be called mga.  AGP
341           support is required for this driver to work.
342
343 config DRM_SIS
344         tristate "SiS video cards"
345         depends on DRM && AGP
346         depends on FB_SIS || FB_SIS=n
347         help
348           Choose this option if you have a SiS 630 or compatible video
349           chipset. If M is selected the module will be called sis. AGP
350           support is required for this driver to work.
351
352 config DRM_VIA
353         tristate "Via unichrome video cards"
354         depends on DRM && PCI
355         help
356           Choose this option if you have a Via unichrome or compatible video
357           chipset. If M is selected the module will be called via.
358
359 config DRM_SAVAGE
360         tristate "Savage video cards"
361         depends on DRM && PCI
362         help
363           Choose this option if you have a Savage3D/4/SuperSavage/Pro/Twister
364           chipset. If M is selected the module will be called savage.
365
366 endif # DRM_LEGACY
367
368 config DRM_LIB_RANDOM
369         bool
370         default n