diff options
author | Tobias Jakobi <tjakobi@math.uni-bielefeld.de> | 2024-09-16 14:54:05 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-09-18 22:15:09 +0200 |
commit | e7d4e1438533abe448813bdc45691f9c230aa307 (patch) | |
tree | fc310cef649c0b9a4eb34184ecb848181f725cfd /drivers/gpu/Makefile | |
parent | drm/amdgpu/bios: split vbios fetching between APU and dGPU (diff) | |
download | linux-e7d4e1438533abe448813bdc45691f9c230aa307.tar.xz linux-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 <alexander.deucher@amd.com>
Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/Makefile')
0 files changed, 0 insertions, 0 deletions