drm/amd/display: Fix ABM pipe/backlight issues when change backlight
authorLeon Huang <Leon.Huang1@amd.com>
Thu, 8 Dec 2022 08:06:07 +0000 (16:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Apr 2023 20:28:51 +0000 (16:28 -0400)
commit6f0ef80a00adfd51be22b6ab84acd48de1d3938d
tree0b8b4360b8cdcb38adeef9dc7c2b2c55167bfce0
parent9b035d089086deb75d6664b26d36e35853e58ce9
drm/amd/display: Fix ABM pipe/backlight issues when change backlight

[Why]
set ABM pipe/backlight gets some issues when abm callback func pointers
are NULL. For some usecase, driver would like to control PWM level before
ABM resource is ready. However, recent flow refactor of ABM didn't
consider that use case.

[How]
Rollback flow that sending inbox command to dmub directly when ABM
function pointers aren't ready.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Leon Huang <Leon.Huang1@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/dcn21/dcn21_hwseq.c