diff options
| author | Leo Li <[email protected]> | 2024-07-11 14:31:27 -0400 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-07-27 17:30:38 -0400 |
| commit | 7fb363c57522b704e156fc4c5fbcb7ee133fe304 (patch) | |
| tree | 4aa57116d6811b7b6f5d511cee9b3e8185a44253 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | f9e6759888866748f31b6b6c2142a481d587f51f (diff) | |
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 <[email protected]>
Reviewed-by: Aurabindo Pillai <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions