linux/drivers/gpu/drm/amd
Nicholas Kazlauskas e39575b9c3 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 <nicholas.kazlauskas@amd.com>
Reviewed-by: David Francis <David.Francis@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-04-29 14:58:23 -05:00
..
acp
amdgpu drm/amdgpu: value of amdgpu_sriov_vf cannot be set into F32_POLL_ENABLE 2019-04-29 14:57:40 -05:00
amdkfd drm/amdgpu: get_fw_version isn't ASIC specific 2019-04-19 11:32:40 -05:00
display drm/amd/display: Fix CRC vblank refs when changing interrupts 2019-04-29 14:58:23 -05:00
include drm/amd/include: Add HUBPREQ_DEBUG register offsets 2019-04-23 17:27:08 -05:00
powerplay drm/amd/powerplay: raven 4k@60hz dp monitor always flicking 2019-04-29 14:56:57 -05:00