aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1589-drm-amd-display-add-pipe-lock-during-stream-update.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1589-drm-amd-display-add-pipe-lock-during-stream-update.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1589-drm-amd-display-add-pipe-lock-during-stream-update.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1589-drm-amd-display-add-pipe-lock-during-stream-update.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1589-drm-amd-display-add-pipe-lock-during-stream-update.patch
new file mode 100644
index 00000000..26ebe1bd
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1589-drm-amd-display-add-pipe-lock-during-stream-update.patch
@@ -0,0 +1,42 @@
+From 703e452cf5b938813f55edc78a2c446f918333ac Mon Sep 17 00:00:00 2001
+From: Wenjing Liu <Wenjing.Liu@amd.com>
+Date: Wed, 20 Feb 2019 14:00:55 -0500
+Subject: [PATCH 1589/2940] drm/amd/display: add pipe lock during stream update
+
+[why]
+Stream update will adjust both info packets and stream params,
+need to make sure all things are applied togather.
+
+[how]
+add pipe lock during stream update
+
+Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
+Reviewed-by: Jun Lei <Jun.Lei@amd.com>
+Acked-by: Leo Li <sunpeng.li@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
+index 20b0f03151d1..19aea68c9d67 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
+@@ -1681,6 +1681,7 @@ static void commit_planes_do_stream_update(struct dc *dc,
+ continue;
+
+ if (stream_update->dpms_off) {
++ dc->hwss.pipe_control_lock(dc, pipe_ctx, true);
+ if (*stream_update->dpms_off) {
+ core_link_disable_stream(pipe_ctx, KEEP_ACQUIRED_RESOURCE);
+ dc->hwss.optimize_bandwidth(dc, dc->current_state);
+@@ -1688,6 +1689,7 @@ static void commit_planes_do_stream_update(struct dc *dc,
+ dc->hwss.prepare_bandwidth(dc, dc->current_state);
+ core_link_enable_stream(dc->current_state, pipe_ctx);
+ }
++ dc->hwss.pipe_control_lock(dc, pipe_ctx, false);
+ }
+
+ if (stream_update->abm_level && pipe_ctx->stream_res.abm) {
+--
+2.17.1
+