Kconfig 13 KB

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