drm/amd/display: fbc state could not reach while enable fbc
authorhersen wu <hersenxs.wu@amd.com>
Tue, 30 Oct 2018 20:39:15 +0000 (16:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Nov 2018 17:02:35 +0000 (12:02 -0500)
commit65d38262b3e82fc795464e48ee88cb66fd4c85aa
treeb488f6e72a013f7f4566b092a132de288ccce0c3
parentecd0136bfdb5a28b8a869c305823df9d663e85ee
drm/amd/display: fbc state could not reach while enable fbc

   [WHY] fbc is within the data path from memory to dce. while
   re-configure mc dmif, fbc should be enabled. otherwise, fbc
   may not be enabled properly.

   [HOW] before re-configure mc dmif, disable fbc, only after
   dmif re-configuration fully done, enable fbc again.

Signed-off-by: hersen wu <hersenxs.wu@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/inc/compressor.h