Kconfig 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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. #
  7. menuconfig DRM
  8. tristate "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)"
  9. depends on (AGP || AGP=n) && !EMULATED_CMPXCHG && HAS_DMA
  10. select HDMI
  11. select FB_CMDLINE
  12. select I2C
  13. select I2C_ALGOBIT
  14. select DMA_SHARED_BUFFER
  15. select SYNC_FILE
  16. help
  17. Kernel-level support for the Direct Rendering Infrastructure (DRI)
  18. introduced in XFree86 4.0. If you say Y here, you need to select
  19. the module that's right for your graphics card from the list below.
  20. These modules provide support for synchronization, security, and
  21. DMA transfers. Please see <http://dri.sourceforge.net/> for more
  22. details. You should also select and configure AGP
  23. (/dev/agpgart) support if it is available for your platform.
  24. config DRM_MIPI_DSI
  25. bool
  26. depends on DRM
  27. config DRM_DP_AUX_CHARDEV
  28. bool "DRM DP AUX Interface"
  29. depends on DRM
  30. help
  31. Choose this option to enable a /dev/drm_dp_auxN node that allows to
  32. read and write values to arbitrary DPCD registers on the DP aux
  33. channel.
  34. config DRM_DEBUG_MM
  35. bool "Insert extra checks and debug info into the DRM range managers"
  36. default n
  37. depends on DRM=y
  38. depends on STACKTRACE_SUPPORT
  39. select STACKDEPOT
  40. help
  41. Enable allocation tracking of memory manager and leak detection on
  42. shutdown.
  43. Recommended for driver developers only.
  44. If in doubt, say "N".
  45. config DRM_DEBUG_MM_SELFTEST
  46. tristate "kselftests for DRM range manager (struct drm_mm)"
  47. depends on DRM
  48. depends on DEBUG_KERNEL
  49. select PRIME_NUMBERS
  50. select DRM_LIB_RANDOM
  51. default n
  52. help
  53. This option provides a kernel module that can be used to test
  54. the DRM range manager (drm_mm) and its API. This option is not
  55. useful for distributions or general kernels, but only for kernel
  56. developers working on DRM and associated drivers.
  57. If in doubt, say "N".
  58. config DRM_KMS_HELPER
  59. tristate
  60. depends on DRM
  61. help
  62. CRTC helpers for KMS drivers.
  63. config DRM_KMS_FB_HELPER
  64. bool
  65. depends on DRM_KMS_HELPER
  66. select FB
  67. select FRAMEBUFFER_CONSOLE if !EXPERT
  68. select FRAMEBUFFER_CONSOLE_DETECT_PRIMARY if FRAMEBUFFER_CONSOLE
  69. select FB_SYS_FOPS
  70. select FB_SYS_FILLRECT
  71. select FB_SYS_COPYAREA
  72. select FB_SYS_IMAGEBLIT
  73. select FB_CFB_FILLRECT
  74. select FB_CFB_COPYAREA
  75. select FB_CFB_IMAGEBLIT
  76. select FB_DEFERRED_IO
  77. help
  78. FBDEV helpers for KMS drivers.
  79. config DRM_FBDEV_EMULATION
  80. bool "Enable legacy fbdev support for your modesetting driver"
  81. depends on DRM
  82. select DRM_KMS_HELPER
  83. select DRM_KMS_FB_HELPER
  84. default y
  85. help
  86. Choose this option if you have a need for the legacy fbdev
  87. support. Note that this support also provides the linux console
  88. support on top of your modesetting driver.
  89. If in doubt, say "Y".
  90. config DRM_LOAD_EDID_FIRMWARE
  91. bool "Allow to specify an EDID data set instead of probing for it"
  92. depends on DRM_KMS_HELPER
  93. help
  94. Say Y here, if you want to use EDID data to be loaded from the
  95. /lib/firmware directory or one of the provided built-in
  96. data sets. This may be necessary, if the graphics adapter or
  97. monitor are unable to provide appropriate EDID data. Since this
  98. feature is provided as a workaround for broken hardware, the
  99. default case is N. Details and instructions how to build your own
  100. EDID data are given in Documentation/EDID/HOWTO.txt.
  101. config DRM_TTM
  102. tristate
  103. depends on DRM && MMU
  104. help
  105. GPU memory management subsystem for devices with multiple
  106. GPU memory types. Will be enabled automatically if a device driver
  107. uses it.
  108. config DRM_GEM_CMA_HELPER
  109. bool
  110. depends on DRM
  111. help
  112. Choose this if you need the GEM CMA helper functions
  113. config DRM_KMS_CMA_HELPER
  114. bool
  115. depends on DRM
  116. select DRM_GEM_CMA_HELPER
  117. select DRM_KMS_FB_HELPER
  118. select FB_SYS_FILLRECT
  119. select FB_SYS_COPYAREA
  120. select FB_SYS_IMAGEBLIT
  121. help
  122. Choose this if you need the KMS CMA helper functions
  123. config DRM_VM
  124. bool
  125. depends on DRM && MMU
  126. source "drivers/gpu/drm/i2c/Kconfig"
  127. source "drivers/gpu/drm/arm/Kconfig"
  128. config DRM_RADEON
  129. tristate "ATI Radeon"
  130. depends on DRM && PCI && MMU
  131. select FW_LOADER
  132. select DRM_KMS_HELPER
  133. select DRM_TTM
  134. select POWER_SUPPLY
  135. select HWMON
  136. select BACKLIGHT_CLASS_DEVICE
  137. select BACKLIGHT_LCD_SUPPORT
  138. select INTERVAL_TREE
  139. help
  140. Choose this option if you have an ATI Radeon graphics card. There
  141. are both PCI and AGP versions. You don't need to choose this to
  142. run the Radeon in plain VGA mode.
  143. If M is selected, the module will be called radeon.
  144. source "drivers/gpu/drm/radeon/Kconfig"
  145. config DRM_AMDGPU
  146. tristate "AMD GPU"
  147. depends on DRM && PCI && MMU
  148. select FW_LOADER
  149. select DRM_KMS_HELPER
  150. select DRM_TTM
  151. select POWER_SUPPLY
  152. select HWMON
  153. select BACKLIGHT_CLASS_DEVICE
  154. select BACKLIGHT_LCD_SUPPORT
  155. select INTERVAL_TREE
  156. help
  157. Choose this option if you have a recent AMD Radeon graphics card.
  158. If M is selected, the module will be called amdgpu.
  159. source "drivers/gpu/drm/amd/amdgpu/Kconfig"
  160. source "drivers/gpu/drm/nouveau/Kconfig"
  161. source "drivers/gpu/drm/i915/Kconfig"
  162. config DRM_VGEM
  163. tristate "Virtual GEM provider"
  164. depends on DRM
  165. help
  166. Choose this option to get a virtual graphics memory manager,
  167. as used by Mesa's software renderer for enhanced performance.
  168. If M is selected the module will be called vgem.
  169. source "drivers/gpu/drm/exynos/Kconfig"
  170. source "drivers/gpu/drm/rockchip/Kconfig"
  171. source "drivers/gpu/drm/vmwgfx/Kconfig"
  172. source "drivers/gpu/drm/gma500/Kconfig"
  173. source "drivers/gpu/drm/udl/Kconfig"
  174. source "drivers/gpu/drm/ast/Kconfig"
  175. source "drivers/gpu/drm/mgag200/Kconfig"
  176. source "drivers/gpu/drm/cirrus/Kconfig"
  177. source "drivers/gpu/drm/armada/Kconfig"
  178. source "drivers/gpu/drm/atmel-hlcdc/Kconfig"
  179. source "drivers/gpu/drm/rcar-du/Kconfig"
  180. source "drivers/gpu/drm/shmobile/Kconfig"
  181. source "drivers/gpu/drm/sun4i/Kconfig"
  182. source "drivers/gpu/drm/omapdrm/Kconfig"
  183. source "drivers/gpu/drm/tilcdc/Kconfig"
  184. source "drivers/gpu/drm/qxl/Kconfig"
  185. source "drivers/gpu/drm/bochs/Kconfig"
  186. source "drivers/gpu/drm/virtio/Kconfig"
  187. source "drivers/gpu/drm/msm/Kconfig"
  188. source "drivers/gpu/drm/fsl-dcu/Kconfig"
  189. source "drivers/gpu/drm/tegra/Kconfig"
  190. source "drivers/gpu/drm/panel/Kconfig"
  191. source "drivers/gpu/drm/bridge/Kconfig"
  192. source "drivers/gpu/drm/sti/Kconfig"
  193. source "drivers/gpu/drm/amd/amdkfd/Kconfig"
  194. source "drivers/gpu/drm/imx/Kconfig"
  195. source "drivers/gpu/drm/vc4/Kconfig"
  196. source "drivers/gpu/drm/etnaviv/Kconfig"
  197. source "drivers/gpu/drm/arc/Kconfig"
  198. source "drivers/gpu/drm/hisilicon/Kconfig"
  199. source "drivers/gpu/drm/mediatek/Kconfig"
  200. source "drivers/gpu/drm/zte/Kconfig"
  201. source "drivers/gpu/drm/mxsfb/Kconfig"
  202. source "drivers/gpu/drm/meson/Kconfig"
  203. # Keep legacy drivers last
  204. menuconfig DRM_LEGACY
  205. bool "Enable legacy drivers (DANGEROUS)"
  206. depends on DRM && MMU
  207. select DRM_VM
  208. help
  209. Enable legacy DRI1 drivers. Those drivers expose unsafe and dangerous
  210. APIs to user-space, which can be used to circumvent access
  211. restrictions and other security measures. For backwards compatibility
  212. those drivers are still available, but their use is highly
  213. inadvisable and might harm your system.
  214. You are recommended to use the safe modeset-only drivers instead, and
  215. perform 3D emulation in user-space.
  216. Unless you have strong reasons to go rogue, say "N".
  217. if DRM_LEGACY
  218. config DRM_TDFX
  219. tristate "3dfx Banshee/Voodoo3+"
  220. depends on DRM && PCI
  221. help
  222. Choose this option if you have a 3dfx Banshee or Voodoo3 (or later),
  223. graphics card. If M is selected, the module will be called tdfx.
  224. config DRM_R128
  225. tristate "ATI Rage 128"
  226. depends on DRM && PCI
  227. select FW_LOADER
  228. help
  229. Choose this option if you have an ATI Rage 128 graphics card. If M
  230. is selected, the module will be called r128. AGP support for
  231. this card is strongly suggested (unless you have a PCI version).
  232. config DRM_I810
  233. tristate "Intel I810"
  234. # !PREEMPT because of missing ioctl locking
  235. depends on DRM && AGP && AGP_INTEL && (!PREEMPT || BROKEN)
  236. help
  237. Choose this option if you have an Intel I810 graphics card. If M is
  238. selected, the module will be called i810. AGP support is required
  239. for this driver to work.
  240. config DRM_MGA
  241. tristate "Matrox g200/g400"
  242. depends on DRM && PCI
  243. select FW_LOADER
  244. help
  245. Choose this option if you have a Matrox G200, G400 or G450 graphics
  246. card. If M is selected, the module will be called mga. AGP
  247. support is required for this driver to work.
  248. config DRM_SIS
  249. tristate "SiS video cards"
  250. depends on DRM && AGP
  251. depends on FB_SIS || FB_SIS=n
  252. help
  253. Choose this option if you have a SiS 630 or compatible video
  254. chipset. If M is selected the module will be called sis. AGP
  255. support is required for this driver to work.
  256. config DRM_VIA
  257. tristate "Via unichrome video cards"
  258. depends on DRM && PCI
  259. help
  260. Choose this option if you have a Via unichrome or compatible video
  261. chipset. If M is selected the module will be called via.
  262. config DRM_SAVAGE
  263. tristate "Savage video cards"
  264. depends on DRM && PCI
  265. help
  266. Choose this option if you have a Savage3D/4/SuperSavage/Pro/Twister
  267. chipset. If M is selected the module will be called savage.
  268. endif # DRM_LEGACY
  269. config DRM_LIB_RANDOM
  270. bool
  271. default n