diff options
| author | Tobias Jakobi <[email protected]> | 2024-09-16 12:54:05 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-09-18 20:15:09 +0000 |
| commit | e7d4e1438533abe448813bdc45691f9c230aa307 (patch) | |
| tree | fc310cef649c0b9a4eb34184ecb848181f725cfd /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/amdgpu/bios: split vbios fetching between APU and dGPU (diff) | |
| download | kernel-e7d4e1438533abe448813bdc45691f9c230aa307.tar.gz kernel-e7d4e1438533abe448813bdc45691f9c230aa307.zip | |
drm/amd/display: handle nulled pipe context in DCE110's set_drr()
As set_drr() is called from IRQ context, it can happen that the
pipe context has been nulled by dc_state_destruct().
Apply the same protection here that is already present for
dcn35_set_drr() and dcn10_set_drr(). I.e. fetch the tg pointer
first (to avoid a race with dc_state_destruct()), and then
check the local copy before using it.
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3142
Fixes: 06ad7e164256 ("drm/amd/display: Destroy DC context while keeping DML and DML2")
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Tobias Jakobi <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
