Commit | Line | Data |
---|---|---|
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 | 7 | menuconfig 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 |
26 | config DRM_MIPI_DSI |
27 | bool | |
28 | depends on DRM | |
29 | ||
e94cb37b RA |
30 | config 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 |
38 | config 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 |
52 | config 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 | 68 | config DRM_KMS_HELPER |
13a8195b DA |
69 | tristate |
70 | depends on DRM | |
92b6f89f DV |
71 | help |
72 | CRTC helpers for KMS drivers. | |
73 | ||
74 | config 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 |
91 | config 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 |
104 | config 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 |
113 | config 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 |
133 | config 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 |
145 | config 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 | 155 | config 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 | ||
85438a8d TZ |
163 | config DRM_VRAM_HELPER |
164 | tristate | |
165 | depends on DRM | |
166 | select DRM_TTM | |
167 | help | |
168 | Helpers for VRAM memory management | |
169 | ||
b9d47450 SH |
170 | config DRM_GEM_CMA_HELPER |
171 | bool | |
e1c7e324 | 172 | depends on DRM |
b9d47450 SH |
173 | help |
174 | Choose this if you need the GEM CMA helper functions | |
175 | ||
2e3b3c42 LPC |
176 | config DRM_KMS_CMA_HELPER |
177 | bool | |
e1c7e324 | 178 | depends on DRM |
2e3b3c42 | 179 | select DRM_GEM_CMA_HELPER |
2e3b3c42 LPC |
180 | help |
181 | Choose this if you need the KMS CMA helper functions | |
182 | ||
2194a63a NT |
183 | config DRM_GEM_SHMEM_HELPER |
184 | bool | |
185 | depends on DRM | |
186 | help | |
187 | Choose this if you need the GEM shmem helper functions | |
188 | ||
99c48e1e BG |
189 | config DRM_VM |
190 | bool | |
7e53c284 | 191 | depends on DRM && MMU |
99c48e1e | 192 | |
1b1f42d8 LS |
193 | config DRM_SCHED |
194 | tristate | |
195 | depends on DRM | |
196 | ||
6504d0d9 RC |
197 | source "drivers/gpu/drm/i2c/Kconfig" |
198 | ||
8e22d792 LD |
199 | source "drivers/gpu/drm/arm/Kconfig" |
200 | ||
1da177e4 LT |
201 | config DRM_RADEON |
202 | tristate "ATI Radeon" | |
011cda58 | 203 | depends on DRM && PCI && MMU |
70967ab9 | 204 | select FW_LOADER |
a0cdc649 DA |
205 | select DRM_KMS_HELPER |
206 | select DRM_TTM | |
5d9b7e2d | 207 | select POWER_SUPPLY |
21a8122a | 208 | select HWMON |
14adc892 | 209 | select BACKLIGHT_CLASS_DEVICE |
0aea5e4a | 210 | select INTERVAL_TREE |
1da177e4 LT |
211 | help |
212 | Choose this option if you have an ATI Radeon graphics card. There | |
213 | are both PCI and AGP versions. You don't need to choose this to | |
7b9af345 | 214 | run the Radeon in plain VGA mode. |
bc5f4523 | 215 | |
1da177e4 LT |
216 | If M is selected, the module will be called radeon. |
217 | ||
f71d0187 DA |
218 | source "drivers/gpu/drm/radeon/Kconfig" |
219 | ||
d38ceaf9 AD |
220 | config DRM_AMDGPU |
221 | tristate "AMD GPU" | |
011cda58 | 222 | depends on DRM && PCI && MMU |
d38ceaf9 AD |
223 | select FW_LOADER |
224 | select DRM_KMS_HELPER | |
1b1f42d8 | 225 | select DRM_SCHED |
d38ceaf9 AD |
226 | select DRM_TTM |
227 | select POWER_SUPPLY | |
228 | select HWMON | |
229 | select BACKLIGHT_CLASS_DEVICE | |
230 | select INTERVAL_TREE | |
a2f14820 | 231 | select CHASH |
d38ceaf9 AD |
232 | help |
233 | Choose this option if you have a recent AMD Radeon graphics card. | |
234 | ||
235 | If M is selected, the module will be called amdgpu. | |
236 | ||
237 | source "drivers/gpu/drm/amd/amdgpu/Kconfig" | |
a8fe58ce | 238 | |
f3c93cbd BS |
239 | source "drivers/gpu/drm/nouveau/Kconfig" |
240 | ||
4520f53a | 241 | source "drivers/gpu/drm/i915/Kconfig" |
99486b8e | 242 | |
502e95c6 ZR |
243 | config DRM_VGEM |
244 | tristate "Virtual GEM provider" | |
245 | depends on DRM | |
246 | help | |
247 | Choose this option to get a virtual graphics memory manager, | |
248 | as used by Mesa's software renderer for enhanced performance. | |
249 | If M is selected the module will be called vgem. | |
250 | ||
1c7c5fd9 | 251 | config DRM_VKMS |
c91b007e | 252 | tristate "Virtual KMS (EXPERIMENTAL)" |
1c7c5fd9 | 253 | depends on DRM |
5ba57bab | 254 | select DRM_KMS_HELPER |
c91b007e | 255 | default n |
1c7c5fd9 | 256 | help |
c91b007e RS |
257 | Virtual Kernel Mode-Setting (VKMS) is used for testing or for |
258 | running GPU in a headless machines. Choose this option to get | |
259 | a VKMS. | |
260 | ||
1c7c5fd9 | 261 | If M is selected the module will be called vkms. |
502e95c6 | 262 | |
848ee538 DA |
263 | config DRM_ATI_PCIGART |
264 | bool | |
265 | ||
5a7b74be TH |
266 | source "drivers/gpu/drm/exynos/Kconfig" |
267 | ||
2048e328 MY |
268 | source "drivers/gpu/drm/rockchip/Kconfig" |
269 | ||
5a7b74be | 270 | source "drivers/gpu/drm/vmwgfx/Kconfig" |
91c75492 AC |
271 | |
272 | source "drivers/gpu/drm/gma500/Kconfig" | |
273 | ||
5320918b | 274 | source "drivers/gpu/drm/udl/Kconfig" |
312fec14 DA |
275 | |
276 | source "drivers/gpu/drm/ast/Kconfig" | |
277 | ||
414c4531 | 278 | source "drivers/gpu/drm/mgag200/Kconfig" |
f9aa76a8 DA |
279 | |
280 | source "drivers/gpu/drm/cirrus/Kconfig" | |
51c13278 | 281 | |
96f60e37 RK |
282 | source "drivers/gpu/drm/armada/Kconfig" |
283 | ||
1a396789 BB |
284 | source "drivers/gpu/drm/atmel-hlcdc/Kconfig" |
285 | ||
4bf8e196 LP |
286 | source "drivers/gpu/drm/rcar-du/Kconfig" |
287 | ||
51c13278 | 288 | source "drivers/gpu/drm/shmobile/Kconfig" |
d8f4a9ed | 289 | |
9026e0d1 MR |
290 | source "drivers/gpu/drm/sun4i/Kconfig" |
291 | ||
8bb0daff | 292 | source "drivers/gpu/drm/omapdrm/Kconfig" |
ca18e142 | 293 | |
16ea975e | 294 | source "drivers/gpu/drm/tilcdc/Kconfig" |
f64122c1 DA |
295 | |
296 | source "drivers/gpu/drm/qxl/Kconfig" | |
c8afe684 | 297 | |
0a6659bd GH |
298 | source "drivers/gpu/drm/bochs/Kconfig" |
299 | ||
dc5698e8 DA |
300 | source "drivers/gpu/drm/virtio/Kconfig" |
301 | ||
c8afe684 | 302 | source "drivers/gpu/drm/msm/Kconfig" |
dee8268f | 303 | |
109eee2f JW |
304 | source "drivers/gpu/drm/fsl-dcu/Kconfig" |
305 | ||
dee8268f | 306 | source "drivers/gpu/drm/tegra/Kconfig" |
aead40ea | 307 | |
b759012c YF |
308 | source "drivers/gpu/drm/stm/Kconfig" |
309 | ||
aead40ea | 310 | source "drivers/gpu/drm/panel/Kconfig" |
f2cb3148 | 311 | |
a33ee95f TR |
312 | source "drivers/gpu/drm/bridge/Kconfig" |
313 | ||
f2cb3148 | 314 | source "drivers/gpu/drm/sti/Kconfig" |
4a488a7a | 315 | |
6556f7f8 | 316 | source "drivers/gpu/drm/imx/Kconfig" |
c8b75bca | 317 | |
57692c94 EA |
318 | source "drivers/gpu/drm/v3d/Kconfig" |
319 | ||
c8b75bca | 320 | source "drivers/gpu/drm/vc4/Kconfig" |
a8c21a54 T |
321 | |
322 | source "drivers/gpu/drm/etnaviv/Kconfig" | |
51dacf20 CP |
323 | |
324 | source "drivers/gpu/drm/arc/Kconfig" | |
23e7b2ab XL |
325 | |
326 | source "drivers/gpu/drm/hisilicon/Kconfig" | |
119f5173 CH |
327 | |
328 | source "drivers/gpu/drm/mediatek/Kconfig" | |
d92d9c3a | 329 | |
0a886f59 SG |
330 | source "drivers/gpu/drm/zte/Kconfig" |
331 | ||
45d59d70 MV |
332 | source "drivers/gpu/drm/mxsfb/Kconfig" |
333 | ||
bbbe775e NA |
334 | source "drivers/gpu/drm/meson/Kconfig" |
335 | ||
fa201ac2 NT |
336 | source "drivers/gpu/drm/tinydrm/Kconfig" |
337 | ||
bed41005 TC |
338 | source "drivers/gpu/drm/pl111/Kconfig" |
339 | ||
179c02fe LW |
340 | source "drivers/gpu/drm/tve200/Kconfig" |
341 | ||
c575b7ee OA |
342 | source "drivers/gpu/drm/xen/Kconfig" |
343 | ||
131abc56 HG |
344 | source "drivers/gpu/drm/vboxvideo/Kconfig" |
345 | ||
a1d2a633 QY |
346 | source "drivers/gpu/drm/lima/Kconfig" |
347 | ||
f3ba9122 RH |
348 | source "drivers/gpu/drm/panfrost/Kconfig" |
349 | ||
4f2a8f58 JS |
350 | source "drivers/gpu/drm/aspeed/Kconfig" |
351 | ||
d92d9c3a DH |
352 | # Keep legacy drivers last |
353 | ||
354 | menuconfig DRM_LEGACY | |
355 | bool "Enable legacy drivers (DANGEROUS)" | |
7e53c284 | 356 | depends on DRM && MMU |
99c48e1e | 357 | select DRM_VM |
848ee538 | 358 | select DRM_ATI_PCIGART if PCI |
d92d9c3a DH |
359 | help |
360 | Enable legacy DRI1 drivers. Those drivers expose unsafe and dangerous | |
361 | APIs to user-space, which can be used to circumvent access | |
362 | restrictions and other security measures. For backwards compatibility | |
363 | those drivers are still available, but their use is highly | |
364 | inadvisable and might harm your system. | |
365 | ||
366 | You are recommended to use the safe modeset-only drivers instead, and | |
367 | perform 3D emulation in user-space. | |
368 | ||
369 | Unless you have strong reasons to go rogue, say "N". | |
370 | ||
371 | if DRM_LEGACY | |
372 | ||
373 | config DRM_TDFX | |
374 | tristate "3dfx Banshee/Voodoo3+" | |
375 | depends on DRM && PCI | |
376 | help | |
377 | Choose this option if you have a 3dfx Banshee or Voodoo3 (or later), | |
378 | graphics card. If M is selected, the module will be called tdfx. | |
379 | ||
380 | config DRM_R128 | |
381 | tristate "ATI Rage 128" | |
382 | depends on DRM && PCI | |
383 | select FW_LOADER | |
384 | help | |
385 | Choose this option if you have an ATI Rage 128 graphics card. If M | |
386 | is selected, the module will be called r128. AGP support for | |
387 | this card is strongly suggested (unless you have a PCI version). | |
388 | ||
389 | config DRM_I810 | |
390 | tristate "Intel I810" | |
391 | # !PREEMPT because of missing ioctl locking | |
392 | depends on DRM && AGP && AGP_INTEL && (!PREEMPT || BROKEN) | |
393 | help | |
394 | Choose this option if you have an Intel I810 graphics card. If M is | |
395 | selected, the module will be called i810. AGP support is required | |
396 | for this driver to work. | |
397 | ||
398 | config DRM_MGA | |
399 | tristate "Matrox g200/g400" | |
400 | depends on DRM && PCI | |
401 | select FW_LOADER | |
402 | help | |
403 | Choose this option if you have a Matrox G200, G400 or G450 graphics | |
404 | card. If M is selected, the module will be called mga. AGP | |
405 | support is required for this driver to work. | |
406 | ||
407 | config DRM_SIS | |
408 | tristate "SiS video cards" | |
409 | depends on DRM && AGP | |
410 | depends on FB_SIS || FB_SIS=n | |
411 | help | |
412 | Choose this option if you have a SiS 630 or compatible video | |
413 | chipset. If M is selected the module will be called sis. AGP | |
414 | support is required for this driver to work. | |
415 | ||
416 | config DRM_VIA | |
417 | tristate "Via unichrome video cards" | |
418 | depends on DRM && PCI | |
419 | help | |
420 | Choose this option if you have a Via unichrome or compatible video | |
421 | chipset. If M is selected the module will be called via. | |
422 | ||
423 | config DRM_SAVAGE | |
424 | tristate "Savage video cards" | |
425 | depends on DRM && PCI | |
426 | help | |
427 | Choose this option if you have a Savage3D/4/SuperSavage/Pro/Twister | |
428 | chipset. If M is selected the module will be called savage. | |
429 | ||
430 | endif # DRM_LEGACY | |
a33d42dd | 431 | |
341a0ffc HG |
432 | # Separate option because drm_panel_orientation_quirks.c is shared with fbdev |
433 | config DRM_PANEL_ORIENTATION_QUIRKS | |
434 | tristate | |
435 | ||
a33d42dd CW |
436 | config DRM_LIB_RANDOM |
437 | bool | |
438 | default n |