Kconfig 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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_FBDEV_OVERALLOC
  91. int "Overallocation of the fbdev buffer"
  92. depends on DRM_FBDEV_EMULATION
  93. default 100
  94. help
  95. Defines the fbdev buffer overallocation in percent. Default
  96. is 100. Typical values for double buffering will be 200,
  97. triple buffering 300.
  98. config DRM_LOAD_EDID_FIRMWARE
  99. bool "Allow to specify an EDID data set instead of probing for it"
  100. depends on DRM_KMS_HELPER
  101. help
  102. Say Y here, if you want to use EDID data to be loaded from the
  103. /lib/firmware directory or one of the provided built-in
  104. data sets. This may be necessary, if the graphics adapter or
  105. monitor are unable to provide appropriate EDID data. Since this
  106. feature is provided as a workaround for broken hardware, the
  107. default case is N. Details and instructions how to build your own
  108. EDID data are given in Documentation/EDID/HOWTO.txt.
  109. config DRM_TTM
  110. tristate
  111. depends on DRM && MMU
  112. help
  113. GPU memory management subsystem for devices with multiple
  114. GPU memory types. Will be enabled automatically if a device driver
  115. uses it.
  116. config DRM_GEM_CMA_HELPER
  117. bool
  118. depends on DRM
  119. help
  120. Choose this if you need the GEM CMA helper functions
  121. config DRM_KMS_CMA_HELPER
  122. bool
  123. depends on DRM
  124. select DRM_GEM_CMA_HELPER
  125. select DRM_KMS_FB_HELPER
  126. select FB_SYS_FILLRECT
  127. select FB_SYS_COPYAREA
  128. select FB_SYS_IMAGEBLIT
  129. help
  130. Choose this if you need the KMS CMA helper functions
  131. config DRM_VM
  132. bool
  133. depends on DRM && MMU
  134. source "drivers/gpu/drm/i2c/Kconfig"
  135. source "drivers/gpu/drm/arm/Kconfig"
  136. config DRM_RADEON
  137. tristate "ATI Radeon"
  138. depends on DRM && PCI && MMU
  139. select FW_LOADER
  140. select DRM_KMS_HELPER
  141. select DRM_TTM
  142. select POWER_SUPPLY
  143. select HWMON
  144. select BACKLIGHT_CLASS_DEVICE
  145. select BACKLIGHT_LCD_SUPPORT
  146. select INTERVAL_TREE
  147. help
  148. Choose this option if you have an ATI Radeon graphics card. There
  149. are both PCI and AGP versions. You don't need to choose this to
  150. run the Radeon in plain VGA mode.
  151. If M is selected, the module will be called radeon.
  152. source "drivers/gpu/drm/radeon/Kconfig"
  153. config DRM_AMDGPU
  154. tristate "AMD GPU"
  155. depends on DRM && PCI && MMU
  156. select FW_LOADER
  157. select DRM_KMS_HELPER
  158. select DRM_TTM
  159. select POWER_SUPPLY
  160. select HWMON
  161. select BACKLIGHT_CLASS_DEVICE
  162. select BACKLIGHT_LCD_SUPPORT
  163. select INTERVAL_TREE
  164. help
  165. Choose this option if you have a recent AMD Radeon graphics card.
  166. If M is selected, the module will be called amdgpu.
  167. source "drivers/gpu/drm/amd/amdgpu/Kconfig"
  168. source "drivers/gpu/drm/nouveau/Kconfig"
  169. source "drivers/gpu/drm/i915/Kconfig"
  170. config DRM_VGEM
  171. tristate "Virtual GEM provider"
  172. depends on DRM
  173. help
  174. Choose this option to get a virtual graphics memory manager,
  175. as used by Mesa's software renderer for enhanced performance.
  176. If M is selected the module will be called vgem.
  177. source "drivers/gpu/drm/exynos/Kconfig"
  178. source "drivers/gpu/drm/rockchip/Kconfig"
  179. source "drivers/gpu/drm/vmwgfx/Kconfig"
  180. source "drivers/gpu/drm/gma500/Kconfig"
  181. source "drivers/gpu/drm/udl/Kconfig"
  182. source "drivers/gpu/drm/ast/Kconfig"
  183. source "drivers/gpu/drm/mgag200/Kconfig"
  184. source "drivers/gpu/drm/cirrus/Kconfig"
  185. source "drivers/gpu/drm/armada/Kconfig"
  186. source "drivers/gpu/drm/atmel-hlcdc/Kconfig"
  187. source "drivers/gpu/drm/rcar-du/Kconfig"
  188. source "drivers/gpu/drm/shmobile/Kconfig"
  189. source "drivers/gpu/drm/sun4i/Kconfig"
  190. source "drivers/gpu/drm/omapdrm/Kconfig"
  191. source "drivers/gpu/drm/tilcdc/Kconfig"
  192. source "drivers/gpu/drm/qxl/Kconfig"
  193. source "drivers/gpu/drm/bochs/Kconfig"
  194. source "drivers/gpu/drm/virtio/Kconfig"
  195. source "drivers/gpu/drm/msm/Kconfig"
  196. source "drivers/gpu/drm/fsl-dcu/Kconfig"
  197. source "drivers/gpu/drm/tegra/Kconfig"
  198. source "drivers/gpu/drm/stm/Kconfig"
  199. source "drivers/gpu/drm/panel/Kconfig"
  200. source "drivers/gpu/drm/bridge/Kconfig"
  201. source "drivers/gpu/drm/sti/Kconfig"
  202. source "drivers/gpu/drm/amd/amdkfd/Kconfig"
  203. source "drivers/gpu/drm/imx/Kconfig"
  204. source "drivers/gpu/drm/vc4/Kconfig"
  205. source "drivers/gpu/drm/etnaviv/Kconfig"
  206. source "drivers/gpu/drm/arc/Kconfig"
  207. source "drivers/gpu/drm/hisilicon/Kconfig"
  208. source "drivers/gpu/drm/mediatek/Kconfig"
  209. source "drivers/gpu/drm/zte/Kconfig"
  210. source "drivers/gpu/drm/mxsfb/Kconfig"
  211. source "drivers/gpu/drm/meson/Kconfig"
  212. source "drivers/gpu/drm/tinydrm/Kconfig"
  213. source "drivers/gpu/drm/pl111/Kconfig"
  214. # Keep legacy drivers last
  215. menuconfig DRM_LEGACY
  216. bool "Enable legacy drivers (DANGEROUS)"
  217. depends on DRM && MMU
  218. select DRM_VM
  219. help
  220. Enable legacy DRI1 drivers. Those drivers expose unsafe and dangerous
  221. APIs to user-space, which can be used to circumvent access
  222. restrictions and other security measures. For backwards compatibility
  223. those drivers are still available, but their use is highly
  224. inadvisable and might harm your system.
  225. You are recommended to use the safe modeset-only drivers instead, and
  226. perform 3D emulation in user-space.
  227. Unless you have strong reasons to go rogue, say "N".
  228. if DRM_LEGACY
  229. config DRM_TDFX
  230. tristate "3dfx Banshee/Voodoo3+"
  231. depends on DRM && PCI
  232. help
  233. Choose this option if you have a 3dfx Banshee or Voodoo3 (or later),
  234. graphics card. If M is selected, the module will be called tdfx.
  235. config DRM_R128
  236. tristate "ATI Rage 128"
  237. depends on DRM && PCI
  238. select FW_LOADER
  239. help
  240. Choose this option if you have an ATI Rage 128 graphics card. If M
  241. is selected, the module will be called r128. AGP support for
  242. this card is strongly suggested (unless you have a PCI version).
  243. config DRM_I810
  244. tristate "Intel I810"
  245. # !PREEMPT because of missing ioctl locking
  246. depends on DRM && AGP && AGP_INTEL && (!PREEMPT || BROKEN)
  247. help
  248. Choose this option if you have an Intel I810 graphics card. If M is
  249. selected, the module will be called i810. AGP support is required
  250. for this driver to work.
  251. config DRM_MGA
  252. tristate "Matrox g200/g400"
  253. depends on DRM && PCI
  254. select FW_LOADER
  255. help
  256. Choose this option if you have a Matrox G200, G400 or G450 graphics
  257. card. If M is selected, the module will be called mga. AGP
  258. support is required for this driver to work.
  259. config DRM_SIS
  260. tristate "SiS video cards"
  261. depends on DRM && AGP
  262. depends on FB_SIS || FB_SIS=n
  263. help
  264. Choose this option if you have a SiS 630 or compatible video
  265. chipset. If M is selected the module will be called sis. AGP
  266. support is required for this driver to work.
  267. config DRM_VIA
  268. tristate "Via unichrome video cards"
  269. depends on DRM && PCI
  270. help
  271. Choose this option if you have a Via unichrome or compatible video
  272. chipset. If M is selected the module will be called via.
  273. config DRM_SAVAGE
  274. tristate "Savage video cards"
  275. depends on DRM && PCI
  276. help
  277. Choose this option if you have a Savage3D/4/SuperSavage/Pro/Twister
  278. chipset. If M is selected the module will be called savage.
  279. endif # DRM_LEGACY
  280. config DRM_LIB_RANDOM
  281. bool
  282. default n