aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorNicholas Kazlauskas <[email protected]>2019-04-08 16:31:25 +0000
committerAlex Deucher <[email protected]>2019-04-29 19:58:23 +0000
commite39575b9c3661844e4746fa9e32d58354ffe0b50 (patch)
treeaa69f2f023da445ade5c18f20951b6d489d05131 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentdrm/amd/display: Disable cursors before disabling planes (diff)
downloadkernel-e39575b9c3661844e4746fa9e32d58354ffe0b50.tar.gz
kernel-e39575b9c3661844e4746fa9e32d58354ffe0b50.zip
drm/amd/display: Fix CRC vblank refs when changing interrupts
[Why] We only currently drop the vblank reference when the stream is being removed from the context. We should be dropping it whenever we disable interrupts and reaquiring it after we re-enable them. We also never get the extra reference correctly when re-enabling interrupts, since grabbing the reference has the following condition: if (!crtc_state->crc_enabled && enable) drm_crtc_vblank_get(crtc); This means that crc_enabled must be *false* in order to grab the extra reference. [How] Always drop the ref whenever we're disabling interrupts. Only disable CRC capture when the stream is being removed. Always grab the ref by setting dm_new_crtc_state->crc_enabled = false before the call to re-enable CRC capture. Signed-off-by: Nicholas Kazlauskas <[email protected]> Reviewed-by: David Francis <[email protected]> Acked-by: Leo Li <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions