aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0638-drm-amd-display-register-programming-consolidation.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0638-drm-amd-display-register-programming-consolidation.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0638-drm-amd-display-register-programming-consolidation.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0638-drm-amd-display-register-programming-consolidation.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0638-drm-amd-display-register-programming-consolidation.patch
new file mode 100644
index 00000000..7fa2305f
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0638-drm-amd-display-register-programming-consolidation.patch
@@ -0,0 +1,50 @@
+From fade273473cde53f23a9165243338c8be30897ef Mon Sep 17 00:00:00 2001
+From: Tony Cheng <tony.cheng@amd.com>
+Date: Wed, 12 Jul 2017 22:00:34 -0400
+Subject: [PATCH 0638/4131] drm/amd/display: register programming consolidation
+
+remove redundant DPP_CLOCK_ENABLE in ipp. clock programmed by HWSS
+
+Signed-off-by: Tony Cheng <tony.cheng@amd.com>
+Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.c | 1 -
+ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.h | 2 --
+ 2 files changed, 3 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.c
+index 4910d4c..53dd9a9 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.c
+@@ -418,7 +418,6 @@ static void ippn10_enable_cm_block(
+ {
+ struct dcn10_ipp *ippn10 = TO_DCN10_IPP(ipp);
+
+- REG_UPDATE(DPP_CONTROL, DPP_CLOCK_ENABLE, 1);
+ REG_UPDATE(CM_CONTROL, CM_BYPASS_EN, 0);
+ }
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.h b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.h
+index 1703589..f14e208 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.h
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.h
+@@ -235,7 +235,6 @@
+ IPP_SF(CM0_CM_DGAM_LUT_WRITE_EN_MASK, CM_DGAM_LUT_WRITE_SEL, mask_sh), \
+ IPP_SF(CM0_CM_DGAM_LUT_INDEX, CM_DGAM_LUT_INDEX, mask_sh), \
+ IPP_SF(CM0_CM_DGAM_LUT_DATA, CM_DGAM_LUT_DATA, mask_sh), \
+- IPP_SF(DPP_TOP0_DPP_CONTROL, DPP_CLOCK_ENABLE, mask_sh), \
+ IPP_SF(CNVC_CFG0_CNVC_SURFACE_PIXEL_FORMAT, CNVC_SURFACE_PIXEL_FORMAT, mask_sh), \
+ IPP_SF(CNVC_CFG0_FORMAT_CONTROL, CNVC_BYPASS, mask_sh), \
+ IPP_SF(CNVC_CFG0_FORMAT_CONTROL, ALPHA_EN, mask_sh), \
+@@ -433,7 +432,6 @@
+ type CM_DGAM_LUT_WRITE_SEL; \
+ type CM_DGAM_LUT_INDEX; \
+ type CM_DGAM_LUT_DATA; \
+- type DPP_CLOCK_ENABLE; \
+ type CM_BYPASS_EN; \
+ type CM_BYPASS; \
+ type CNVC_SURFACE_PIXEL_FORMAT; \
+--
+2.7.4
+