diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-07-08 11:49:48 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-07-08 17:40:31 -0400 |
commit | b06195d9943d561273939e866b4bfc87beba18bc (patch) | |
tree | 144eff6298a18a1de951b62ecf180c2d0d8fdb48 /drivers/gpu/drm/radeon/rv770_dpm.c | |
parent | 48783069350a2963e97696a3c3ed0a40cbe35210 (diff) | |
download | op-kernel-dev-b06195d9943d561273939e866b4bfc87beba18bc.zip op-kernel-dev-b06195d9943d561273939e866b4bfc87beba18bc.tar.gz |
drm/radeon/dpm: implement vblank_too_short callback for 7xx
Check if we can switch the mclk during the vblank time otherwise
we may get artifacts on the screen when the mclk changes.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rv770_dpm.c')
-rw-r--r-- | drivers/gpu/drm/radeon/rv770_dpm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/rv770_dpm.c b/drivers/gpu/drm/radeon/rv770_dpm.c index 4de50c8..d914e04 100644 --- a/drivers/gpu/drm/radeon/rv770_dpm.c +++ b/drivers/gpu/drm/radeon/rv770_dpm.c @@ -2508,3 +2508,14 @@ u32 rv770_dpm_get_mclk(struct radeon_device *rdev, bool low) else return requested_state->high.mclk; } + +bool rv770_dpm_vblank_too_short(struct radeon_device *rdev) +{ + u32 vblank_time = r600_dpm_get_vblank_time(rdev); + + if (vblank_time < 300) + return true; + else + return false; + +} |