aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
diff options
context:
space:
mode:
authorLeo Li <sunpeng.li@amd.com>2024-07-11 14:31:27 -0400
committerAlex Deucher <alexander.deucher@amd.com>2024-07-27 17:30:38 -0400
commit7fb363c57522b704e156fc4c5fbcb7ee133fe304 (patch)
tree4aa57116d6811b7b6f5d511cee9b3e8185a44253 /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
parentf9e6759888866748f31b6b6c2142a481d587f51f (diff)
downloadlinux-7fb363c57522b704e156fc4c5fbcb7ee133fe304.tar.gz
linux-7fb363c57522b704e156fc4c5fbcb7ee133fe304.tar.bz2
linux-7fb363c57522b704e156fc4c5fbcb7ee133fe304.zip
drm/amd/display: Let drm_crtc_vblank_on/off manage interrupts
[Why] We manage interrupts for CRTCs in two places: 1. In manage_dm_interrupts(), when CRTC get enabled or disabled 2. When drm_vblank_get/put() starts or kills the vblank counter, calling into amdgpu_dm_crtc_set_vblank() The interrupts managed by these twp places should be identical. [How] Since manage_dm_interrupts() already use drm_crtc_vblank_on/off(), just move all CRTC interrupt management into amdgpu_dm_crtc_set_vblank(). This has the added benefit of disabling all CRTC and HUBP interrupts when there are no vblank requestors. Note that there is a TODO item - unchanged from when it was first introduced - to properly identify the HUBP instance from the OTG instance, rather than just assume direct mapping. Signed-off-by: Leo Li <sunpeng.li@amd.com> Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions