2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/amd/display/dc/clk_mgr
Nicholas Kazlauskas 72d7a7fa1f drm/amd/display: Guard against setting dispclk low when active
[Why]
We should never apply a minimum dispclk value while in prepare_bandwidth
or while displays are active. This is always an optimization for when
all displays are disabled.

[How]
Defer dispclk optimization until safe_to_lower = true and display_count
reaches 0.

Since 0 has a special value in this logic (ie. no dispclk required)
we also need adjust the logic that clamps it for the actual request
to PMFW.

Reviewed-by: Gabe Teeger <gabe.teeger@amd.com>
Reviewed-by: Leo Chen <leo.chen@amd.com>
Reviewed-by: Syed Hassan <syed.hassan@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2025-02-19 15:14:19 -05:00
..
dce60 drm/amd/display: dc/clk_mgr: make function static 2020-09-17 21:21:40 -04:00
dce100 drm/amd/display: Cleanup dce_get_dp_ref_freq_khz 2024-07-01 16:06:53 -04:00
dce110 drm/amd/display: Check null pointers before used 2024-07-23 17:07:12 -04:00
dce112 drm/amd/display: Clean FPGA code in dc 2023-06-09 10:44:11 -04:00
dce120 drm/amd/display: Refactor HWSS into component folder 2023-10-09 17:00:09 -04:00
dcn10 drm/amd/display: Adjust some includes used by display 2024-04-12 00:34:43 -04:00
dcn20 drm/amd/display: handle invalid connector indices 2024-04-09 21:59:37 -04:00
dcn21 drm/amd/display: Remove redundant checks for ctx->dc_bios 2024-06-19 12:45:33 -04:00
dcn30 drm/amd/display: Fix invalid Copyright notice 2024-05-02 16:18:16 -04:00
dcn31 drm/amd/display: Refactoring if and endif statements to enable DC_LOGGER 2024-10-28 16:35:43 -04:00
dcn32 drm/amd/display: Fix possible overflow in integer multiplication 2024-07-01 16:06:53 -04:00
dcn35 drm/amd/display: Guard against setting dispclk low when active 2025-02-19 15:14:19 -05:00
dcn201 drm/amdgpu: rename register headers to dcn_2_0_1 2024-12-10 10:37:34 -05:00
dcn301 drm/amd/display: Remove redundant checks for ctx->dc_bios 2024-06-19 12:45:33 -04:00
dcn314 drm/amd/display: Refactoring if and endif statements to enable DC_LOGGER 2024-10-28 16:35:43 -04:00
dcn315 drm/amd/display: Remove redundant checks for ctx->dc_bios 2024-06-19 12:45:33 -04:00
dcn316 drm/amd/display: Remove redundant checks for ctx->dc_bios 2024-06-19 12:45:33 -04:00
dcn401 drm/amd/display: Populate register address for dentist for dcn401 2025-02-12 21:02:57 -05:00
clk_mgr.c drm/amd/display: update dcn351 used clock offset 2024-12-10 10:37:16 -05:00
Makefile drm/amd/display: update dcn351 used clock offset 2024-12-10 10:37:16 -05:00