]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: Populate Power Profile In Case of Early Return
authorAustin Zheng <Austin.Zheng@amd.com>
Tue, 5 Nov 2024 15:22:02 +0000 (10:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Nov 2024 14:39:58 +0000 (09:39 -0500)
commitc3ea03c2a1557644386e38aaf2b5a9c261e0be1a
tree8b606f808fef897fb269e7b5eed29ee2f2ac77e9
parente0179588d6eeb74eb87981c07a405524a1f0a677
drm/amd/display: Populate Power Profile In Case of Early Return

Early return possible if context has no clk_mgr.
This will lead to an invalid power profile being returned
which looks identical to a profile with the lowest power level.
Add back logic that populated the power profile and overwrite
the value if needed.

Cc: stable@vger.kernel.org
Fixes: d016d0dd5a57 ("drm/amd/display: Update Interface to Check UCLK DPM")
Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Austin Zheng <Austin.Zheng@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@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/core/dc.c