diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3152-drm-amdgpu-add-AMD_DC_PRE_VEGA-dc-support-config.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3152-drm-amdgpu-add-AMD_DC_PRE_VEGA-dc-support-config.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3152-drm-amdgpu-add-AMD_DC_PRE_VEGA-dc-support-config.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3152-drm-amdgpu-add-AMD_DC_PRE_VEGA-dc-support-config.patch new file mode 100644 index 00000000..c7da249a --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3152-drm-amdgpu-add-AMD_DC_PRE_VEGA-dc-support-config.patch @@ -0,0 +1,49 @@ +From c0fe3efad5131f6f9d3c79e77da07b2deb47e400 Mon Sep 17 00:00:00 2001 +From: Kevin Wang <Kevin1.Wang@amd.com> +Date: Wed, 17 Jan 2018 16:38:24 +0800 +Subject: [PATCH 3152/4131] drm/amdgpu: add AMD_DC_PRE_VEGA dc support config + +Change-Id: Ia3c08cab25afb03b094ded74545be0e623953158 +Reviewed-by: Le Ma <Le.Ma@amd.com> +Signed-off-by:Kevin Wang <Kevin1.Wang@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ + drivers/gpu/drm/amd/display/Kconfig | 8 ++++++++ + 2 files changed, 11 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +index c0a513a..fd4cb2d 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +@@ -1738,6 +1738,9 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type) + case CHIP_POLARIS12: + case CHIP_TONGA: + case CHIP_FIJI: ++#if defined(CONFIG_DRM_AMD_DC_PRE_VEGA) ++ return amdgpu_dc != 0; ++#endif + case CHIP_VEGA10: + return amdgpu_dc != 0; + case CHIP_KABINI: +diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig +index 7aed462..5eba0c6 100644 +--- a/drivers/gpu/drm/amd/display/Kconfig ++++ b/drivers/gpu/drm/amd/display/Kconfig +@@ -9,6 +9,14 @@ config DRM_AMD_DC + + Will be deprecated when the DC component is upstream. + ++config DRM_AMD_DC_PRE_VEGA ++ bool "DC support for Polaris and older ASICs" ++ default n ++ help ++ Choose this option to enable the new DC support for older asics ++ by default. This includes Polaris, Carrizo, Tonga, Bonaire, ++ and Hawaii. ++ + config DRM_AMD_DC_FBC + bool "AMD FBC - Enable Frame Buffer Compression" + depends on DRM_AMD_DC +-- +2.7.4 + |