linux/drivers/gpu/drm/amd/display/dc/hwss
Tobias Jakobi e7d4e14385 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: 06ad7e1642 ("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>
2024-09-18 16:15:09 -04:00
..
dce drm/amd/display: Add some DCN401 reg name to macro definitions 2024-04-26 17:23:31 -04:00
dce80
dce100
dce110 drm/amd/display: handle nulled pipe context in DCE110's set_drr() 2024-09-18 16:15:09 -04:00
dce112
dce120
dcn10 drm/amd/display: Avoid race between dcn10_set_drr() and dc_state_destruct() 2024-09-06 17:39:02 -04:00
dcn20 Revert "drm/amd/display: Wait for all pending cleared before full update" 2024-09-02 11:37:29 -04:00
dcn21 drm/amd/display: Remove duplicate HWSS interfaces 2024-07-23 17:38:42 -04:00
dcn30 drm/amd/display: fix typo in the comment 2024-09-18 16:14:27 -04:00
dcn31 drm/amd/display: Update HPO I/O When Handling Link Retrain Automation Request 2024-08-20 22:14:13 -04:00
dcn32 drm/amd/display: Skip to enable dsc if it has been off 2024-09-18 16:15:08 -04:00
dcn35 drm/amd/display: Skip to enable dsc if it has been off 2024-09-18 16:15:08 -04:00
dcn201 drm/amd/display: Remove duplicate HWSS interfaces 2024-07-23 17:38:42 -04:00
dcn301 Revert "drm/amd/display: Wait for all pending cleared before full update" 2024-09-02 11:37:29 -04:00
dcn302 drm/amd/display: Refactor INIT into component folder 2024-01-03 10:47:29 -05:00
dcn303 drm/amd/display: Refactor INIT into component folder 2024-01-03 10:47:29 -05:00
dcn314 drm/amd/display: Update HPO I/O When Handling Link Retrain Automation Request 2024-08-20 22:14:13 -04:00
dcn351 drm/amd/display: Update HPO I/O When Handling Link Retrain Automation Request 2024-08-20 22:14:13 -04:00
dcn401 Revert "drm/amd/display: Wait for all pending cleared before full update" 2024-09-02 11:37:29 -04:00
Makefile drm/amd/display: Remove legacy code in DC 2024-04-30 09:52:51 -04:00
hw_sequencer.h Revert "drm/amd/display: Wait for all pending cleared before full update" 2024-09-02 11:37:29 -04:00
hw_sequencer_private.h drm/amd/display: Remove duplicate HWSS interfaces 2024-07-23 17:38:42 -04:00