1# SPDX-License-Identifier: GPL-2.0-only 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# 8menuconfig DRM 9 tristate "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)" 10 depends on (AGP || AGP=n) && !EMULATED_CMPXCHG && HAS_DMA 11 select DRM_PANEL_ORIENTATION_QUIRKS 12 select HDMI 13 select FB_CMDLINE 14 select I2C 15 select I2C_ALGOBIT 16 select DMA_SHARED_BUFFER 17 select SYNC_FILE 18 help 19 Kernel-level support for the Direct Rendering Infrastructure (DRI) 20 introduced in XFree86 4.0. If you say Y here, you need to select 21 the module that's right for your graphics card from the list below. 22 These modules provide support for synchronization, security, and 23 DMA transfers. Please see <http://dri.sourceforge.net/> for more 24 details. You should also select and configure AGP 25 (/dev/agpgart) support if it is available for your platform. 26 27config DRM_MIPI_DBI 28 tristate 29 depends on DRM 30 31config DRM_MIPI_DSI 32 bool 33 depends on DRM 34 35config DRM_DP_AUX_CHARDEV 36 bool "DRM DP AUX Interface" 37 depends on DRM 38 help 39 Choose this option to enable a /dev/drm_dp_auxN node that allows to 40 read and write values to arbitrary DPCD registers on the DP aux 41 channel. 42 43config DRM_DEBUG_MM 44 bool "Insert extra checks and debug info into the DRM range managers" 45 default n 46 depends on DRM=y 47 depends on STACKTRACE_SUPPORT 48 select STACKDEPOT 49 help 50 Enable allocation tracking of memory manager and leak detection on 51 shutdown. 52 53 Recommended for driver developers only. 54 55 If in doubt, say "N". 56 57config DRM_DEBUG_SELFTEST 58 tristate "kselftests for DRM" 59 depends on DRM 60 depends on DEBUG_KERNEL 61 select PRIME_NUMBERS 62 select DRM_LIB_RANDOM 63 select DRM_KMS_HELPER 64 default n 65 help 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 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 73config DRM_KMS_HELPER 74 tristate 75 depends on DRM 76 help 77 CRTC helpers for KMS drivers. 78 79config DRM_KMS_FB_HELPER 80 bool 81 depends on DRM_KMS_HELPER 82 select FB 83 select FRAMEBUFFER_CONSOLE if !EXPERT 84 select FRAMEBUFFER_CONSOLE_DETECT_PRIMARY if FRAMEBUFFER_CONSOLE 85 select FB_SYS_FOPS 86 select FB_SYS_FILLRECT 87 select FB_SYS_COPYAREA 88 select FB_SYS_IMAGEBLIT 89 select FB_CFB_FILLRECT 90 select FB_CFB_COPYAREA 91 select FB_CFB_IMAGEBLIT 92 select FB_DEFERRED_IO 93 help 94 FBDEV helpers for KMS drivers. 95 96config DRM_DEBUG_DP_MST_TOPOLOGY_REFS 97 bool "Enable refcount backtrace history in the DP MST helpers" 98 select STACKDEPOT 99 depends on DRM_KMS_HELPER 100 depends on DEBUG_KERNEL 101 depends on EXPERT 102 help 103 Enables debug tracing for topology refs in DRM's DP MST helpers. A 104 history of each topology reference/dereference will be printed to the 105 kernel log once a port or branch device's topology refcount reaches 0. 106 107 This has the potential to use a lot of memory and print some very 108 large kernel messages. If in doubt, say "N". 109 110config DRM_FBDEV_EMULATION 111 bool "Enable legacy fbdev support for your modesetting driver" 112 depends on DRM 113 select DRM_KMS_HELPER 114 select DRM_KMS_FB_HELPER 115 default y 116 help 117 Choose this option if you have a need for the legacy fbdev 118 support. Note that this support also provides the linux console 119 support on top of your modesetting driver. 120 121 If in doubt, say "Y". 122 123config DRM_FBDEV_OVERALLOC 124 int "Overallocation of the fbdev buffer" 125 depends on DRM_FBDEV_EMULATION 126 default 100 127 help 128 Defines the fbdev buffer overallocation in percent. Default 129 is 100. Typical values for double buffering will be 200, 130 triple buffering 300. 131 132config DRM_FBDEV_LEAK_PHYS_SMEM 133 bool "Shamelessly allow leaking of fbdev physical address (DANGEROUS)" 134 depends on DRM_FBDEV_EMULATION && EXPERT 135 default n 136 help 137 In order to keep user-space compatibility, we want in certain 138 use-cases to keep leaking the fbdev physical address to the 139 user-space program handling the fbdev buffer. 140 This affects, not only, Amlogic, Allwinner or Rockchip devices 141 with ARM Mali GPUs using an userspace Blob. 142 This option is not supported by upstream developers and should be 143 removed as soon as possible and be considered as a broken and 144 legacy behaviour from a modern fbdev device driver. 145 146 Please send any bug reports when using this to your proprietary 147 software vendor that requires this. 148 149 If in doubt, say "N" or spread the word to your closed source 150 library vendor. 151 152config DRM_LOAD_EDID_FIRMWARE 153 bool "Allow to specify an EDID data set instead of probing for it" 154 depends on DRM 155 help 156 Say Y here, if you want to use EDID data to be loaded from the 157 /lib/firmware directory or one of the provided built-in 158 data sets. This may be necessary, if the graphics adapter or 159 monitor are unable to provide appropriate EDID data. Since this 160 feature is provided as a workaround for broken hardware, the 161 default case is N. Details and instructions how to build your own 162 EDID data are given in Documentation/driver-api/edid.rst. 163 164config DRM_DP_CEC 165 bool "Enable DisplayPort CEC-Tunneling-over-AUX HDMI support" 166 select CEC_CORE 167 help 168 Choose this option if you want to enable HDMI CEC support for 169 DisplayPort/USB-C to HDMI adapters. 170 171 Note: not all adapters support this feature, and even for those 172 that do support this they often do not hook up the CEC pin. 173 174config DRM_TTM 175 tristate 176 depends on DRM && MMU 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 182config DRM_VRAM_HELPER 183 tristate 184 depends on DRM 185 help 186 Helpers for VRAM memory management 187 188config DRM_TTM_HELPER 189 tristate 190 depends on DRM 191 select DRM_TTM 192 help 193 Helpers for ttm-based gem objects 194 195config DRM_GEM_CMA_HELPER 196 bool 197 depends on DRM 198 help 199 Choose this if you need the GEM CMA helper functions 200 201config DRM_KMS_CMA_HELPER 202 bool 203 depends on DRM 204 select DRM_GEM_CMA_HELPER 205 help 206 Choose this if you need the KMS CMA helper functions 207 208config DRM_GEM_SHMEM_HELPER 209 bool 210 depends on DRM 211 help 212 Choose this if you need the GEM shmem helper functions 213 214config DRM_VM 215 bool 216 depends on DRM && MMU 217 218config DRM_SCHED 219 tristate 220 depends on DRM 221 222source "drivers/gpu/drm/i2c/Kconfig" 223 224source "drivers/gpu/drm/arm/Kconfig" 225 226config DRM_RADEON 227 tristate "ATI Radeon" 228 depends on DRM && PCI && MMU 229 select FW_LOADER 230 select DRM_KMS_HELPER 231 select DRM_TTM 232 select POWER_SUPPLY 233 select HWMON 234 select BACKLIGHT_CLASS_DEVICE 235 select INTERVAL_TREE 236 help 237 Choose this option if you have an ATI Radeon graphics card. There 238 are both PCI and AGP versions. You don't need to choose this to 239 run the Radeon in plain VGA mode. 240 241 If M is selected, the module will be called radeon. 242 243source "drivers/gpu/drm/radeon/Kconfig" 244 245config DRM_AMDGPU 246 tristate "AMD GPU" 247 depends on DRM && PCI && MMU 248 select FW_LOADER 249 select DRM_KMS_HELPER 250 select DRM_SCHED 251 select DRM_TTM 252 select POWER_SUPPLY 253 select HWMON 254 select BACKLIGHT_CLASS_DEVICE 255 select INTERVAL_TREE 256 select CHASH 257 help 258 Choose this option if you have a recent AMD Radeon graphics card. 259 260 If M is selected, the module will be called amdgpu. 261 262source "drivers/gpu/drm/amd/amdgpu/Kconfig" 263 264source "drivers/gpu/drm/nouveau/Kconfig" 265 266source "drivers/gpu/drm/i915/Kconfig" 267 268config DRM_VGEM 269 tristate "Virtual GEM provider" 270 depends on DRM 271 help 272 Choose this option to get a virtual graphics memory manager, 273 as used by Mesa's software renderer for enhanced performance. 274 If M is selected the module will be called vgem. 275 276config DRM_VKMS 277 tristate "Virtual KMS (EXPERIMENTAL)" 278 depends on DRM 279 select DRM_KMS_HELPER 280 select CRC32 281 default n 282 help 283 Virtual Kernel Mode-Setting (VKMS) is used for testing or for 284 running GPU in a headless machines. Choose this option to get 285 a VKMS. 286 287 If M is selected the module will be called vkms. 288 289config DRM_ATI_PCIGART 290 bool 291 292source "drivers/gpu/drm/exynos/Kconfig" 293 294source "drivers/gpu/drm/rockchip/Kconfig" 295 296source "drivers/gpu/drm/vmwgfx/Kconfig" 297 298source "drivers/gpu/drm/gma500/Kconfig" 299 300source "drivers/gpu/drm/udl/Kconfig" 301 302source "drivers/gpu/drm/ast/Kconfig" 303 304source "drivers/gpu/drm/mgag200/Kconfig" 305 306source "drivers/gpu/drm/cirrus/Kconfig" 307 308source "drivers/gpu/drm/armada/Kconfig" 309 310source "drivers/gpu/drm/atmel-hlcdc/Kconfig" 311 312source "drivers/gpu/drm/rcar-du/Kconfig" 313 314source "drivers/gpu/drm/shmobile/Kconfig" 315 316source "drivers/gpu/drm/sun4i/Kconfig" 317 318source "drivers/gpu/drm/omapdrm/Kconfig" 319 320source "drivers/gpu/drm/tilcdc/Kconfig" 321 322source "drivers/gpu/drm/qxl/Kconfig" 323 324source "drivers/gpu/drm/bochs/Kconfig" 325 326source "drivers/gpu/drm/virtio/Kconfig" 327 328source "drivers/gpu/drm/msm/Kconfig" 329 330source "drivers/gpu/drm/fsl-dcu/Kconfig" 331 332source "drivers/gpu/drm/tegra/Kconfig" 333 334source "drivers/gpu/drm/stm/Kconfig" 335 336source "drivers/gpu/drm/panel/Kconfig" 337 338source "drivers/gpu/drm/bridge/Kconfig" 339 340source "drivers/gpu/drm/sti/Kconfig" 341 342source "drivers/gpu/drm/imx/Kconfig" 343 344source "drivers/gpu/drm/ingenic/Kconfig" 345 346source "drivers/gpu/drm/v3d/Kconfig" 347 348source "drivers/gpu/drm/vc4/Kconfig" 349 350source "drivers/gpu/drm/etnaviv/Kconfig" 351 352source "drivers/gpu/drm/arc/Kconfig" 353 354source "drivers/gpu/drm/hisilicon/Kconfig" 355 356source "drivers/gpu/drm/mediatek/Kconfig" 357 358source "drivers/gpu/drm/zte/Kconfig" 359 360source "drivers/gpu/drm/mxsfb/Kconfig" 361 362source "drivers/gpu/drm/meson/Kconfig" 363 364source "drivers/gpu/drm/tiny/Kconfig" 365 366source "drivers/gpu/drm/pl111/Kconfig" 367 368source "drivers/gpu/drm/tve200/Kconfig" 369 370source "drivers/gpu/drm/xen/Kconfig" 371 372source "drivers/gpu/drm/vboxvideo/Kconfig" 373 374source "drivers/gpu/drm/lima/Kconfig" 375 376source "drivers/gpu/drm/panfrost/Kconfig" 377 378source "drivers/gpu/drm/aspeed/Kconfig" 379 380source "drivers/gpu/drm/mcde/Kconfig" 381 382# Keep legacy drivers last 383 384menuconfig DRM_LEGACY 385 bool "Enable legacy drivers (DANGEROUS)" 386 depends on DRM && MMU 387 select DRM_VM 388 select DRM_ATI_PCIGART if PCI 389 help 390 Enable legacy DRI1 drivers. Those drivers expose unsafe and dangerous 391 APIs to user-space, which can be used to circumvent access 392 restrictions and other security measures. For backwards compatibility 393 those drivers are still available, but their use is highly 394 inadvisable and might harm your system. 395 396 You are recommended to use the safe modeset-only drivers instead, and 397 perform 3D emulation in user-space. 398 399 Unless you have strong reasons to go rogue, say "N". 400 401if DRM_LEGACY 402 403config DRM_TDFX 404 tristate "3dfx Banshee/Voodoo3+" 405 depends on DRM && PCI 406 help 407 Choose this option if you have a 3dfx Banshee or Voodoo3 (or later), 408 graphics card. If M is selected, the module will be called tdfx. 409 410config DRM_R128 411 tristate "ATI Rage 128" 412 depends on DRM && PCI 413 select FW_LOADER 414 help 415 Choose this option if you have an ATI Rage 128 graphics card. If M 416 is selected, the module will be called r128. AGP support for 417 this card is strongly suggested (unless you have a PCI version). 418 419config DRM_I810 420 tristate "Intel I810" 421 # !PREEMPTION because of missing ioctl locking 422 depends on DRM && AGP && AGP_INTEL && (!PREEMPTION || BROKEN) 423 help 424 Choose this option if you have an Intel I810 graphics card. If M is 425 selected, the module will be called i810. AGP support is required 426 for this driver to work. 427 428config DRM_MGA 429 tristate "Matrox g200/g400" 430 depends on DRM && PCI 431 select FW_LOADER 432 help 433 Choose this option if you have a Matrox G200, G400 or G450 graphics 434 card. If M is selected, the module will be called mga. AGP 435 support is required for this driver to work. 436 437config DRM_SIS 438 tristate "SiS video cards" 439 depends on DRM && AGP 440 depends on FB_SIS || FB_SIS=n 441 help 442 Choose this option if you have a SiS 630 or compatible video 443 chipset. If M is selected the module will be called sis. AGP 444 support is required for this driver to work. 445 446config DRM_VIA 447 tristate "Via unichrome video cards" 448 depends on DRM && PCI 449 help 450 Choose this option if you have a Via unichrome or compatible video 451 chipset. If M is selected the module will be called via. 452 453config DRM_SAVAGE 454 tristate "Savage video cards" 455 depends on DRM && PCI 456 help 457 Choose this option if you have a Savage3D/4/SuperSavage/Pro/Twister 458 chipset. If M is selected the module will be called savage. 459 460endif # DRM_LEGACY 461 462# Separate option because drm_panel_orientation_quirks.c is shared with fbdev 463config DRM_PANEL_ORIENTATION_QUIRKS 464 tristate 465 466config DRM_LIB_RANDOM 467 bool 468 default n 469