blob: 16f73c10239435d6eeebe96ff53ee01d84a050c0 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
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#
Randy Dunlap179b0252007-10-16 01:29:39 -07008menuconfig DRM
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 tristate "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)"
Benjamin Gaignard62a0d982017-01-04 10:12:57 +010010 depends on (AGP || AGP=n) && !EMULATED_CMPXCHG && HAS_DMA
Hans de Goede8d70f392017-11-25 20:35:49 +010011 select DRM_PANEL_ORIENTATION_QUIRKS
Thierry Reding10a85122012-11-21 15:31:35 +010012 select HDMI
Chris Wilsoneaf99c72014-08-06 10:08:32 +020013 select FB_CMDLINE
Dave Airlie57a62972008-12-13 18:21:08 +100014 select I2C
15 select I2C_ALGOBIT
Dave Airlie32488772011-11-25 15:21:02 +000016 select DMA_SHARED_BUFFER
Gustavo Padovan96260142016-11-15 22:06:39 +090017 select SYNC_FILE
Chris Wilson1ea36022021-02-05 22:00:12 +000018# gallium uses SYS_kcmp for os_same_file_description() to de-duplicate
19# device and dmabuf fd. Let's make sure that is available for our userspace.
20 select KCMP
Linus Torvalds1da177e2005-04-16 15:20:36 -070021 help
22 Kernel-level support for the Direct Rendering Infrastructure (DRI)
23 introduced in XFree86 4.0. If you say Y here, you need to select
24 the module that's right for your graphics card from the list below.
25 These modules provide support for synchronization, security, and
26 DMA transfers. Please see <http://dri.sourceforge.net/> for more
27 details. You should also select and configure AGP
Jordan Crousedcdb1672010-05-27 13:40:25 -060028 (/dev/agpgart) support if it is available for your platform.
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
Noralf Trønnes174102f2019-07-22 12:43:11 +020030config DRM_MIPI_DBI
31 tristate
32 depends on DRM
33
Andrzej Hajda068a0022013-12-04 16:35:12 +010034config DRM_MIPI_DSI
35 bool
36 depends on DRM
37
Rafael Antognollie94cb372016-01-21 15:10:19 -080038config DRM_DP_AUX_CHARDEV
39 bool "DRM DP AUX Interface"
40 depends on DRM
41 help
42 Choose this option to enable a /dev/drm_dp_auxN node that allows to
43 read and write values to arbitrary DPCD registers on the DP aux
44 channel.
45
Chris Wilson57056702016-10-31 09:08:06 +000046config DRM_DEBUG_MM
47 bool "Insert extra checks and debug info into the DRM range managers"
48 default n
Chris Wilsoncd456f82016-11-08 13:19:17 +000049 depends on DRM=y
Chris Wilson4b514e12016-11-09 14:39:06 +000050 depends on STACKTRACE_SUPPORT
Chris Wilson57056702016-10-31 09:08:06 +000051 select STACKDEPOT
52 help
53 Enable allocation tracking of memory manager and leak detection on
54 shutdown.
55
56 Recommended for driver developers only.
57
58 If in doubt, say "N".
59
Maarten Lankhorst34b13e52018-05-03 13:22:16 +020060config DRM_DEBUG_SELFTEST
61 tristate "kselftests for DRM"
Chris Wilson50f00332016-12-22 08:36:09 +000062 depends on DRM
63 depends on DEBUG_KERNEL
64 select PRIME_NUMBERS
65 select DRM_LIB_RANDOM
Maarten Lankhorst7420e042018-05-03 13:22:17 +020066 select DRM_KMS_HELPER
Chris Wilson63491202019-11-07 18:05:57 +000067 select DRM_EXPORT_FOR_TESTS if m
Chris Wilson50f00332016-12-22 08:36:09 +000068 default n
69 help
Maarten Lankhorst34b13e52018-05-03 13:22:16 +020070 This option provides kernel modules that can be used to run
71 various selftests on parts of the DRM api. This option is not
Chris Wilson50f00332016-12-22 08:36:09 +000072 useful for distributions or general kernels, but only for kernel
73 developers working on DRM and associated drivers.
74
75 If in doubt, say "N".
76
Dave Airlie6fcefd52009-09-08 11:08:32 +100077config DRM_KMS_HELPER
Dave Airlie13a81952009-09-07 15:45:33 +100078 tristate
79 depends on DRM
Daniel Vetter92b6f892013-10-08 17:44:47 +020080 help
81 CRTC helpers for KMS drivers.
82
83config DRM_KMS_FB_HELPER
84 bool
85 depends on DRM_KMS_HELPER
Dave Airlie13a81952009-09-07 15:45:33 +100086 select FB
David Rientjes6a108a12011-01-20 14:44:16 -080087 select FRAMEBUFFER_CONSOLE if !EXPERT
Dave Airliebf5192e2011-04-22 07:51:33 +100088 select FRAMEBUFFER_CONSOLE_DETECT_PRIMARY if FRAMEBUFFER_CONSOLE
Archit Tanejacbb1a822015-07-31 16:21:41 +053089 select FB_SYS_FOPS
Archit Taneja742547b2015-07-31 16:21:42 +053090 select FB_SYS_FILLRECT
91 select FB_SYS_COPYAREA
92 select FB_SYS_IMAGEBLIT
93 select FB_CFB_FILLRECT
94 select FB_CFB_COPYAREA
95 select FB_CFB_IMAGEBLIT
Noralf Trønneseaa434d2016-04-28 17:18:33 +020096 select FB_DEFERRED_IO
Dave Airlie13a81952009-09-07 15:45:33 +100097 help
Daniel Vetter92b6f892013-10-08 17:44:47 +020098 FBDEV helpers for KMS drivers.
Dave Airlie13a81952009-09-07 15:45:33 +100099
Lyude Paul12a280c2019-06-20 17:59:25 -0400100config DRM_DEBUG_DP_MST_TOPOLOGY_REFS
101 bool "Enable refcount backtrace history in the DP MST helpers"
Guenter Roeckd6d07ca2019-12-02 05:36:50 -0800102 depends on STACKTRACE_SUPPORT
Lyude Paul12a280c2019-06-20 17:59:25 -0400103 select STACKDEPOT
104 depends on DRM_KMS_HELPER
105 depends on DEBUG_KERNEL
106 depends on EXPERT
107 help
108 Enables debug tracing for topology refs in DRM's DP MST helpers. A
109 history of each topology reference/dereference will be printed to the
110 kernel log once a port or branch device's topology refcount reaches 0.
111
112 This has the potential to use a lot of memory and print some very
113 large kernel messages. If in doubt, say "N".
114
Archit Tanejaa03fdcb2015-08-05 12:28:57 +0530115config DRM_FBDEV_EMULATION
116 bool "Enable legacy fbdev support for your modesetting driver"
117 depends on DRM
118 select DRM_KMS_HELPER
119 select DRM_KMS_FB_HELPER
120 default y
121 help
122 Choose this option if you have a need for the legacy fbdev
123 support. Note that this support also provides the linux console
124 support on top of your modesetting driver.
125
126 If in doubt, say "Y".
127
Xinliang Liu5f152572017-02-15 17:19:08 +0100128config DRM_FBDEV_OVERALLOC
129 int "Overallocation of the fbdev buffer"
130 depends on DRM_FBDEV_EMULATION
131 default 100
132 help
133 Defines the fbdev buffer overallocation in percent. Default
134 is 100. Typical values for double buffering will be 200,
135 triple buffering 300.
136
Neil Armstrong4be9bd12018-09-28 14:05:55 +0200137config DRM_FBDEV_LEAK_PHYS_SMEM
138 bool "Shamelessly allow leaking of fbdev physical address (DANGEROUS)"
139 depends on DRM_FBDEV_EMULATION && EXPERT
140 default n
141 help
142 In order to keep user-space compatibility, we want in certain
143 use-cases to keep leaking the fbdev physical address to the
144 user-space program handling the fbdev buffer.
145 This affects, not only, Amlogic, Allwinner or Rockchip devices
146 with ARM Mali GPUs using an userspace Blob.
147 This option is not supported by upstream developers and should be
148 removed as soon as possible and be considered as a broken and
149 legacy behaviour from a modern fbdev device driver.
150
151 Please send any bug reports when using this to your proprietary
152 software vendor that requires this.
153
154 If in doubt, say "N" or spread the word to your closed source
155 library vendor.
156
Carsten Emdeda0df922012-03-18 22:37:33 +0100157config DRM_LOAD_EDID_FIRMWARE
158 bool "Allow to specify an EDID data set instead of probing for it"
Jani Nikula53fd40a2017-09-12 11:19:26 +0300159 depends on DRM
Carsten Emdeda0df922012-03-18 22:37:33 +0100160 help
161 Say Y here, if you want to use EDID data to be loaded from the
162 /lib/firmware directory or one of the provided built-in
163 data sets. This may be necessary, if the graphics adapter or
164 monitor are unable to provide appropriate EDID data. Since this
165 feature is provided as a workaround for broken hardware, the
166 default case is N. Details and instructions how to build your own
Mauro Carvalho Chehab72ef5e52020-04-14 18:48:35 +0200167 EDID data are given in Documentation/admin-guide/edid.rst.
Carsten Emdeda0df922012-03-18 22:37:33 +0100168
Hans Verkuil2c6d1ff2018-07-11 15:29:07 +0200169config DRM_DP_CEC
170 bool "Enable DisplayPort CEC-Tunneling-over-AUX HDMI support"
Hans Verkuil539bbf32019-12-06 12:26:08 +0100171 depends on DRM
Hans Verkuil2c6d1ff2018-07-11 15:29:07 +0200172 select CEC_CORE
173 help
174 Choose this option if you want to enable HDMI CEC support for
175 DisplayPort/USB-C to HDMI adapters.
176
177 Note: not all adapters support this feature, and even for those
178 that do support this they often do not hook up the CEC pin.
179
Thomas Hellstromba4e7d92009-06-10 15:20:19 +0200180config DRM_TTM
Jerome Glisse771fe6b2009-06-05 14:42:42 +0200181 tristate
Benjamin Gaignard62a0d982017-01-04 10:12:57 +0100182 depends on DRM && MMU
Thomas Hellstromba4e7d92009-06-10 15:20:19 +0200183 help
184 GPU memory management subsystem for devices with multiple
185 GPU memory types. Will be enabled automatically if a device driver
186 uses it.
187
Thomas Hellstrome2e96662019-11-13 19:02:42 +0100188config DRM_TTM_DMA_PAGE_POOL
189 bool
190 depends on DRM_TTM && (SWIOTLB || INTEL_IOMMU)
191 default y
192 help
193 Choose this if you need the TTM dma page pool
194
Thomas Zimmermann85438a82019-05-08 10:26:11 +0200195config DRM_VRAM_HELPER
196 tristate
197 depends on DRM
Thomas Zimmermann85438a82019-05-08 10:26:11 +0200198 help
199 Helpers for VRAM memory management
200
Gerd Hoffmannff540b72019-09-04 07:47:35 +0200201config DRM_TTM_HELPER
202 tristate
203 depends on DRM
204 select DRM_TTM
205 help
206 Helpers for ttm-based gem objects
207
Sascha Hauerb9d47452012-06-27 15:30:18 +0200208config DRM_GEM_CMA_HELPER
209 bool
Christoph Hellwige1c7e322016-01-20 15:02:05 -0800210 depends on DRM
Sascha Hauerb9d47452012-06-27 15:30:18 +0200211 help
212 Choose this if you need the GEM CMA helper functions
213
Lars-Peter Clausen2e3b3c42012-07-02 16:37:47 +0200214config DRM_KMS_CMA_HELPER
215 bool
Christoph Hellwige1c7e322016-01-20 15:02:05 -0800216 depends on DRM
Lars-Peter Clausen2e3b3c42012-07-02 16:37:47 +0200217 select DRM_GEM_CMA_HELPER
Lars-Peter Clausen2e3b3c42012-07-02 16:37:47 +0200218 help
219 Choose this if you need the KMS CMA helper functions
220
Noralf Trønnes2194a632019-03-12 19:43:44 -0500221config DRM_GEM_SHMEM_HELPER
222 bool
223 depends on DRM
224 help
225 Choose this if you need the GEM shmem helper functions
226
Benjamin Gaignard99c48e12017-01-04 10:12:56 +0100227config DRM_VM
228 bool
Benjamin Gaignard7e53c282017-01-12 09:57:36 +0100229 depends on DRM && MMU
Benjamin Gaignard99c48e12017-01-04 10:12:56 +0100230
Lucas Stach1b1f42d2017-12-06 17:49:39 +0100231config DRM_SCHED
232 tristate
233 depends on DRM
234
Rob Clark6504d0d2013-01-24 21:46:07 +0000235source "drivers/gpu/drm/i2c/Kconfig"
236
Liviu Dudau8e22d792015-04-02 19:48:39 +0100237source "drivers/gpu/drm/arm/Kconfig"
238
Linus Torvalds1da177e2005-04-16 15:20:36 -0700239config DRM_RADEON
240 tristate "ATI Radeon"
Benjamin Gaignard011cda52017-01-07 12:39:11 +0100241 depends on DRM && PCI && MMU
Ben Hutchings70967ab2009-08-29 14:53:51 +0100242 select FW_LOADER
Dave Airliea0cdc642009-09-08 11:09:50 +1000243 select DRM_KMS_HELPER
244 select DRM_TTM
Dave Airlie5d9b7e22010-05-21 15:41:20 +1000245 select POWER_SUPPLY
Alex Deucher21a81222010-07-02 12:58:16 -0400246 select HWMON
Christian König14adc892013-01-21 13:58:46 +0100247 select BACKLIGHT_CLASS_DEVICE
Alex Deucher0aea5e42014-07-30 11:49:56 -0400248 select INTERVAL_TREE
Linus Torvalds1da177e2005-04-16 15:20:36 -0700249 help
250 Choose this option if you have an ATI Radeon graphics card. There
251 are both PCI and AGP versions. You don't need to choose this to
Adrian Bunk7b9af342006-03-20 20:23:13 +0100252 run the Radeon in plain VGA mode.
Dave Airliebc5f4522007-11-05 12:50:58 +1000253
Linus Torvalds1da177e2005-04-16 15:20:36 -0700254 If M is selected, the module will be called radeon.
255
Dave Airlief71d0182010-02-01 11:35:47 +1000256source "drivers/gpu/drm/radeon/Kconfig"
257
Alex Deucherd38ceaf2015-04-20 16:55:21 -0400258config DRM_AMDGPU
259 tristate "AMD GPU"
Benjamin Gaignard011cda52017-01-07 12:39:11 +0100260 depends on DRM && PCI && MMU
Alex Deucherd38ceaf2015-04-20 16:55:21 -0400261 select FW_LOADER
Krzysztof Kozlowski23c61b42019-10-07 19:33:22 +0200262 select DRM_KMS_HELPER
Lucas Stach1b1f42d2017-12-06 17:49:39 +0100263 select DRM_SCHED
Krzysztof Kozlowski23c61b42019-10-07 19:33:22 +0200264 select DRM_TTM
Alex Deucherd38ceaf2015-04-20 16:55:21 -0400265 select POWER_SUPPLY
266 select HWMON
267 select BACKLIGHT_CLASS_DEVICE
268 select INTERVAL_TREE
Felix Kuehlinga2f14822017-08-26 02:43:06 -0400269 select CHASH
Alex Deucherd38ceaf2015-04-20 16:55:21 -0400270 help
271 Choose this option if you have a recent AMD Radeon graphics card.
272
273 If M is selected, the module will be called amdgpu.
274
275source "drivers/gpu/drm/amd/amdgpu/Kconfig"
Maruthi Bayyavarapua8fe58c2015-09-22 17:05:20 -0400276
Ben Skeggsf3c93cb2012-03-16 18:19:14 +1000277source "drivers/gpu/drm/nouveau/Kconfig"
278
Daniel Vetter4520f532013-10-09 09:18:51 +0200279source "drivers/gpu/drm/i915/Kconfig"
Josh Triplett99486b82013-08-13 16:23:17 -0700280
Zach Reizner502e95c2015-03-04 16:33:41 -0800281config DRM_VGEM
282 tristate "Virtual GEM provider"
283 depends on DRM
284 help
285 Choose this option to get a virtual graphics memory manager,
286 as used by Mesa's software renderer for enhanced performance.
287 If M is selected the module will be called vgem.
288
Haneen Mohammed1c7c5fd2018-05-14 17:33:46 +0300289config DRM_VKMS
Rodrigo Siqueirac91b0072018-05-16 20:56:40 -0300290 tristate "Virtual KMS (EXPERIMENTAL)"
Haneen Mohammed1c7c5fd2018-05-14 17:33:46 +0300291 depends on DRM
Arnd Bergmann5ba57ba2018-07-09 17:48:18 +0200292 select DRM_KMS_HELPER
zhong jiangf2a4a132019-09-23 09:24:43 +0800293 select CRC32
Rodrigo Siqueirac91b0072018-05-16 20:56:40 -0300294 default n
Haneen Mohammed1c7c5fd2018-05-14 17:33:46 +0300295 help
Rodrigo Siqueirac91b0072018-05-16 20:56:40 -0300296 Virtual Kernel Mode-Setting (VKMS) is used for testing or for
297 running GPU in a headless machines. Choose this option to get
298 a VKMS.
299
Haneen Mohammed1c7c5fd2018-05-14 17:33:46 +0300300 If M is selected the module will be called vkms.
Zach Reizner502e95c2015-03-04 16:33:41 -0800301
Thomas Hellstrom5a7b74b2011-10-11 10:42:51 +0200302source "drivers/gpu/drm/exynos/Kconfig"
303
Mark Yao2048e322014-08-22 18:36:26 +0800304source "drivers/gpu/drm/rockchip/Kconfig"
305
Thomas Hellstrom5a7b74b2011-10-11 10:42:51 +0200306source "drivers/gpu/drm/vmwgfx/Kconfig"
Alan Cox91c75492011-11-03 18:22:48 +0000307
308source "drivers/gpu/drm/gma500/Kconfig"
309
Dave Airlie53209182010-12-15 07:14:24 +1000310source "drivers/gpu/drm/udl/Kconfig"
Dave Airlie312fec12012-02-29 13:40:04 +0000311
312source "drivers/gpu/drm/ast/Kconfig"
313
Dave Airlie414c4532012-04-17 15:01:25 +0100314source "drivers/gpu/drm/mgag200/Kconfig"
Dave Airlief9aa76a2012-04-17 14:12:29 +0100315
Russell King96f60e32012-08-15 13:59:49 +0100316source "drivers/gpu/drm/armada/Kconfig"
317
Boris Brezillon1a396782015-01-06 11:13:28 +0100318source "drivers/gpu/drm/atmel-hlcdc/Kconfig"
319
Laurent Pinchart4bf8e192013-06-19 13:54:11 +0200320source "drivers/gpu/drm/rcar-du/Kconfig"
321
Laurent Pinchart51c13272012-04-26 13:53:59 +0200322source "drivers/gpu/drm/shmobile/Kconfig"
Thierry Redingd8f4a9e2012-11-15 21:28:22 +0000323
Maxime Ripard9026e0d2015-10-29 09:36:23 +0100324source "drivers/gpu/drm/sun4i/Kconfig"
325
Rob Clark8bb0daf2013-02-11 12:43:09 -0500326source "drivers/gpu/drm/omapdrm/Kconfig"
Dave Airlieca18e142013-02-21 09:31:47 +1000327
Rob Clark16ea9752013-01-08 15:04:28 -0600328source "drivers/gpu/drm/tilcdc/Kconfig"
Dave Airlief64122c2013-02-25 14:47:55 +1000329
330source "drivers/gpu/drm/qxl/Kconfig"
Rob Clarkc8afe682013-06-26 12:44:06 -0400331
Gerd Hoffmann0a6659b2013-12-17 18:04:46 +0100332source "drivers/gpu/drm/bochs/Kconfig"
333
Dave Airliedc5698e2013-09-09 10:02:56 +1000334source "drivers/gpu/drm/virtio/Kconfig"
335
Rob Clarkc8afe682013-06-26 12:44:06 -0400336source "drivers/gpu/drm/msm/Kconfig"
Thierry Redingdee82682013-10-09 10:32:49 +0200337
Jianwei Wang109eee22015-08-19 22:19:49 -0400338source "drivers/gpu/drm/fsl-dcu/Kconfig"
339
Thierry Redingdee82682013-10-09 10:32:49 +0200340source "drivers/gpu/drm/tegra/Kconfig"
Thierry Redingaead40e2013-08-30 13:36:43 +0200341
Yannick Fertreb7590122017-04-14 12:13:34 +0200342source "drivers/gpu/drm/stm/Kconfig"
343
Thierry Redingaead40e2013-08-30 13:36:43 +0200344source "drivers/gpu/drm/panel/Kconfig"
Benjamin Gaignardf2cb3142014-07-30 18:20:56 +0200345
Thierry Redinga33ee952015-07-21 17:01:19 +0200346source "drivers/gpu/drm/bridge/Kconfig"
347
Benjamin Gaignardf2cb3142014-07-30 18:20:56 +0200348source "drivers/gpu/drm/sti/Kconfig"
Oded Gabbay4a488a72014-07-16 21:08:55 +0300349
Philipp Zabel6556f7f2014-11-24 16:33:34 +0100350source "drivers/gpu/drm/imx/Kconfig"
Eric Anholtc8b75bc2015-03-02 13:01:12 -0800351
Paul Cercueil90b86fc2019-06-03 17:23:31 +0200352source "drivers/gpu/drm/ingenic/Kconfig"
353
Eric Anholt57692c92018-04-30 11:10:58 -0700354source "drivers/gpu/drm/v3d/Kconfig"
355
Eric Anholtc8b75bc2015-03-02 13:01:12 -0800356source "drivers/gpu/drm/vc4/Kconfig"
The etnaviv authorsa8c21a52015-12-03 18:21:29 +0100357
358source "drivers/gpu/drm/etnaviv/Kconfig"
Carlos Palminha51dacf22016-02-19 15:30:26 +0300359
360source "drivers/gpu/drm/arc/Kconfig"
Xinliang Liu23e7b2a2015-10-09 18:00:56 +0800361
362source "drivers/gpu/drm/hisilicon/Kconfig"
CK Hu119f5172016-01-04 18:36:34 +0100363
364source "drivers/gpu/drm/mediatek/Kconfig"
David Herrmannd92d9c3a2016-08-04 10:06:56 +0200365
Shawn Guo0a886f52016-09-22 19:52:39 +0800366source "drivers/gpu/drm/zte/Kconfig"
367
Marek Vasut45d59d72016-08-18 20:23:01 +0200368source "drivers/gpu/drm/mxsfb/Kconfig"
369
Neil Armstrongbbbe7752016-11-10 15:29:37 +0100370source "drivers/gpu/drm/meson/Kconfig"
371
Noralf Trønnes043386a2019-07-25 12:51:31 +0200372source "drivers/gpu/drm/tiny/Kconfig"
Noralf Trønnesfa201ac2017-01-22 00:15:00 +0100373
Tom Cookseybed41002017-04-12 20:17:46 -0700374source "drivers/gpu/drm/pl111/Kconfig"
375
Linus Walleij179c02f2017-08-20 12:05:55 +0200376source "drivers/gpu/drm/tve200/Kconfig"
377
Oleksandr Andrushchenkoc575b7e2018-04-03 14:23:17 +0300378source "drivers/gpu/drm/xen/Kconfig"
379
Hans de Goede131abc52019-03-04 17:47:24 +0100380source "drivers/gpu/drm/vboxvideo/Kconfig"
381
Qiang Yua1d2a632019-03-09 20:20:12 +0800382source "drivers/gpu/drm/lima/Kconfig"
383
Rob Herringf3ba9122018-09-10 14:27:58 -0500384source "drivers/gpu/drm/panfrost/Kconfig"
385
Joel Stanley4f2a8f52019-04-03 10:49:08 +1030386source "drivers/gpu/drm/aspeed/Kconfig"
387
Linus Walleij5fc537b2019-05-24 11:20:19 +0200388source "drivers/gpu/drm/mcde/Kconfig"
389
Jyri Sarha32a17952019-11-08 09:45:28 +0200390source "drivers/gpu/drm/tidss/Kconfig"
391
Hyun Kwond76271d2018-07-07 19:05:34 -0700392source "drivers/gpu/drm/xlnx/Kconfig"
393
David Herrmannd92d9c3a2016-08-04 10:06:56 +0200394# Keep legacy drivers last
395
396menuconfig DRM_LEGACY
397 bool "Enable legacy drivers (DANGEROUS)"
Benjamin Gaignard7e53c282017-01-12 09:57:36 +0100398 depends on DRM && MMU
Benjamin Gaignard99c48e12017-01-04 10:12:56 +0100399 select DRM_VM
David Herrmannd92d9c3a2016-08-04 10:06:56 +0200400 help
401 Enable legacy DRI1 drivers. Those drivers expose unsafe and dangerous
402 APIs to user-space, which can be used to circumvent access
403 restrictions and other security measures. For backwards compatibility
404 those drivers are still available, but their use is highly
405 inadvisable and might harm your system.
406
407 You are recommended to use the safe modeset-only drivers instead, and
408 perform 3D emulation in user-space.
409
410 Unless you have strong reasons to go rogue, say "N".
411
412if DRM_LEGACY
413
414config DRM_TDFX
415 tristate "3dfx Banshee/Voodoo3+"
416 depends on DRM && PCI
417 help
418 Choose this option if you have a 3dfx Banshee or Voodoo3 (or later),
419 graphics card. If M is selected, the module will be called tdfx.
420
421config DRM_R128
422 tristate "ATI Rage 128"
423 depends on DRM && PCI
424 select FW_LOADER
425 help
426 Choose this option if you have an ATI Rage 128 graphics card. If M
427 is selected, the module will be called r128. AGP support for
428 this card is strongly suggested (unless you have a PCI version).
429
430config DRM_I810
431 tristate "Intel I810"
Sebastian Andrzej Siewiorf86cf712019-10-15 21:18:15 +0200432 # !PREEMPTION because of missing ioctl locking
Thomas Gleixnerdc25ace2019-07-26 22:25:20 +0200433 depends on DRM && AGP && AGP_INTEL && (!PREEMPTION || BROKEN)
David Herrmannd92d9c3a2016-08-04 10:06:56 +0200434 help
435 Choose this option if you have an Intel I810 graphics card. If M is
436 selected, the module will be called i810. AGP support is required
437 for this driver to work.
438
439config DRM_MGA
440 tristate "Matrox g200/g400"
441 depends on DRM && PCI
442 select FW_LOADER
443 help
444 Choose this option if you have a Matrox G200, G400 or G450 graphics
445 card. If M is selected, the module will be called mga. AGP
446 support is required for this driver to work.
447
448config DRM_SIS
449 tristate "SiS video cards"
450 depends on DRM && AGP
451 depends on FB_SIS || FB_SIS=n
452 help
453 Choose this option if you have a SiS 630 or compatible video
454 chipset. If M is selected the module will be called sis. AGP
455 support is required for this driver to work.
456
457config DRM_VIA
458 tristate "Via unichrome video cards"
459 depends on DRM && PCI
460 help
461 Choose this option if you have a Via unichrome or compatible video
462 chipset. If M is selected the module will be called via.
463
464config DRM_SAVAGE
465 tristate "Savage video cards"
466 depends on DRM && PCI
467 help
468 Choose this option if you have a Savage3D/4/SuperSavage/Pro/Twister
469 chipset. If M is selected the module will be called savage.
470
471endif # DRM_LEGACY
Chris Wilsona33d42d2016-12-22 08:36:08 +0000472
Randy Dunlap9b6c80b2020-03-05 17:26:10 -0800473config DRM_EXPORT_FOR_TESTS
474 bool
475
Hans de Goede341a0ff2018-01-17 09:10:32 +0100476# Separate option because drm_panel_orientation_quirks.c is shared with fbdev
477config DRM_PANEL_ORIENTATION_QUIRKS
478 tristate
479
Chris Wilsona33d42d2016-12-22 08:36:08 +0000480config DRM_LIB_RANDOM
481 bool
482 default n