diff options
| author | Nicholas Kazlauskas <[email protected]> | 2020-07-28 14:03:10 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-08-06 19:46:25 +0000 |
| commit | cf322b49c9e8fe41e5c9d0b5e57eee84085da553 (patch) | |
| tree | b47e0d5bb74d635ab29dbca65993cfb6c0af83b1 /drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | |
| parent | drm/amd/display: Reset plane when tiling flags change (diff) | |
| download | kernel-cf322b49c9e8fe41e5c9d0b5e57eee84085da553.tar.gz kernel-cf322b49c9e8fe41e5c9d0b5e57eee84085da553.zip | |
drm/amd/display: Avoid using unvalidated tiling_flags and tmz_surface in prepare_planes
[Why]
We're racing with userspace as the flags could potentially change
from when we acquired and validated them in commit_check.
[How]
We unfortunately can't drop this function in its entirety from
prepare_planes since we don't know the afb->address at commit_check
time yet.
So instead of querying new tiling_flags and tmz_surface use the ones
from the plane_state directly.
While we're at it, also update the force_disable_dcc option based
on the state from atomic check.
Signed-off-by: Nicholas Kazlauskas <[email protected]>
Reviewed-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c')
0 files changed, 0 insertions, 0 deletions
