Kconfig 9.8 KB

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