drm/amd/display: Allow dirty rects to be sent to dmub when abm is active
authorJosip Pavic <josip.pavic@amd.com>
Fri, 9 Feb 2024 21:05:18 +0000 (16:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Mar 2024 17:12:58 +0000 (13:12 -0400)
commit7fb19d9510937121a1f285894cffd30bc96572e3
treefa346e6a2510d7ca0628a54cefef1f04198975d6
parent26fbcb3da77efc77bd7327b7916338d773cca484
drm/amd/display: Allow dirty rects to be sent to dmub when abm is active

[WHY]
It's beneficial for ABM to know when new frame data are available.

[HOW]
Add new condition to allow dirty rects to be sent to DMUB when ABM is
active. ABM will use this as a signal that a new frame has arrived.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Anthony Koo <anthony.koo@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Josip Pavic <josip.pavic@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c