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