From: Alvin Lee <[email protected]>

[Why]
We don't want GSL to be enabled when only updating
plane address

[How]
Only check other pipes for immediate flip if GSL is
already enabled

Signed-off-by: Alvin Lee <[email protected]>
Acked-by: Bindu Ramamurthy <[email protected]>
---
 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 
b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
index da776de1dd1d..38bf6bfdbc44 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
@@ -1170,11 +1170,13 @@ void dcn20_pipe_control_lock(
        if (pipe->plane_state != NULL)
                flip_immediate = pipe->plane_state->flip_immediate;
 
-       temp_pipe = pipe->bottom_pipe;
-       while (!flip_immediate && temp_pipe) {
-               if (temp_pipe->plane_state != NULL)
-                       flip_immediate = temp_pipe->plane_state->flip_immediate;
-               temp_pipe = temp_pipe->bottom_pipe;
+       if  (pipe->stream_res.gsl_group > 0) {
+           temp_pipe = pipe->bottom_pipe;
+           while (!flip_immediate && temp_pipe) {
+                   if (temp_pipe->plane_state != NULL)
+                           flip_immediate = 
temp_pipe->plane_state->flip_immediate;
+                   temp_pipe = temp_pipe->bottom_pipe;
+           }
        }
 
        if (flip_immediate && lock) {
-- 
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to