aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dc_stream.h
diff options
context:
space:
mode:
authorJun Lei <Jun.Lei@amd.com>2019-08-15 15:22:34 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-09-13 18:02:52 -0500
commit119630061e72e6512ee8911b473cfacb6b211c53 (patch)
tree635e2cfcce3846fb195e0cf6511948c5da309f7d /drivers/gpu/drm/amd/display/dc/dc_stream.h
parentdrm/amd/display: Reuse dcn2 registers (diff)
downloadlinux-dev-119630061e72e6512ee8911b473cfacb6b211c53.tar.xz
linux-dev-119630061e72e6512ee8911b473cfacb6b211c53.zip
drm/amd/display: remove hw access from dc_destroy
[why] dc_destroy should only clean up SW, this is because GPUs may be removed before driver unload, leading to HW to be unavailable. [how] remove GPIO close as part of GPIO destroy, this is unnecessary because GPIO is not shared, and GPIOs are generally closed after being opened Add tracking to HW access during destructor to make future issues easier to pinpoint, and block access to prevent hangs. Signed-off-by: Jun Lei <Jun.Lei@amd.com> Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_stream.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_stream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_stream.h b/drivers/gpu/drm/amd/display/dc/dc_stream.h
index e2d9e11be4b0..3c061d4f214f 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_stream.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_stream.h
@@ -232,6 +232,8 @@ struct dc_stream_state {
union stream_update_flags update_flags;
};
+#define ABM_LEVEL_IMMEDIATE_DISABLE 0xFFFFFFFF
+
struct dc_stream_update {
struct dc_stream_state *stream;