summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/inc/compressor.h
diff options
context:
space:
mode:
authorhersen wu <hersenxs.wu@amd.com>2018-10-30 16:39:15 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-11-30 12:02:35 -0500
commit65d38262b3e82fc795464e48ee88cb66fd4c85aa (patch)
treeb488f6e72a013f7f4566b092a132de288ccce0c3 /drivers/gpu/drm/amd/display/dc/inc/compressor.h
parentecd0136bfdb5a28b8a869c305823df9d663e85ee (diff)
downloadlinux-65d38262b3e82fc795464e48ee88cb66fd4c85aa.tar.gz
linux-65d38262b3e82fc795464e48ee88cb66fd4c85aa.tar.bz2
linux-65d38262b3e82fc795464e48ee88cb66fd4c85aa.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/compressor.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/compressor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/compressor.h b/drivers/gpu/drm/amd/display/dc/inc/compressor.h
index bcb18f5e1e60..7a147a9762a0 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/compressor.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/compressor.h
@@ -77,6 +77,7 @@ struct compressor_funcs {
};
struct compressor {
struct dc_context *ctx;
+ /* CONTROLLER_ID_D0 + instance, CONTROLLER_ID_UNDEFINED = 0 */
uint32_t attached_inst;
bool is_enabled;
const struct compressor_funcs *funcs;