drm/amd/display: Refactor to prevent crtc state access in DM IRQ handler
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Wed, 12 Aug 2020 22:56:14 +0000 (18:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Sep 2020 21:52:39 +0000 (17:52 -0400)
commit585d450c76d1d5807a50cb6c22487ae5aed0906b
tree979dbb4996ffeacd3c6b9d3fabb73feaaaf3900f
parent5d1c59c47997e9955be3a52e261c08e8b40b3902
drm/amd/display: Refactor to prevent crtc state access in DM IRQ handler

[Why&How]
Currently commit_tail holds global locks and wait for dependencies which is
against the DRM API contracts. Inorder to fix this, IRQ handler should be able
to run without having to access crtc state. Required parameters are copied over
so that they can be directly accessed from the interrupt handler

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq_params.h