Skip to content

Commit

Permalink
drm/radeon/sumo: implement support for disable_gfx_power_gating_in_uv…
Browse files Browse the repository at this point in the history
…d flag

Some asic revisions need to disable PG when UVD is active.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Alex Deucher committed Jul 3, 2013
1 parent 62fa44b commit 338a95a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/radeon/sumo_dpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,9 @@ static void sumo_setup_uvd_clocks(struct radeon_device *rdev,
radeon_set_uvd_clocks(rdev, new_rps->vclk, new_rps->dclk);

if (pi->enable_gfx_power_gating) {
sumo_gfx_powergating_enable(rdev, true);
if (!pi->disable_gfx_power_gating_in_uvd ||
!r600_is_uvd_state(new_rps->class, new_rps->class2))
sumo_gfx_powergating_enable(rdev, true);
}
}

Expand Down

0 comments on commit 338a95a

Please sign in to comment.