forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # Drm device configuration
34 #
....@@ -8,12 +9,15 @@
89 tristate "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)"
910 depends on (AGP || AGP=n) && !EMULATED_CMPXCHG && HAS_DMA
1011 select DRM_PANEL_ORIENTATION_QUIRKS
11
- select HDMI
12
+ select HDMI if !ROCKCHIP_MINI_KERNEL
1213 select FB_CMDLINE
1314 select I2C
14
- select I2C_ALGOBIT
15
+ select I2C_ALGOBIT if !ROCKCHIP_MINI_KERNEL
1516 select DMA_SHARED_BUFFER
1617 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
1721 help
1822 Kernel-level support for the Direct Rendering Infrastructure (DRI)
1923 introduced in XFree86 4.0. If you say Y here, you need to select
....@@ -23,27 +27,35 @@
2327 details. You should also select and configure AGP
2428 (/dev/agpgart) support if it is available for your platform.
2529
26
-config DRM_DP
27
- bool "DRM DisplayPort support"
28
- depends on DRM_KMS_HELPER
29
- default y if !ARCH_ROCKCHIP || DRM_ANALOGIX_DP
30
- help
31
- Choose this option to support DP interface.
30
+config DRM_MIPI_DBI
31
+ tristate
32
+ depends on DRM
33
+ select DRM_KMS_HELPER
3234
3335 config DRM_EDID
3436 bool "EDID function for DRM"
3537 depends on DRM
36
- default y if !CPU_RV1126
38
+ select HDMI
39
+ default y if !ROCKCHIP_MINI_KERNEL
3740 help
3841 DRM EDID read and parse function.
3942
4043 config DRM_IGNORE_IOTCL_PERMIT
4144 bool "Ignore drm ioctl permission"
42
- depends on DRM && ANDROID
45
+ depends on DRM && ANDROID && NO_GKI
4346
4447 config DRM_MIPI_DSI
4548 bool
4649 depends on DRM
50
+
51
+config DRM_DP
52
+ bool "DRM DisplayPort support"
53
+ depends on DRM
54
+ depends on DRM_KMS_HELPER
55
+ default y if DRM_ANALOGIX_DP
56
+ default y if !ROCKCHIP_MINI_KERNEL
57
+ help
58
+ Choose this option to support DP interface.
4759
4860 config DRM_DP_AUX_CHARDEV
4961 bool "DRM DP AUX Interface"
....@@ -74,6 +86,7 @@
7486 select PRIME_NUMBERS
7587 select DRM_LIB_RANDOM
7688 select DRM_KMS_HELPER
89
+ select DRM_EXPORT_FOR_TESTS if m
7790 default n
7891 help
7992 This option provides kernel modules that can be used to run
....@@ -105,6 +118,21 @@
105118 select FB_DEFERRED_IO
106119 help
107120 FBDEV helpers for KMS drivers.
121
+
122
+config DRM_DEBUG_DP_MST_TOPOLOGY_REFS
123
+ bool "Enable refcount backtrace history in the DP MST helpers"
124
+ depends on STACKTRACE_SUPPORT
125
+ select STACKDEPOT
126
+ depends on DRM_KMS_HELPER
127
+ depends on DEBUG_KERNEL
128
+ depends on EXPERT
129
+ help
130
+ Enables debug tracing for topology refs in DRM's DP MST helpers. A
131
+ history of each topology reference/dereference will be printed to the
132
+ kernel log once a port or branch device's topology refcount reaches 0.
133
+
134
+ This has the potential to use a lot of memory and print some very
135
+ large kernel messages. If in doubt, say "N".
108136
109137 config DRM_FBDEV_EMULATION
110138 bool "Enable legacy fbdev support for your modesetting driver"
....@@ -158,10 +186,11 @@
158186 monitor are unable to provide appropriate EDID data. Since this
159187 feature is provided as a workaround for broken hardware, the
160188 default case is N. Details and instructions how to build your own
161
- EDID data are given in Documentation/EDID/HOWTO.txt.
189
+ EDID data are given in Documentation/admin-guide/edid.rst.
162190
163191 config DRM_DP_CEC
164192 bool "Enable DisplayPort CEC-Tunneling-over-AUX HDMI support"
193
+ depends on DRM
165194 select CEC_CORE
166195 help
167196 Choose this option if you want to enable HDMI CEC support for
....@@ -178,6 +207,26 @@
178207 GPU memory types. Will be enabled automatically if a device driver
179208 uses it.
180209
210
+config DRM_TTM_DMA_PAGE_POOL
211
+ bool
212
+ depends on DRM_TTM && (SWIOTLB || INTEL_IOMMU)
213
+ default y
214
+ help
215
+ Choose this if you need the TTM dma page pool
216
+
217
+config DRM_VRAM_HELPER
218
+ tristate
219
+ depends on DRM
220
+ help
221
+ Helpers for VRAM memory management
222
+
223
+config DRM_TTM_HELPER
224
+ tristate
225
+ depends on DRM
226
+ select DRM_TTM
227
+ help
228
+ Helpers for ttm-based gem objects
229
+
181230 config DRM_GEM_CMA_HELPER
182231 bool
183232 depends on DRM
....@@ -188,12 +237,14 @@
188237 bool
189238 depends on DRM
190239 select DRM_GEM_CMA_HELPER
191
- select DRM_KMS_FB_HELPER
192
- select FB_SYS_FILLRECT
193
- select FB_SYS_COPYAREA
194
- select FB_SYS_IMAGEBLIT
195240 help
196241 Choose this if you need the KMS CMA helper functions
242
+
243
+config DRM_GEM_SHMEM_HELPER
244
+ bool
245
+ depends on DRM
246
+ help
247
+ Choose this if you need the GEM shmem helper functions
197248
198249 config DRM_VM
199250 bool
....@@ -217,7 +268,6 @@
217268 select POWER_SUPPLY
218269 select HWMON
219270 select BACKLIGHT_CLASS_DEVICE
220
- select BACKLIGHT_LCD_SUPPORT
221271 select INTERVAL_TREE
222272 help
223273 Choose this option if you have an ATI Radeon graphics card. There
....@@ -232,13 +282,12 @@
232282 tristate "AMD GPU"
233283 depends on DRM && PCI && MMU
234284 select FW_LOADER
235
- select DRM_KMS_HELPER
285
+ select DRM_KMS_HELPER
236286 select DRM_SCHED
237
- select DRM_TTM
287
+ select DRM_TTM
238288 select POWER_SUPPLY
239289 select HWMON
240290 select BACKLIGHT_CLASS_DEVICE
241
- select BACKLIGHT_LCD_SUPPORT
242291 select INTERVAL_TREE
243292 select CHASH
244293 help
....@@ -247,8 +296,6 @@
247296 If M is selected, the module will be called amdgpu.
248297
249298 source "drivers/gpu/drm/amd/amdgpu/Kconfig"
250
-
251
-source "drivers/gpu/drm/amd/lib/Kconfig"
252299
253300 source "drivers/gpu/drm/nouveau/Kconfig"
254301
....@@ -266,6 +313,7 @@
266313 tristate "Virtual KMS (EXPERIMENTAL)"
267314 depends on DRM
268315 select DRM_KMS_HELPER
316
+ select CRC32
269317 default n
270318 help
271319 Virtual Kernel Mode-Setting (VKMS) is used for testing or for
....@@ -287,8 +335,6 @@
287335 source "drivers/gpu/drm/ast/Kconfig"
288336
289337 source "drivers/gpu/drm/mgag200/Kconfig"
290
-
291
-source "drivers/gpu/drm/cirrus/Kconfig"
292338
293339 source "drivers/gpu/drm/armada/Kconfig"
294340
....@@ -324,9 +370,9 @@
324370
325371 source "drivers/gpu/drm/sti/Kconfig"
326372
327
-source "drivers/gpu/drm/amd/amdkfd/Kconfig"
328
-
329373 source "drivers/gpu/drm/imx/Kconfig"
374
+
375
+source "drivers/gpu/drm/ingenic/Kconfig"
330376
331377 source "drivers/gpu/drm/v3d/Kconfig"
332378
....@@ -346,13 +392,27 @@
346392
347393 source "drivers/gpu/drm/meson/Kconfig"
348394
349
-source "drivers/gpu/drm/tinydrm/Kconfig"
395
+source "drivers/gpu/drm/tiny/Kconfig"
350396
351397 source "drivers/gpu/drm/pl111/Kconfig"
352398
353399 source "drivers/gpu/drm/tve200/Kconfig"
354400
355401 source "drivers/gpu/drm/xen/Kconfig"
402
+
403
+source "drivers/gpu/drm/vboxvideo/Kconfig"
404
+
405
+source "drivers/gpu/drm/lima/Kconfig"
406
+
407
+source "drivers/gpu/drm/panfrost/Kconfig"
408
+
409
+source "drivers/gpu/drm/aspeed/Kconfig"
410
+
411
+source "drivers/gpu/drm/mcde/Kconfig"
412
+
413
+source "drivers/gpu/drm/tidss/Kconfig"
414
+
415
+source "drivers/gpu/drm/xlnx/Kconfig"
356416
357417 # Keep legacy drivers last
358418
....@@ -392,8 +452,8 @@
392452
393453 config DRM_I810
394454 tristate "Intel I810"
395
- # !PREEMPT because of missing ioctl locking
396
- depends on DRM && AGP && AGP_INTEL && (!PREEMPT || BROKEN)
455
+ # !PREEMPTION because of missing ioctl locking
456
+ depends on DRM && AGP && AGP_INTEL && (!PREEMPTION || BROKEN)
397457 help
398458 Choose this option if you have an Intel I810 graphics card. If M is
399459 selected, the module will be called i810. AGP support is required
....@@ -433,6 +493,9 @@
433493
434494 endif # DRM_LEGACY
435495
496
+config DRM_EXPORT_FOR_TESTS
497
+ bool
498
+
436499 # Separate option because drm_panel_orientation_quirks.c is shared with fbdev
437500 config DRM_PANEL_ORIENTATION_QUIRKS
438501 tristate