drm/dp: Set the connector's TILE property even for DP SST connectors
[linux-block.git] / drivers / gpu / drm / Kconfig
CommitLineData
1da177e4
LT
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#
179b025f 7menuconfig DRM
1da177e4 8 tristate "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)"
62a0d98a 9 depends on (AGP || AGP=n) && !EMULATED_CMPXCHG && HAS_DMA
8d70f395 10 select DRM_PANEL_ORIENTATION_QUIRKS
10a85120 11 select HDMI
eaf99c74 12 select FB_CMDLINE
57a6297e
DA
13 select I2C
14 select I2C_ALGOBIT
3248877e 15 select DMA_SHARED_BUFFER
96260142 16 select SYNC_FILE
1da177e4
LT
17 help
18 Kernel-level support for the Direct Rendering Infrastructure (DRI)
19 introduced in XFree86 4.0. If you say Y here, you need to select
20 the module that's right for your graphics card from the list below.
21 These modules provide support for synchronization, security, and
22 DMA transfers. Please see <http://dri.sourceforge.net/> for more
23 details. You should also select and configure AGP
dcdb1674 24 (/dev/agpgart) support if it is available for your platform.
1da177e4 25
068a0023
AH
26config DRM_MIPI_DSI
27 bool
28 depends on DRM
29
e94cb37b
RA
30config DRM_DP_AUX_CHARDEV
31 bool "DRM DP AUX Interface"
32 depends on DRM
33 help
34 Choose this option to enable a /dev/drm_dp_auxN node that allows to
35 read and write values to arbitrary DPCD registers on the DP aux
36 channel.
37
5705670d
CW
38config DRM_DEBUG_MM
39 bool "Insert extra checks and debug info into the DRM range managers"
40 default n
cd456f8d 41 depends on DRM=y
4b514e10 42 depends on STACKTRACE_SUPPORT
5705670d
CW
43 select STACKDEPOT
44 help
45 Enable allocation tracking of memory manager and leak detection on
46 shutdown.
47
48 Recommended for driver developers only.
49
50 If in doubt, say "N".
51
34b13e5e
ML
52config DRM_DEBUG_SELFTEST
53 tristate "kselftests for DRM"
50f0033d
CW
54 depends on DRM
55 depends on DEBUG_KERNEL
56 select PRIME_NUMBERS
57 select DRM_LIB_RANDOM
7420e049 58 select DRM_KMS_HELPER
50f0033d
CW
59 default n
60 help
34b13e5e
ML
61 This option provides kernel modules that can be used to run
62 various selftests on parts of the DRM api. This option is not
50f0033d
CW
63 useful for distributions or general kernels, but only for kernel
64 developers working on DRM and associated drivers.
65
66 If in doubt, say "N".
67
6fcefd56 68config DRM_KMS_HELPER
13a8195b
DA
69 tristate
70 depends on DRM
92b6f89f
DV
71 help
72 CRTC helpers for KMS drivers.
73
74config DRM_KMS_FB_HELPER
75 bool
76 depends on DRM_KMS_HELPER
13a8195b 77 select FB
6a108a14 78 select FRAMEBUFFER_CONSOLE if !EXPERT
bf5192ed 79 select FRAMEBUFFER_CONSOLE_DETECT_PRIMARY if FRAMEBUFFER_CONSOLE
cbb1a82e 80 select FB_SYS_FOPS
742547b7
AT
81 select FB_SYS_FILLRECT
82 select FB_SYS_COPYAREA
83 select FB_SYS_IMAGEBLIT
84 select FB_CFB_FILLRECT
85 select FB_CFB_COPYAREA
86 select FB_CFB_IMAGEBLIT
eaa434de 87 select FB_DEFERRED_IO
13a8195b 88 help
92b6f89f 89 FBDEV helpers for KMS drivers.
13a8195b 90
a03fdcb1
AT
91config DRM_FBDEV_EMULATION
92 bool "Enable legacy fbdev support for your modesetting driver"
93 depends on DRM
94 select DRM_KMS_HELPER
95 select DRM_KMS_FB_HELPER
96 default y
97 help
98 Choose this option if you have a need for the legacy fbdev
99 support. Note that this support also provides the linux console
100 support on top of your modesetting driver.
101
102 If in doubt, say "Y".
103
5f152576
XL
104config DRM_FBDEV_OVERALLOC
105 int "Overallocation of the fbdev buffer"
106 depends on DRM_FBDEV_EMULATION
107 default 100
108 help
109 Defines the fbdev buffer overallocation in percent. Default
110 is 100. Typical values for double buffering will be 200,
111 triple buffering 300.
112
4be9bd10
NA
113config DRM_FBDEV_LEAK_PHYS_SMEM
114 bool "Shamelessly allow leaking of fbdev physical address (DANGEROUS)"
115 depends on DRM_FBDEV_EMULATION && EXPERT
116 default n
117 help
118 In order to keep user-space compatibility, we want in certain
119 use-cases to keep leaking the fbdev physical address to the
120 user-space program handling the fbdev buffer.
121 This affects, not only, Amlogic, Allwinner or Rockchip devices
122 with ARM Mali GPUs using an userspace Blob.
123 This option is not supported by upstream developers and should be
124 removed as soon as possible and be considered as a broken and
125 legacy behaviour from a modern fbdev device driver.
126
127 Please send any bug reports when using this to your proprietary
128 software vendor that requires this.
129
130 If in doubt, say "N" or spread the word to your closed source
131 library vendor.
132
da0df92b
CE
133config DRM_LOAD_EDID_FIRMWARE
134 bool "Allow to specify an EDID data set instead of probing for it"
53fd40a9 135 depends on DRM
da0df92b
CE
136 help
137 Say Y here, if you want to use EDID data to be loaded from the
138 /lib/firmware directory or one of the provided built-in
139 data sets. This may be necessary, if the graphics adapter or
140 monitor are unable to provide appropriate EDID data. Since this
141 feature is provided as a workaround for broken hardware, the
142 default case is N. Details and instructions how to build your own
143 EDID data are given in Documentation/EDID/HOWTO.txt.
144
2c6d1fff
HV
145config DRM_DP_CEC
146 bool "Enable DisplayPort CEC-Tunneling-over-AUX HDMI support"
147 select CEC_CORE
148 help
149 Choose this option if you want to enable HDMI CEC support for
150 DisplayPort/USB-C to HDMI adapters.
151
152 Note: not all adapters support this feature, and even for those
153 that do support this they often do not hook up the CEC pin.
154
ba4e7d97 155config DRM_TTM
771fe6b9 156 tristate
62a0d98a 157 depends on DRM && MMU
ba4e7d97
TH
158 help
159 GPU memory management subsystem for devices with multiple
160 GPU memory types. Will be enabled automatically if a device driver
161 uses it.
162
b9d47450
SH
163config DRM_GEM_CMA_HELPER
164 bool
e1c7e324 165 depends on DRM
b9d47450
SH
166 help
167 Choose this if you need the GEM CMA helper functions
168
2e3b3c42
LPC
169config DRM_KMS_CMA_HELPER
170 bool
e1c7e324 171 depends on DRM
2e3b3c42 172 select DRM_GEM_CMA_HELPER
2e3b3c42
LPC
173 help
174 Choose this if you need the KMS CMA helper functions
175
99c48e1e
BG
176config DRM_VM
177 bool
7e53c284 178 depends on DRM && MMU
99c48e1e 179
1b1f42d8
LS
180config DRM_SCHED
181 tristate
182 depends on DRM
183
6504d0d9
RC
184source "drivers/gpu/drm/i2c/Kconfig"
185
8e22d792
LD
186source "drivers/gpu/drm/arm/Kconfig"
187
1da177e4
LT
188config DRM_RADEON
189 tristate "ATI Radeon"
011cda58 190 depends on DRM && PCI && MMU
70967ab9 191 select FW_LOADER
a0cdc649
DA
192 select DRM_KMS_HELPER
193 select DRM_TTM
5d9b7e2d 194 select POWER_SUPPLY
21a8122a 195 select HWMON
14adc892 196 select BACKLIGHT_CLASS_DEVICE
33610527 197 select BACKLIGHT_LCD_SUPPORT
0aea5e4a 198 select INTERVAL_TREE
1da177e4
LT
199 help
200 Choose this option if you have an ATI Radeon graphics card. There
201 are both PCI and AGP versions. You don't need to choose this to
7b9af345 202 run the Radeon in plain VGA mode.
bc5f4523 203
1da177e4
LT
204 If M is selected, the module will be called radeon.
205
f71d0187
DA
206source "drivers/gpu/drm/radeon/Kconfig"
207
d38ceaf9
AD
208config DRM_AMDGPU
209 tristate "AMD GPU"
011cda58 210 depends on DRM && PCI && MMU
d38ceaf9
AD
211 select FW_LOADER
212 select DRM_KMS_HELPER
1b1f42d8 213 select DRM_SCHED
d38ceaf9
AD
214 select DRM_TTM
215 select POWER_SUPPLY
216 select HWMON
217 select BACKLIGHT_CLASS_DEVICE
b325a789 218 select BACKLIGHT_LCD_SUPPORT
d38ceaf9 219 select INTERVAL_TREE
a2f14820 220 select CHASH
d38ceaf9
AD
221 help
222 Choose this option if you have a recent AMD Radeon graphics card.
223
224 If M is selected, the module will be called amdgpu.
225
226source "drivers/gpu/drm/amd/amdgpu/Kconfig"
a8fe58ce 227
5d86b2c3
FK
228source "drivers/gpu/drm/amd/lib/Kconfig"
229
f3c93cbd
BS
230source "drivers/gpu/drm/nouveau/Kconfig"
231
4520f53a 232source "drivers/gpu/drm/i915/Kconfig"
99486b8e 233
502e95c6
ZR
234config DRM_VGEM
235 tristate "Virtual GEM provider"
236 depends on DRM
237 help
238 Choose this option to get a virtual graphics memory manager,
239 as used by Mesa's software renderer for enhanced performance.
240 If M is selected the module will be called vgem.
241
1c7c5fd9 242config DRM_VKMS
c91b007e 243 tristate "Virtual KMS (EXPERIMENTAL)"
1c7c5fd9 244 depends on DRM
5ba57bab 245 select DRM_KMS_HELPER
c91b007e 246 default n
1c7c5fd9 247 help
c91b007e
RS
248 Virtual Kernel Mode-Setting (VKMS) is used for testing or for
249 running GPU in a headless machines. Choose this option to get
250 a VKMS.
251
1c7c5fd9 252 If M is selected the module will be called vkms.
502e95c6 253
5a7b74be
TH
254source "drivers/gpu/drm/exynos/Kconfig"
255
2048e328
MY
256source "drivers/gpu/drm/rockchip/Kconfig"
257
5a7b74be 258source "drivers/gpu/drm/vmwgfx/Kconfig"
91c75492
AC
259
260source "drivers/gpu/drm/gma500/Kconfig"
261
5320918b 262source "drivers/gpu/drm/udl/Kconfig"
312fec14
DA
263
264source "drivers/gpu/drm/ast/Kconfig"
265
414c4531 266source "drivers/gpu/drm/mgag200/Kconfig"
f9aa76a8
DA
267
268source "drivers/gpu/drm/cirrus/Kconfig"
51c13278 269
96f60e37
RK
270source "drivers/gpu/drm/armada/Kconfig"
271
1a396789
BB
272source "drivers/gpu/drm/atmel-hlcdc/Kconfig"
273
4bf8e196
LP
274source "drivers/gpu/drm/rcar-du/Kconfig"
275
51c13278 276source "drivers/gpu/drm/shmobile/Kconfig"
d8f4a9ed 277
9026e0d1
MR
278source "drivers/gpu/drm/sun4i/Kconfig"
279
8bb0daff 280source "drivers/gpu/drm/omapdrm/Kconfig"
ca18e142 281
16ea975e 282source "drivers/gpu/drm/tilcdc/Kconfig"
f64122c1
DA
283
284source "drivers/gpu/drm/qxl/Kconfig"
c8afe684 285
0a6659bd
GH
286source "drivers/gpu/drm/bochs/Kconfig"
287
dc5698e8
DA
288source "drivers/gpu/drm/virtio/Kconfig"
289
c8afe684 290source "drivers/gpu/drm/msm/Kconfig"
dee8268f 291
109eee2f
JW
292source "drivers/gpu/drm/fsl-dcu/Kconfig"
293
dee8268f 294source "drivers/gpu/drm/tegra/Kconfig"
aead40ea 295
b759012c
YF
296source "drivers/gpu/drm/stm/Kconfig"
297
aead40ea 298source "drivers/gpu/drm/panel/Kconfig"
f2cb3148 299
a33ee95f
TR
300source "drivers/gpu/drm/bridge/Kconfig"
301
f2cb3148 302source "drivers/gpu/drm/sti/Kconfig"
4a488a7a 303
6556f7f8 304source "drivers/gpu/drm/imx/Kconfig"
c8b75bca 305
57692c94
EA
306source "drivers/gpu/drm/v3d/Kconfig"
307
c8b75bca 308source "drivers/gpu/drm/vc4/Kconfig"
a8c21a54
T
309
310source "drivers/gpu/drm/etnaviv/Kconfig"
51dacf20
CP
311
312source "drivers/gpu/drm/arc/Kconfig"
23e7b2ab
XL
313
314source "drivers/gpu/drm/hisilicon/Kconfig"
119f5173
CH
315
316source "drivers/gpu/drm/mediatek/Kconfig"
d92d9c3a 317
0a886f59
SG
318source "drivers/gpu/drm/zte/Kconfig"
319
45d59d70
MV
320source "drivers/gpu/drm/mxsfb/Kconfig"
321
bbbe775e
NA
322source "drivers/gpu/drm/meson/Kconfig"
323
fa201ac2
NT
324source "drivers/gpu/drm/tinydrm/Kconfig"
325
bed41005
TC
326source "drivers/gpu/drm/pl111/Kconfig"
327
179c02fe
LW
328source "drivers/gpu/drm/tve200/Kconfig"
329
c575b7ee
OA
330source "drivers/gpu/drm/xen/Kconfig"
331
131abc56
HG
332source "drivers/gpu/drm/vboxvideo/Kconfig"
333
d92d9c3a
DH
334# Keep legacy drivers last
335
336menuconfig DRM_LEGACY
337 bool "Enable legacy drivers (DANGEROUS)"
7e53c284 338 depends on DRM && MMU
99c48e1e 339 select DRM_VM
d92d9c3a
DH
340 help
341 Enable legacy DRI1 drivers. Those drivers expose unsafe and dangerous
342 APIs to user-space, which can be used to circumvent access
343 restrictions and other security measures. For backwards compatibility
344 those drivers are still available, but their use is highly
345 inadvisable and might harm your system.
346
347 You are recommended to use the safe modeset-only drivers instead, and
348 perform 3D emulation in user-space.
349
350 Unless you have strong reasons to go rogue, say "N".
351
352if DRM_LEGACY
353
354config DRM_TDFX
355 tristate "3dfx Banshee/Voodoo3+"
356 depends on DRM && PCI
357 help
358 Choose this option if you have a 3dfx Banshee or Voodoo3 (or later),
359 graphics card. If M is selected, the module will be called tdfx.
360
361config DRM_R128
362 tristate "ATI Rage 128"
363 depends on DRM && PCI
364 select FW_LOADER
365 help
366 Choose this option if you have an ATI Rage 128 graphics card. If M
367 is selected, the module will be called r128. AGP support for
368 this card is strongly suggested (unless you have a PCI version).
369
370config DRM_I810
371 tristate "Intel I810"
372 # !PREEMPT because of missing ioctl locking
373 depends on DRM && AGP && AGP_INTEL && (!PREEMPT || BROKEN)
374 help
375 Choose this option if you have an Intel I810 graphics card. If M is
376 selected, the module will be called i810. AGP support is required
377 for this driver to work.
378
379config DRM_MGA
380 tristate "Matrox g200/g400"
381 depends on DRM && PCI
382 select FW_LOADER
383 help
384 Choose this option if you have a Matrox G200, G400 or G450 graphics
385 card. If M is selected, the module will be called mga. AGP
386 support is required for this driver to work.
387
388config DRM_SIS
389 tristate "SiS video cards"
390 depends on DRM && AGP
391 depends on FB_SIS || FB_SIS=n
392 help
393 Choose this option if you have a SiS 630 or compatible video
394 chipset. If M is selected the module will be called sis. AGP
395 support is required for this driver to work.
396
397config DRM_VIA
398 tristate "Via unichrome video cards"
399 depends on DRM && PCI
400 help
401 Choose this option if you have a Via unichrome or compatible video
402 chipset. If M is selected the module will be called via.
403
404config DRM_SAVAGE
405 tristate "Savage video cards"
406 depends on DRM && PCI
407 help
408 Choose this option if you have a Savage3D/4/SuperSavage/Pro/Twister
409 chipset. If M is selected the module will be called savage.
410
411endif # DRM_LEGACY
a33d42dd 412
341a0ffc
HG
413# Separate option because drm_panel_orientation_quirks.c is shared with fbdev
414config DRM_PANEL_ORIENTATION_QUIRKS
415 tristate
416
a33d42dd
CW
417config DRM_LIB_RANDOM
418 bool
419 default n