From: Shirish S Date: Thu, 25 May 2017 09:10:21 +0000 (+0530) Subject: drm/amd/display: re-order the luma chroma addres updation X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0a1c73ec8e4834d72441ae77f436869fd5179d8f;p=linux.git 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 Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- 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 9777a4d961d5e..a06c6024deb4e 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 */