diff options
author | Harry Wentland <[email protected]> | 2021-08-16 15:57:12 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2021-09-16 09:56:23 -0400 |
commit | 9987fbb368038d41bfdcda2a3f7f4945d7daa9a5 (patch) | |
tree | 23459fc869798f4b12a23d95735b5f9bc545590e /scripts/gdb/linux/proc.py | |
parent | fb932dfeb87411a8a01c995576198bfc302df339 (diff) |
drm/amd/display: Get backlight from PWM if DMCU is not initialized
On Carrizo/Stoney systems we set backlight through panel_cntl, i.e.
directly via the PWM registers, if DMCU is not initialized. We
always read it back through ABM registers which leads to a
mismatch and forces atomic_commit to program the backlight
each time.
Instead make sure we use the same logic for backlight readback,
i.e. read it from panel_cntl if DMCU is not initialized.
We also need to remove some extraneous and incorrect calculations
at the end of dce_get_16_bit_backlight_from_pwm.
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1666
Cc: [email protected]
Reviewed-by: Josip Pavic <[email protected]>
Acked-by: Mikita Lipski <[email protected]>
Signed-off-by: Harry Wentland <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions