Kconfig 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  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. # Separate option because drm_panel_orientation_quirks.c is shared with fbdev
  29. config DRM_PANEL_ORIENTATION_QUIRKS
  30. tristate
  31. config DRM_DP_AUX_CHARDEV
  32. bool "DRM DP AUX Interface"
  33. depends on DRM
  34. help
  35. Choose this option to enable a /dev/drm_dp_auxN node that allows to
  36. read and write values to arbitrary DPCD registers on the DP aux
  37. channel.
  38. config DRM_DEBUG_MM
  39. bool "Insert extra checks and debug info into the DRM range managers"
  40. default n
  41. depends on DRM=y
  42. depends on STACKTRACE_SUPPORT
  43. select STACKDEPOT
  44. help
  45. Enable allocation tracking of memory manager and leak detection on
  46. shutdown.
  47. Recommended for driver developers only.
  48. If in doubt, say "N".
  49. config DRM_DEBUG_MM_SELFTEST
  50. tristate "kselftests for DRM range manager (struct drm_mm)"
  51. depends on DRM
  52. depends on DEBUG_KERNEL
  53. select PRIME_NUMBERS
  54. select DRM_LIB_RANDOM
  55. default n
  56. help
  57. This option provides a kernel module that can be used to test
  58. the DRM range manager (drm_mm) and its API. This option is not
  59. useful for distributions or general kernels, but only for kernel
  60. developers working on DRM and associated drivers.
  61. If in doubt, say "N".
  62. config DRM_KMS_HELPER
  63. tristate
  64. depends on DRM
  65. help
  66. CRTC helpers for KMS drivers.
  67. config DRM_KMS_FB_HELPER
  68. bool
  69. depends on DRM_KMS_HELPER
  70. select FB
  71. select FRAMEBUFFER_CONSOLE if !EXPERT
  72. select FRAMEBUFFER_CONSOLE_DETECT_PRIMARY if FRAMEBUFFER_CONSOLE
  73. select FB_SYS_FOPS
  74. select FB_SYS_FILLRECT
  75. select FB_SYS_COPYAREA
  76. select FB_SYS_IMAGEBLIT
  77. select FB_CFB_FILLRECT
  78. select FB_CFB_COPYAREA
  79. select FB_CFB_IMAGEBLIT
  80. select FB_DEFERRED_IO
  81. help
  82. FBDEV helpers for KMS drivers.
  83. config DRM_FBDEV_EMULATION
  84. bool "Enable legacy fbdev support for your modesetting driver"
  85. depends on DRM
  86. select DRM_KMS_HELPER
  87. select DRM_KMS_FB_HELPER
  88. default y
  89. help
  90. Choose this option if you have a need for the legacy fbdev
  91. support. Note that this support also provides the linux console
  92. support on top of your modesetting driver.
  93. If in doubt, say "Y".
  94. config DRM_FBDEV_OVERALLOC
  95. int "Overallocation of the fbdev buffer"
  96. depends on DRM_FBDEV_EMULATION
  97. default 100
  98. help
  99. Defines the fbdev buffer overallocation in percent. Default
  100. is 100. Typical values for double buffering will be 200,
  101. triple buffering 300.
  102. config DRM_LOAD_EDID_FIRMWARE
  103. bool "Allow to specify an EDID data set instead of probing for it"
  104. depends on DRM
  105. help
  106. Say Y here, if you want to use EDID data to be loaded from the
  107. /lib/firmware directory or one of the provided built-in
  108. data sets. This may be necessary, if the graphics adapter or
  109. monitor are unable to provide appropriate EDID data. Since this
  110. feature is provided as a workaround for broken hardware, the
  111. default case is N. Details and instructions how to build your own
  112. EDID data are given in Documentation/EDID/HOWTO.txt.
  113. config DRM_TTM
  114. tristate
  115. depends on DRM && MMU
  116. help
  117. GPU memory management subsystem for devices with multiple
  118. GPU memory types. Will be enabled automatically if a device driver
  119. uses it.
  120. config DRM_GEM_CMA_HELPER
  121. bool
  122. depends on DRM
  123. help
  124. Choose this if you need the GEM CMA helper functions
  125. config DRM_KMS_CMA_HELPER
  126. bool
  127. depends on DRM
  128. select DRM_GEM_CMA_HELPER
  129. select DRM_KMS_FB_HELPER
  130. select FB_SYS_FILLRECT
  131. select FB_SYS_COPYAREA
  132. select FB_SYS_IMAGEBLIT
  133. help
  134. Choose this if you need the KMS CMA helper functions
  135. config DRM_VM
  136. bool
  137. depends on DRM && MMU
  138. config DRM_SCHED
  139. tristate
  140. depends on DRM
  141. source "drivers/gpu/drm/i2c/Kconfig"
  142. source "drivers/gpu/drm/arm/Kconfig"
  143. config DRM_RADEON
  144. tristate "ATI Radeon"
  145. depends on DRM && PCI && MMU
  146. select FW_LOADER
  147. select DRM_KMS_HELPER
  148. select DRM_TTM
  149. select POWER_SUPPLY
  150. select HWMON
  151. select BACKLIGHT_CLASS_DEVICE
  152. select BACKLIGHT_LCD_SUPPORT
  153. select INTERVAL_TREE
  154. help
  155. Choose this option if you have an ATI Radeon graphics card. There
  156. are both PCI and AGP versions. You don't need to choose this to
  157. run the Radeon in plain VGA mode.
  158. If M is selected, the module will be called radeon.
  159. source "drivers/gpu/drm/radeon/Kconfig"
  160. config DRM_AMDGPU
  161. tristate "AMD GPU"
  162. depends on DRM && PCI && MMU
  163. select FW_LOADER
  164. select DRM_KMS_HELPER
  165. select DRM_SCHED
  166. select DRM_TTM
  167. select POWER_SUPPLY
  168. select HWMON
  169. select BACKLIGHT_CLASS_DEVICE
  170. select BACKLIGHT_LCD_SUPPORT
  171. select INTERVAL_TREE
  172. select CHASH
  173. help
  174. Choose this option if you have a recent AMD Radeon graphics card.
  175. If M is selected, the module will be called amdgpu.
  176. source "drivers/gpu/drm/amd/amdgpu/Kconfig"
  177. source "drivers/gpu/drm/amd/lib/Kconfig"
  178. source "drivers/gpu/drm/nouveau/Kconfig"
  179. source "drivers/gpu/drm/i915/Kconfig"
  180. config DRM_VGEM
  181. tristate "Virtual GEM provider"
  182. depends on DRM
  183. help
  184. Choose this option to get a virtual graphics memory manager,
  185. as used by Mesa's software renderer for enhanced performance.
  186. If M is selected the module will be called vgem.
  187. source "drivers/gpu/drm/exynos/Kconfig"
  188. source "drivers/gpu/drm/rockchip/Kconfig"
  189. source "drivers/gpu/drm/vmwgfx/Kconfig"
  190. source "drivers/gpu/drm/gma500/Kconfig"
  191. source "drivers/gpu/drm/udl/Kconfig"
  192. source "drivers/gpu/drm/ast/Kconfig"
  193. source "drivers/gpu/drm/mgag200/Kconfig"
  194. source "drivers/gpu/drm/cirrus/Kconfig"
  195. source "drivers/gpu/drm/armada/Kconfig"
  196. source "drivers/gpu/drm/atmel-hlcdc/Kconfig"
  197. source "drivers/gpu/drm/rcar-du/Kconfig"
  198. source "drivers/gpu/drm/shmobile/Kconfig"
  199. source "drivers/gpu/drm/sun4i/Kconfig"
  200. source "drivers/gpu/drm/omapdrm/Kconfig"
  201. source "drivers/gpu/drm/tilcdc/Kconfig"
  202. source "drivers/gpu/drm/qxl/Kconfig"
  203. source "drivers/gpu/drm/bochs/Kconfig"
  204. source "drivers/gpu/drm/virtio/Kconfig"
  205. source "drivers/gpu/drm/msm/Kconfig"
  206. source "drivers/gpu/drm/fsl-dcu/Kconfig"
  207. source "drivers/gpu/drm/tegra/Kconfig"
  208. source "drivers/gpu/drm/stm/Kconfig"
  209. source "drivers/gpu/drm/panel/Kconfig"
  210. source "drivers/gpu/drm/bridge/Kconfig"
  211. source "drivers/gpu/drm/sti/Kconfig"
  212. source "drivers/gpu/drm/amd/amdkfd/Kconfig"
  213. source "drivers/gpu/drm/imx/Kconfig"
  214. source "drivers/gpu/drm/vc4/Kconfig"
  215. source "drivers/gpu/drm/etnaviv/Kconfig"
  216. source "drivers/gpu/drm/arc/Kconfig"
  217. source "drivers/gpu/drm/hisilicon/Kconfig"
  218. source "drivers/gpu/drm/mediatek/Kconfig"
  219. source "drivers/gpu/drm/zte/Kconfig"
  220. source "drivers/gpu/drm/mxsfb/Kconfig"
  221. source "drivers/gpu/drm/meson/Kconfig"
  222. source "drivers/gpu/drm/tinydrm/Kconfig"
  223. source "drivers/gpu/drm/pl111/Kconfig"
  224. source "drivers/gpu/drm/tve200/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. config DRM_LIB_RANDOM
  292. bool
  293. default n