Merge tag 'pull-18-rc1-work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-block.git] / drivers / gpu / drm / Kconfig
CommitLineData
ec8f24b7 1# SPDX-License-Identifier: GPL-2.0-only
1da177e4
LT
2#
3# Drm device configuration
4#
5# This driver provides support for the
6# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
7#
179b025f 8menuconfig DRM
1da177e4 9 tristate "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)"
62a0d98a 10 depends on (AGP || AGP=n) && !EMULATED_CMPXCHG && HAS_DMA
e9aeeba2 11 select DRM_NOMODESET
8d70f395 12 select DRM_PANEL_ORIENTATION_QUIRKS
10a85120 13 select HDMI
eaf99c74 14 select FB_CMDLINE
57a6297e
DA
15 select I2C
16 select I2C_ALGOBIT
3248877e 17 select DMA_SHARED_BUFFER
96260142 18 select SYNC_FILE
bfe3911a
CW
19# gallium uses SYS_kcmp for os_same_file_description() to de-duplicate
20# device and dmabuf fd. Let's make sure that is available for our userspace.
21 select KCMP
1da177e4
LT
22 help
23 Kernel-level support for the Direct Rendering Infrastructure (DRI)
24 introduced in XFree86 4.0. If you say Y here, you need to select
25 the module that's right for your graphics card from the list below.
26 These modules provide support for synchronization, security, and
27 DMA transfers. Please see <http://dri.sourceforge.net/> for more
28 details. You should also select and configure AGP
dcdb1674 29 (/dev/agpgart) support if it is available for your platform.
1da177e4 30
174102f4
NT
31config DRM_MIPI_DBI
32 tristate
33 depends on DRM
34
068a0023
AH
35config DRM_MIPI_DSI
36 bool
37 depends on DRM
38
5705670d
CW
39config DRM_DEBUG_MM
40 bool "Insert extra checks and debug info into the DRM range managers"
41 default n
cd456f8d 42 depends on DRM=y
4b514e10 43 depends on STACKTRACE_SUPPORT
5705670d
CW
44 select STACKDEPOT
45 help
46 Enable allocation tracking of memory manager and leak detection on
47 shutdown.
48
49 Recommended for driver developers only.
50
51 If in doubt, say "N".
52
34b13e5e
ML
53config DRM_DEBUG_SELFTEST
54 tristate "kselftests for DRM"
50f0033d
CW
55 depends on DRM
56 depends on DEBUG_KERNEL
57 select PRIME_NUMBERS
1e0f6642
TZ
58 select DRM_DISPLAY_DP_HELPER
59 select DRM_DISPLAY_HELPER
50f0033d 60 select DRM_LIB_RANDOM
7420e049 61 select DRM_KMS_HELPER
3d515ba9 62 select DRM_BUDDY
6349120d 63 select DRM_EXPORT_FOR_TESTS if m
50f0033d
CW
64 default n
65 help
34b13e5e
ML
66 This option provides kernel modules that can be used to run
67 various selftests on parts of the DRM api. This option is not
50f0033d
CW
68 useful for distributions or general kernels, but only for kernel
69 developers working on DRM and associated drivers.
70
71 If in doubt, say "N".
72
6fcefd56 73config DRM_KMS_HELPER
13a8195b
DA
74 tristate
75 depends on DRM
92b6f89f
DV
76 help
77 CRTC helpers for KMS drivers.
78
12a280c7
LP
79config DRM_DEBUG_DP_MST_TOPOLOGY_REFS
80 bool "Enable refcount backtrace history in the DP MST helpers"
d6d07ca1 81 depends on STACKTRACE_SUPPORT
12a280c7
LP
82 select STACKDEPOT
83 depends on DRM_KMS_HELPER
84 depends on DEBUG_KERNEL
85 depends on EXPERT
86 help
87 Enables debug tracing for topology refs in DRM's DP MST helpers. A
88 history of each topology reference/dereference will be printed to the
89 kernel log once a port or branch device's topology refcount reaches 0.
90
91 This has the potential to use a lot of memory and print some very
92 large kernel messages. If in doubt, say "N".
93
cd06ab2f
JN
94config DRM_DEBUG_MODESET_LOCK
95 bool "Enable backtrace history for lock contention"
96 depends on STACKTRACE_SUPPORT
97 depends on DEBUG_KERNEL
98 depends on EXPERT
99 select STACKDEPOT
100 default y if DEBUG_WW_MUTEX_SLOWPATH
101 help
102 Enable debug tracing of failures to gracefully handle drm modeset lock
103 contention. A history of each drm modeset lock path hitting -EDEADLK
104 will be saved until gracefully handled, and the backtrace will be
105 printed when attempting to lock a contended lock.
106
107 If in doubt, say "N".
108
a03fdcb1
AT
109config DRM_FBDEV_EMULATION
110 bool "Enable legacy fbdev support for your modesetting driver"
9d6366e7
AB
111 depends on DRM_KMS_HELPER
112 depends on FB=y || FB=DRM_KMS_HELPER
91185d55
TZ
113 select FB_CFB_FILLRECT
114 select FB_CFB_COPYAREA
115 select FB_CFB_IMAGEBLIT
116 select FB_DEFERRED_IO
117 select FB_SYS_FOPS
118 select FB_SYS_FILLRECT
119 select FB_SYS_COPYAREA
120 select FB_SYS_IMAGEBLIT
121 select FRAMEBUFFER_CONSOLE if !EXPERT
122 select FRAMEBUFFER_CONSOLE_DETECT_PRIMARY if FRAMEBUFFER_CONSOLE
a03fdcb1
AT
123 default y
124 help
125 Choose this option if you have a need for the legacy fbdev
126 support. Note that this support also provides the linux console
127 support on top of your modesetting driver.
128
129 If in doubt, say "Y".
130
5f152576
XL
131config DRM_FBDEV_OVERALLOC
132 int "Overallocation of the fbdev buffer"
133 depends on DRM_FBDEV_EMULATION
134 default 100
135 help
136 Defines the fbdev buffer overallocation in percent. Default
137 is 100. Typical values for double buffering will be 200,
138 triple buffering 300.
139
4be9bd10
NA
140config DRM_FBDEV_LEAK_PHYS_SMEM
141 bool "Shamelessly allow leaking of fbdev physical address (DANGEROUS)"
142 depends on DRM_FBDEV_EMULATION && EXPERT
143 default n
144 help
145 In order to keep user-space compatibility, we want in certain
146 use-cases to keep leaking the fbdev physical address to the
147 user-space program handling the fbdev buffer.
148 This affects, not only, Amlogic, Allwinner or Rockchip devices
149 with ARM Mali GPUs using an userspace Blob.
150 This option is not supported by upstream developers and should be
151 removed as soon as possible and be considered as a broken and
152 legacy behaviour from a modern fbdev device driver.
153
154 Please send any bug reports when using this to your proprietary
155 software vendor that requires this.
156
157 If in doubt, say "N" or spread the word to your closed source
158 library vendor.
159
da0df92b
CE
160config DRM_LOAD_EDID_FIRMWARE
161 bool "Allow to specify an EDID data set instead of probing for it"
53fd40a9 162 depends on DRM
da0df92b
CE
163 help
164 Say Y here, if you want to use EDID data to be loaded from the
165 /lib/firmware directory or one of the provided built-in
166 data sets. This may be necessary, if the graphics adapter or
167 monitor are unable to provide appropriate EDID data. Since this
168 feature is provided as a workaround for broken hardware, the
169 default case is N. Details and instructions how to build your own
72ef5e52 170 EDID data are given in Documentation/admin-guide/edid.rst.
da0df92b 171
1e0f6642 172source "drivers/gpu/drm/display/Kconfig"
2c6d1fff 173
ba4e7d97 174config DRM_TTM
771fe6b9 175 tristate
62a0d98a 176 depends on DRM && MMU
ba4e7d97
TH
177 help
178 GPU memory management subsystem for devices with multiple
179 GPU memory types. Will be enabled automatically if a device driver
180 uses it.
181
6387a3c4
A
182config DRM_BUDDY
183 tristate
184 depends on DRM
185 help
186 A page based buddy allocator
187
85438a8d
TZ
188config DRM_VRAM_HELPER
189 tristate
190 depends on DRM
85438a8d
TZ
191 help
192 Helpers for VRAM memory management
193
ff540b76
GH
194config DRM_TTM_HELPER
195 tristate
196 depends on DRM
197 select DRM_TTM
198 help
199 Helpers for ttm-based gem objects
200
b9d47450 201config DRM_GEM_CMA_HELPER
4b2b5e14 202 tristate
e1c7e324 203 depends on DRM
b9d47450
SH
204 help
205 Choose this if you need the GEM CMA helper functions
206
2194a63a 207config DRM_GEM_SHMEM_HELPER
4b2b5e14 208 tristate
8b93d1d7 209 depends on DRM && MMU
2194a63a
NT
210 help
211 Choose this if you need the GEM shmem helper functions
212
1b1f42d8
LS
213config DRM_SCHED
214 tristate
215 depends on DRM
216
6504d0d9
RC
217source "drivers/gpu/drm/i2c/Kconfig"
218
8e22d792
LD
219source "drivers/gpu/drm/arm/Kconfig"
220
1da177e4
LT
221config DRM_RADEON
222 tristate "ATI Radeon"
011cda58 223 depends on DRM && PCI && MMU
cba2afb6 224 depends on AGP || !AGP
70967ab9 225 select FW_LOADER
1e0f6642
TZ
226 select DRM_DISPLAY_DP_HELPER
227 select DRM_DISPLAY_HELPER
a0cdc649
DA
228 select DRM_KMS_HELPER
229 select DRM_TTM
49a3f51d 230 select DRM_TTM_HELPER
5d9b7e2d 231 select POWER_SUPPLY
21a8122a 232 select HWMON
14adc892 233 select BACKLIGHT_CLASS_DEVICE
0aea5e4a 234 select INTERVAL_TREE
1da177e4
LT
235 help
236 Choose this option if you have an ATI Radeon graphics card. There
237 are both PCI and AGP versions. You don't need to choose this to
7b9af345 238 run the Radeon in plain VGA mode.
bc5f4523 239
1da177e4
LT
240 If M is selected, the module will be called radeon.
241
f71d0187
DA
242source "drivers/gpu/drm/radeon/Kconfig"
243
d38ceaf9
AD
244config DRM_AMDGPU
245 tristate "AMD GPU"
011cda58 246 depends on DRM && PCI && MMU
d38ceaf9 247 select FW_LOADER
1e0f6642 248 select DRM_DISPLAY_DP_HELPER
4fc8cb47 249 select DRM_DISPLAY_HDMI_HELPER
1e0f6642 250 select DRM_DISPLAY_HELPER
23c61b45 251 select DRM_KMS_HELPER
1b1f42d8 252 select DRM_SCHED
23c61b45 253 select DRM_TTM
49a3f51d 254 select DRM_TTM_HELPER
d38ceaf9
AD
255 select POWER_SUPPLY
256 select HWMON
257 select BACKLIGHT_CLASS_DEVICE
258 select INTERVAL_TREE
c9cad937 259 select DRM_BUDDY
d38ceaf9
AD
260 help
261 Choose this option if you have a recent AMD Radeon graphics card.
262
263 If M is selected, the module will be called amdgpu.
264
265source "drivers/gpu/drm/amd/amdgpu/Kconfig"
a8fe58ce 266
f3c93cbd
BS
267source "drivers/gpu/drm/nouveau/Kconfig"
268
4520f53a 269source "drivers/gpu/drm/i915/Kconfig"
99486b8e 270
ed794057
AC
271source "drivers/gpu/drm/kmb/Kconfig"
272
502e95c6
ZR
273config DRM_VGEM
274 tristate "Virtual GEM provider"
45d9c8dd
DV
275 depends on DRM && MMU
276 select DRM_GEM_SHMEM_HELPER
502e95c6
ZR
277 help
278 Choose this option to get a virtual graphics memory manager,
279 as used by Mesa's software renderer for enhanced performance.
280 If M is selected the module will be called vgem.
281
1c7c5fd9 282config DRM_VKMS
c91b007e 283 tristate "Virtual KMS (EXPERIMENTAL)"
45d9c8dd 284 depends on DRM && MMU
5ba57bab 285 select DRM_KMS_HELPER
488c888a 286 select DRM_GEM_SHMEM_HELPER
f2a4a13a 287 select CRC32
c91b007e 288 default n
1c7c5fd9 289 help
c91b007e
RS
290 Virtual Kernel Mode-Setting (VKMS) is used for testing or for
291 running GPU in a headless machines. Choose this option to get
292 a VKMS.
293
1c7c5fd9 294 If M is selected the module will be called vkms.
502e95c6 295
5a7b74be
TH
296source "drivers/gpu/drm/exynos/Kconfig"
297
2048e328
MY
298source "drivers/gpu/drm/rockchip/Kconfig"
299
5a7b74be 300source "drivers/gpu/drm/vmwgfx/Kconfig"
91c75492
AC
301
302source "drivers/gpu/drm/gma500/Kconfig"
303
5320918b 304source "drivers/gpu/drm/udl/Kconfig"
312fec14
DA
305
306source "drivers/gpu/drm/ast/Kconfig"
307
414c4531 308source "drivers/gpu/drm/mgag200/Kconfig"
f9aa76a8 309
96f60e37
RK
310source "drivers/gpu/drm/armada/Kconfig"
311
1a396789
BB
312source "drivers/gpu/drm/atmel-hlcdc/Kconfig"
313
4bf8e196
LP
314source "drivers/gpu/drm/rcar-du/Kconfig"
315
51c13278 316source "drivers/gpu/drm/shmobile/Kconfig"
d8f4a9ed 317
9026e0d1
MR
318source "drivers/gpu/drm/sun4i/Kconfig"
319
8bb0daff 320source "drivers/gpu/drm/omapdrm/Kconfig"
ca18e142 321
16ea975e 322source "drivers/gpu/drm/tilcdc/Kconfig"
f64122c1
DA
323
324source "drivers/gpu/drm/qxl/Kconfig"
c8afe684 325
dc5698e8
DA
326source "drivers/gpu/drm/virtio/Kconfig"
327
c8afe684 328source "drivers/gpu/drm/msm/Kconfig"
dee8268f 329
109eee2f
JW
330source "drivers/gpu/drm/fsl-dcu/Kconfig"
331
dee8268f 332source "drivers/gpu/drm/tegra/Kconfig"
aead40ea 333
b759012c
YF
334source "drivers/gpu/drm/stm/Kconfig"
335
aead40ea 336source "drivers/gpu/drm/panel/Kconfig"
f2cb3148 337
a33ee95f
TR
338source "drivers/gpu/drm/bridge/Kconfig"
339
f2cb3148 340source "drivers/gpu/drm/sti/Kconfig"
4a488a7a 341
6556f7f8 342source "drivers/gpu/drm/imx/Kconfig"
c8b75bca 343
90b86fcc
PC
344source "drivers/gpu/drm/ingenic/Kconfig"
345
57692c94
EA
346source "drivers/gpu/drm/v3d/Kconfig"
347
c8b75bca 348source "drivers/gpu/drm/vc4/Kconfig"
a8c21a54
T
349
350source "drivers/gpu/drm/etnaviv/Kconfig"
51dacf20 351
23e7b2ab 352source "drivers/gpu/drm/hisilicon/Kconfig"
119f5173
CH
353
354source "drivers/gpu/drm/mediatek/Kconfig"
d92d9c3a 355
45d59d70
MV
356source "drivers/gpu/drm/mxsfb/Kconfig"
357
bbbe775e
NA
358source "drivers/gpu/drm/meson/Kconfig"
359
043386a0 360source "drivers/gpu/drm/tiny/Kconfig"
fa201ac2 361
bed41005
TC
362source "drivers/gpu/drm/pl111/Kconfig"
363
179c02fe
LW
364source "drivers/gpu/drm/tve200/Kconfig"
365
c575b7ee
OA
366source "drivers/gpu/drm/xen/Kconfig"
367
131abc56
HG
368source "drivers/gpu/drm/vboxvideo/Kconfig"
369
a1d2a633
QY
370source "drivers/gpu/drm/lima/Kconfig"
371
f3ba9122
RH
372source "drivers/gpu/drm/panfrost/Kconfig"
373
4f2a8f58
JS
374source "drivers/gpu/drm/aspeed/Kconfig"
375
5fc537bf
LW
376source "drivers/gpu/drm/mcde/Kconfig"
377
32a1795f
JS
378source "drivers/gpu/drm/tidss/Kconfig"
379
d76271d2
HK
380source "drivers/gpu/drm/xlnx/Kconfig"
381
40e1a70b
NT
382source "drivers/gpu/drm/gud/Kconfig"
383
a61732e8
JMC
384source "drivers/gpu/drm/solomon/Kconfig"
385
43531edd
KT
386source "drivers/gpu/drm/sprd/Kconfig"
387
76c56a5a
DR
388config DRM_HYPERV
389 tristate "DRM Support for Hyper-V synthetic video device"
390 depends on DRM && PCI && MMU && HYPERV
391 select DRM_KMS_HELPER
392 select DRM_GEM_SHMEM_HELPER
393 help
394 This is a KMS driver for Hyper-V synthetic video device. Choose this
395 option if you would like to enable drm driver for Hyper-V virtual
396 machine. Unselect Hyper-V framebuffer driver (CONFIG_FB_HYPERV) so
397 that DRM driver is used by default.
398
399 If M is selected the module will be called hyperv_drm.
400
d92d9c3a
DH
401# Keep legacy drivers last
402
403menuconfig DRM_LEGACY
404 bool "Enable legacy drivers (DANGEROUS)"
7e53c284 405 depends on DRM && MMU
d92d9c3a
DH
406 help
407 Enable legacy DRI1 drivers. Those drivers expose unsafe and dangerous
408 APIs to user-space, which can be used to circumvent access
409 restrictions and other security measures. For backwards compatibility
410 those drivers are still available, but their use is highly
411 inadvisable and might harm your system.
412
413 You are recommended to use the safe modeset-only drivers instead, and
414 perform 3D emulation in user-space.
415
416 Unless you have strong reasons to go rogue, say "N".
417
418if DRM_LEGACY
419
420config DRM_TDFX
421 tristate "3dfx Banshee/Voodoo3+"
422 depends on DRM && PCI
423 help
424 Choose this option if you have a 3dfx Banshee or Voodoo3 (or later),
425 graphics card. If M is selected, the module will be called tdfx.
426
427config DRM_R128
428 tristate "ATI Rage 128"
429 depends on DRM && PCI
430 select FW_LOADER
431 help
432 Choose this option if you have an ATI Rage 128 graphics card. If M
433 is selected, the module will be called r128. AGP support for
434 this card is strongly suggested (unless you have a PCI version).
435
436config DRM_I810
437 tristate "Intel I810"
f86cf719 438 # !PREEMPTION because of missing ioctl locking
dc25ace6 439 depends on DRM && AGP && AGP_INTEL && (!PREEMPTION || BROKEN)
d92d9c3a
DH
440 help
441 Choose this option if you have an Intel I810 graphics card. If M is
442 selected, the module will be called i810. AGP support is required
443 for this driver to work.
444
445config DRM_MGA
446 tristate "Matrox g200/g400"
447 depends on DRM && PCI
448 select FW_LOADER
449 help
450 Choose this option if you have a Matrox G200, G400 or G450 graphics
451 card. If M is selected, the module will be called mga. AGP
452 support is required for this driver to work.
453
454config DRM_SIS
455 tristate "SiS video cards"
456 depends on DRM && AGP
457 depends on FB_SIS || FB_SIS=n
458 help
459 Choose this option if you have a SiS 630 or compatible video
460 chipset. If M is selected the module will be called sis. AGP
461 support is required for this driver to work.
462
463config DRM_VIA
464 tristate "Via unichrome video cards"
465 depends on DRM && PCI
466 help
467 Choose this option if you have a Via unichrome or compatible video
468 chipset. If M is selected the module will be called via.
469
470config DRM_SAVAGE
471 tristate "Savage video cards"
472 depends on DRM && PCI
473 help
474 Choose this option if you have a Savage3D/4/SuperSavage/Pro/Twister
475 chipset. If M is selected the module will be called savage.
476
477endif # DRM_LEGACY
a33d42dd 478
9b6c80be
RD
479config DRM_EXPORT_FOR_TESTS
480 bool
481
341a0ffc
HG
482# Separate option because drm_panel_orientation_quirks.c is shared with fbdev
483config DRM_PANEL_ORIENTATION_QUIRKS
484 tristate
485
e9aeeba2
JMC
486# Separate option because nomodeset parameter is global and expected built-in
487config DRM_NOMODESET
488 bool
489 default n
490
a33d42dd
CW
491config DRM_LIB_RANDOM
492 bool
493 default n
a1a98689
HG
494
495config DRM_PRIVACY_SCREEN
496 bool
497 default n