From 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 13 May 2024 10:30:14 +0000 Subject: [PATCH] modify sin led gpio --- kernel/drivers/gpu/drm/Kconfig | 119 +++++++++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 91 insertions(+), 28 deletions(-) diff --git a/kernel/drivers/gpu/drm/Kconfig b/kernel/drivers/gpu/drm/Kconfig index 2777e43..df2a2b0 100644 --- a/kernel/drivers/gpu/drm/Kconfig +++ b/kernel/drivers/gpu/drm/Kconfig @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only # # Drm device configuration # @@ -8,12 +9,15 @@ tristate "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)" depends on (AGP || AGP=n) && !EMULATED_CMPXCHG && HAS_DMA select DRM_PANEL_ORIENTATION_QUIRKS - select HDMI + select HDMI if !ROCKCHIP_MINI_KERNEL select FB_CMDLINE select I2C - select I2C_ALGOBIT + select I2C_ALGOBIT if !ROCKCHIP_MINI_KERNEL select DMA_SHARED_BUFFER select SYNC_FILE +# gallium uses SYS_kcmp for os_same_file_description() to de-duplicate +# device and dmabuf fd. Let's make sure that is available for our userspace. + select KCMP help Kernel-level support for the Direct Rendering Infrastructure (DRI) introduced in XFree86 4.0. If you say Y here, you need to select @@ -23,27 +27,35 @@ details. You should also select and configure AGP (/dev/agpgart) support if it is available for your platform. -config DRM_DP - bool "DRM DisplayPort support" - depends on DRM_KMS_HELPER - default y if !ARCH_ROCKCHIP || DRM_ANALOGIX_DP - help - Choose this option to support DP interface. +config DRM_MIPI_DBI + tristate + depends on DRM + select DRM_KMS_HELPER config DRM_EDID bool "EDID function for DRM" depends on DRM - default y if !CPU_RV1126 + select HDMI + default y if !ROCKCHIP_MINI_KERNEL help DRM EDID read and parse function. config DRM_IGNORE_IOTCL_PERMIT bool "Ignore drm ioctl permission" - depends on DRM && ANDROID + depends on DRM && ANDROID && NO_GKI config DRM_MIPI_DSI bool depends on DRM + +config DRM_DP + bool "DRM DisplayPort support" + depends on DRM + depends on DRM_KMS_HELPER + default y if DRM_ANALOGIX_DP + default y if !ROCKCHIP_MINI_KERNEL + help + Choose this option to support DP interface. config DRM_DP_AUX_CHARDEV bool "DRM DP AUX Interface" @@ -74,6 +86,7 @@ select PRIME_NUMBERS select DRM_LIB_RANDOM select DRM_KMS_HELPER + select DRM_EXPORT_FOR_TESTS if m default n help This option provides kernel modules that can be used to run @@ -105,6 +118,21 @@ select FB_DEFERRED_IO help FBDEV helpers for KMS drivers. + +config DRM_DEBUG_DP_MST_TOPOLOGY_REFS + bool "Enable refcount backtrace history in the DP MST helpers" + depends on STACKTRACE_SUPPORT + select STACKDEPOT + depends on DRM_KMS_HELPER + depends on DEBUG_KERNEL + depends on EXPERT + help + Enables debug tracing for topology refs in DRM's DP MST helpers. A + history of each topology reference/dereference will be printed to the + kernel log once a port or branch device's topology refcount reaches 0. + + This has the potential to use a lot of memory and print some very + large kernel messages. If in doubt, say "N". config DRM_FBDEV_EMULATION bool "Enable legacy fbdev support for your modesetting driver" @@ -158,10 +186,11 @@ monitor are unable to provide appropriate EDID data. Since this feature is provided as a workaround for broken hardware, the default case is N. Details and instructions how to build your own - EDID data are given in Documentation/EDID/HOWTO.txt. + EDID data are given in Documentation/admin-guide/edid.rst. config DRM_DP_CEC bool "Enable DisplayPort CEC-Tunneling-over-AUX HDMI support" + depends on DRM select CEC_CORE help Choose this option if you want to enable HDMI CEC support for @@ -178,6 +207,26 @@ GPU memory types. Will be enabled automatically if a device driver uses it. +config DRM_TTM_DMA_PAGE_POOL + bool + depends on DRM_TTM && (SWIOTLB || INTEL_IOMMU) + default y + help + Choose this if you need the TTM dma page pool + +config DRM_VRAM_HELPER + tristate + depends on DRM + help + Helpers for VRAM memory management + +config DRM_TTM_HELPER + tristate + depends on DRM + select DRM_TTM + help + Helpers for ttm-based gem objects + config DRM_GEM_CMA_HELPER bool depends on DRM @@ -188,12 +237,14 @@ bool depends on DRM select DRM_GEM_CMA_HELPER - select DRM_KMS_FB_HELPER - select FB_SYS_FILLRECT - select FB_SYS_COPYAREA - select FB_SYS_IMAGEBLIT help Choose this if you need the KMS CMA helper functions + +config DRM_GEM_SHMEM_HELPER + bool + depends on DRM + help + Choose this if you need the GEM shmem helper functions config DRM_VM bool @@ -217,7 +268,6 @@ select POWER_SUPPLY select HWMON select BACKLIGHT_CLASS_DEVICE - select BACKLIGHT_LCD_SUPPORT select INTERVAL_TREE help Choose this option if you have an ATI Radeon graphics card. There @@ -232,13 +282,12 @@ tristate "AMD GPU" depends on DRM && PCI && MMU select FW_LOADER - select DRM_KMS_HELPER + select DRM_KMS_HELPER select DRM_SCHED - select DRM_TTM + select DRM_TTM select POWER_SUPPLY select HWMON select BACKLIGHT_CLASS_DEVICE - select BACKLIGHT_LCD_SUPPORT select INTERVAL_TREE select CHASH help @@ -247,8 +296,6 @@ If M is selected, the module will be called amdgpu. source "drivers/gpu/drm/amd/amdgpu/Kconfig" - -source "drivers/gpu/drm/amd/lib/Kconfig" source "drivers/gpu/drm/nouveau/Kconfig" @@ -266,6 +313,7 @@ tristate "Virtual KMS (EXPERIMENTAL)" depends on DRM select DRM_KMS_HELPER + select CRC32 default n help Virtual Kernel Mode-Setting (VKMS) is used for testing or for @@ -287,8 +335,6 @@ source "drivers/gpu/drm/ast/Kconfig" source "drivers/gpu/drm/mgag200/Kconfig" - -source "drivers/gpu/drm/cirrus/Kconfig" source "drivers/gpu/drm/armada/Kconfig" @@ -324,9 +370,9 @@ source "drivers/gpu/drm/sti/Kconfig" -source "drivers/gpu/drm/amd/amdkfd/Kconfig" - source "drivers/gpu/drm/imx/Kconfig" + +source "drivers/gpu/drm/ingenic/Kconfig" source "drivers/gpu/drm/v3d/Kconfig" @@ -346,13 +392,27 @@ source "drivers/gpu/drm/meson/Kconfig" -source "drivers/gpu/drm/tinydrm/Kconfig" +source "drivers/gpu/drm/tiny/Kconfig" source "drivers/gpu/drm/pl111/Kconfig" source "drivers/gpu/drm/tve200/Kconfig" source "drivers/gpu/drm/xen/Kconfig" + +source "drivers/gpu/drm/vboxvideo/Kconfig" + +source "drivers/gpu/drm/lima/Kconfig" + +source "drivers/gpu/drm/panfrost/Kconfig" + +source "drivers/gpu/drm/aspeed/Kconfig" + +source "drivers/gpu/drm/mcde/Kconfig" + +source "drivers/gpu/drm/tidss/Kconfig" + +source "drivers/gpu/drm/xlnx/Kconfig" # Keep legacy drivers last @@ -392,8 +452,8 @@ config DRM_I810 tristate "Intel I810" - # !PREEMPT because of missing ioctl locking - depends on DRM && AGP && AGP_INTEL && (!PREEMPT || BROKEN) + # !PREEMPTION because of missing ioctl locking + depends on DRM && AGP && AGP_INTEL && (!PREEMPTION || BROKEN) help Choose this option if you have an Intel I810 graphics card. If M is selected, the module will be called i810. AGP support is required @@ -433,6 +493,9 @@ endif # DRM_LEGACY +config DRM_EXPORT_FOR_TESTS + bool + # Separate option because drm_panel_orientation_quirks.c is shared with fbdev config DRM_PANEL_ORIENTATION_QUIRKS tristate -- Gitblit v1.6.2