drm/amd/display: Don't offload flip if not only address update
authorAlvin Lee <alvin.lee2@amd.com>
Mon, 29 Apr 2024 21:39:35 +0000 (17:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 May 2024 19:47:20 +0000 (15:47 -0400)
[WHAT & HOW]
Fast updates can consist of some stream updates as well (i.e., out_csc).
In these cases we should not offload the flip to FW as we can only
offload address only updates to FW.

Reviewed-by: Chris Park <chris.park@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alvin Lee <alvin.lee2@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 0f20a3d96d933549844b8f0bb437b061e815bd30..0208b28517ac6630370ab339306efe0c8c262bab 100644 (file)
@@ -3664,6 +3664,10 @@ static void commit_planes_for_stream_fast(struct dc *dc,
                                break;
                        }
                }
+               if (stream_update) {
+                       /* more than address update, need to acquire FAMS2 lock */
+                       should_offload_fams2_flip = false;
+               }
        }
 
        dc_exit_ips_for_hw_access(dc);