drm/radeon/dpm: adjust the vblank time checks for eg, ni, si
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 12 Aug 2013 15:35:02 +0000 (11:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:30:38 +0000 (16:30 -0400)
According to the internal teams, we never hit the limit for
mclk switching on these asics, so we can disable the check.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/cypress_dpm.c
drivers/gpu/drm/radeon/ni_dpm.c

index 7e5d0b570a30531a8752e6b4f29bb732528bb7fe..95a66db08d9bedabe1b9564fe53939acc7ecca43 100644 (file)
@@ -2166,7 +2166,8 @@ bool cypress_dpm_vblank_too_short(struct radeon_device *rdev)
 {
        struct rv7xx_power_info *pi = rv770_get_pi(rdev);
        u32 vblank_time = r600_dpm_get_vblank_time(rdev);
-       u32 switch_limit = pi->mem_gddr5 ? 450 : 300;
+       /* we never hit the non-gddr5 limit so disable it */
+       u32 switch_limit = pi->mem_gddr5 ? 450 : 0;
 
        if (vblank_time < switch_limit)
                return true;
index f0f5f748938ad6c30292d2b109bef4c3a2f8fc29..238078c2b31947a70f8622c6eb73ea4acc27ed9d 100644 (file)
@@ -769,7 +769,8 @@ bool ni_dpm_vblank_too_short(struct radeon_device *rdev)
 {
        struct rv7xx_power_info *pi = rv770_get_pi(rdev);
        u32 vblank_time = r600_dpm_get_vblank_time(rdev);
-       u32 switch_limit = pi->mem_gddr5 ? 450 : 300;
+       /* we never hit the non-gddr5 limit so disable it */
+       u32 switch_limit = pi->mem_gddr5 ? 450 : 0;
 
        if (vblank_time < switch_limit)
                return true;