Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: Guard FAMS2 configuration updates

[WHY&HOW]
If DMCUB is not initialized or FAMS2 is not supported, the
interface should not be called.

Reviewed-by: Sridevi Arvindekar <sridevi.arvindekar@amd.com>
Signed-off-by: Dillon Varone <Dillon.Varone@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Dillon Varone and committed by
Alex Deucher
7dedb906 e4a3133c

+5 -2
+5 -2
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
··· 1772 1772 void dcn401_hardware_release(struct dc *dc) 1773 1773 { 1774 1774 if (!dc->debug.disable_force_pstate_allow_on_hw_release) { 1775 - dc_dmub_srv_fams2_update_config(dc, dc->current_state, false); 1775 + if (dc->ctx->dmub_srv && dc->debug.fams2_config.bits.enable) 1776 + dc_dmub_srv_fams2_update_config(dc, dc->current_state, false); 1776 1777 1777 1778 /* If pstate unsupported, or still supported 1778 1779 * by firmware, force it supported by dcn ··· 1793 1792 dc->clk_mgr->clks.p_state_change_support = false; 1794 1793 dc->clk_mgr->funcs->update_clocks(dc->clk_mgr, dc->current_state, true); 1795 1794 } 1796 - dc_dmub_srv_fams2_update_config(dc, dc->current_state, false); 1795 + 1796 + if (dc->ctx->dmub_srv && dc->debug.fams2_config.bits.enable) 1797 + dc_dmub_srv_fams2_update_config(dc, dc->current_state, false); 1797 1798 } 1798 1799 } 1799 1800