Commit 4f26c95
drm/amd/display: Fix brightness level not retained over reboot
[Why]
During boot up and resume the DC layer will reset the panel
brightness to fix a flicker issue.
It will cause the dm->actual_brightness is not the current panel
brightness level. (the dm->brightness is the correct panel level)
[How]
Set the backlight level after do the set mode.
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Fixes: d9e8658 ("drm/amd/display: Simplify brightness initialization")
Reported-by: Mark Herbert <mark.herbert42@gmail.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3655
Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 7875afa)
Cc: stable@vger.kernel.org1 parent 59b723c commit 4f26c95
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9429 | 9429 | | |
9430 | 9430 | | |
9431 | 9431 | | |
| 9432 | + | |
9432 | 9433 | | |
9433 | 9434 | | |
9434 | 9435 | | |
| |||
9548 | 9549 | | |
9549 | 9550 | | |
9550 | 9551 | | |
| 9552 | + | |
9551 | 9553 | | |
9552 | 9554 | | |
9553 | 9555 | | |
| |||
9599 | 9601 | | |
9600 | 9602 | | |
9601 | 9603 | | |
| 9604 | + | |
| 9605 | + | |
| 9606 | + | |
| 9607 | + | |
| 9608 | + | |
| 9609 | + | |
| 9610 | + | |
| 9611 | + | |
| 9612 | + | |
| 9613 | + | |
| 9614 | + | |
| 9615 | + | |
| 9616 | + | |
9602 | 9617 | | |
9603 | 9618 | | |
9604 | 9619 | | |
| |||
0 commit comments