Skip to content

Commit

Permalink
drm/amd/display: disable RCO for DCN314
Browse files Browse the repository at this point in the history
[Why]
RCO is causing error messages on some DCN314 systems

[How]
Force disable RCO for DCN314

Fixes: 17fbdbd ("drm/amd/display: Enable dcn314 DPP RCO")
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Daniel Miess <daniel.miess@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Daniel Miess authored and alexdeucher committed Jun 23, 2023
1 parent 65dae8f commit 85e41f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ static void dccg314_dpp_root_clock_control(
{
struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg);

if (dccg->dpp_clock_gated[dpp_inst] == clock_on)
if (dccg->dpp_clock_gated[dpp_inst] != clock_on)
return;

if (clock_on) {
Expand Down
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -1908,6 +1908,9 @@ static bool dcn314_resource_construct(
dc->debug.disable_dpp_power_gate = true;
dc->debug.disable_hubp_power_gate = true;

/* Disable root clock optimization */
dc->debug.root_clock_optimization.u32All = 0;

// Init the vm_helper
if (dc->vm_helper)
vm_helper_init(dc->vm_helper, 16);
Expand Down

0 comments on commit 85e41f1

Please sign in to comment.