aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0478-drm-amd-display-re-order-the-luma-chroma-addres-upda.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0478-drm-amd-display-re-order-the-luma-chroma-addres-upda.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0478-drm-amd-display-re-order-the-luma-chroma-addres-upda.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0478-drm-amd-display-re-order-the-luma-chroma-addres-upda.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0478-drm-amd-display-re-order-the-luma-chroma-addres-upda.patch
new file mode 100644
index 00000000..18464a3f
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0478-drm-amd-display-re-order-the-luma-chroma-addres-upda.patch
@@ -0,0 +1,48 @@
+From aa1fffaa33a6497969d964216c900de071cc12c6 Mon Sep 17 00:00:00 2001
+From: Shirish S <shirish.s@amd.com>
+Date: Thu, 25 May 2017 14:40:21 +0530
+Subject: [PATCH 0478/4131] drm/amd/display: re-order the luma chroma addres
+ updation
+
+The DCE engine triggers scan as soon as the luma
+address is updated, since it is updated before chroma address
+the chroma data is not scanned out properly or in order.
+This patch fixes this by re-ordering the same.
+
+BUG: SWDEV-119421
+TEST: (On Chromium OS for Stoney Only)
+ * Executed below tests to see YUV(underlay) & RGB planes on eDP
+ plane_test --format XR24 --size 500x100 -p --format NV12 --size 500x500
+ * Chroma data is scanned properly.
+
+Signed-off-by: Shirish S <shirish.s@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
+index 9777a4d..a06c602 100644
+--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
++++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
+@@ -137,12 +137,12 @@ static void program_addr(
+ addr->grph.addr);
+ break;
+ case PLN_ADDR_TYPE_VIDEO_PROGRESSIVE:
+- program_pri_addr_l(
+- mem_input110,
+- addr->video_progressive.luma_addr);
+ program_pri_addr_c(
+ mem_input110,
+ addr->video_progressive.chroma_addr);
++ program_pri_addr_l(
++ mem_input110,
++ addr->video_progressive.luma_addr);
+ break;
+ default:
+ /* not supported */
+--
+2.7.4
+