diff options
author | Leo Li <[email protected]> | 2024-08-20 14:34:15 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-09-02 13:12:13 -0400 |
commit | 53c3685f5307967a62517ace10e69d66520d0fc5 (patch) | |
tree | 4736d06003f8fc8f549d823f396934c5b39b72ee /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 4de34b04783628f14614badb0a1aa67ce3fcef5d (diff) |
drm/amd/display: Lock DC and exit IPS when changing backlight
Backlight updates require aux and/or register access. Therefore, driver
needs to disallow IPS beforehand.
So, acquire the dc lock before calling into dc to update backlight - we
should be doing this regardless of IPS. Then, while the lock is held,
disallow IPS before calling into dc, then allow IPS afterwards (if it
was previously allowed).
Reviewed-by: Aurabindo Pillai <[email protected]>
Reviewed-by: Roman Li <[email protected]>
Signed-off-by: Leo Li <[email protected]>
Signed-off-by: Hamza Mahfooz <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
(cherry picked from commit 988fe2862635c1b1b40e41c85c24db44ab337c13)
Cc: [email protected] # 6.10+
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions