diff options
author | Alvin Lee <alvin.lee2@amd.com> | 2024-04-29 17:39:35 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-05-13 15:47:20 -0400 |
commit | 1dd50e634cb46880f3364ce629b09a37a5b3f888 (patch) | |
tree | ea60b41c1bc2adbbe99f37a4923f7e76bb3213b2 | |
parent | 4eaf110f97ae55d18a3b0cb727eb6d8c0e8ce7db (diff) |
drm/amd/display: Don't offload flip if not only address update
[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>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 0f20a3d96d93..0208b28517ac 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -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); |