OSDN Git Service

drm/amd/display: Use validated tiling_flags and tmz_surface in commit_tail
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 6 Aug 2020 19:48:10 +0000 (15:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Aug 2020 19:48:54 +0000 (15:48 -0400)
commit8ce5d8425d39eb9197e30bcffc5afbaa7079b723
treec5b67fb909f1d4e4c990cf3082dba4e94fe8815a
parentcf322b49c9e8fe41e5c9d0b5e57eee84085da553
drm/amd/display: Use validated tiling_flags and tmz_surface in commit_tail

[Why]
So we're not racing with userspace or deadlocking DM.

[How]
These flags are now stored on dm_plane_state itself and acquried and
validated during commit_check, so just use those instead.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c