[PATCH 52/53] drm/radeon/dpm: add reclocking quirk for ASUS K70AF

2013-08-12 Thread Alex Deucher
The LCD has a relatively short vblank time (216us), but
the card is able to reclock memory fine in that time.

Signed-off-by: Alex Deucher 
Reported-by: normalrawr at gmail.com
---
 drivers/gpu/drm/radeon/rv770_dpm.c | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/radeon/rv770_dpm.c 
b/drivers/gpu/drm/radeon/rv770_dpm.c
index 094c67a..44c1e78 100644
--- a/drivers/gpu/drm/radeon/rv770_dpm.c
+++ b/drivers/gpu/drm/radeon/rv770_dpm.c
@@ -2517,8 +2517,16 @@ u32 rv770_dpm_get_mclk(struct radeon_device *rdev, bool 
low)
 bool rv770_dpm_vblank_too_short(struct radeon_device *rdev)
 {
u32 vblank_time = r600_dpm_get_vblank_time(rdev);
+   u32 switch_limit = 300;

-   if (vblank_time < 300)
+   /* quirks */
+   /* ASUS K70AF */
+   if ((rdev->pdev->device == 0x9553) &&
+   (rdev->pdev->subsystem_vendor == 0x1043) &&
+   (rdev->pdev->subsystem_device == 0x1c42))
+   switch_limit = 200;
+
+   if (vblank_time < switch_limit)
return true;
else
return false;
-- 
1.8.3.1



[PATCH 52/53] drm/radeon/dpm: add reclocking quirk for ASUS K70AF

2013-08-12 Thread Alex Deucher
The LCD has a relatively short vblank time (216us), but
the card is able to reclock memory fine in that time.

Signed-off-by: Alex Deucher alexander.deuc...@amd.com
Reported-by: normalr...@gmail.com
---
 drivers/gpu/drm/radeon/rv770_dpm.c | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/radeon/rv770_dpm.c 
b/drivers/gpu/drm/radeon/rv770_dpm.c
index 094c67a..44c1e78 100644
--- a/drivers/gpu/drm/radeon/rv770_dpm.c
+++ b/drivers/gpu/drm/radeon/rv770_dpm.c
@@ -2517,8 +2517,16 @@ u32 rv770_dpm_get_mclk(struct radeon_device *rdev, bool 
low)
 bool rv770_dpm_vblank_too_short(struct radeon_device *rdev)
 {
u32 vblank_time = r600_dpm_get_vblank_time(rdev);
+   u32 switch_limit = 300;
 
-   if (vblank_time  300)
+   /* quirks */
+   /* ASUS K70AF */
+   if ((rdev-pdev-device == 0x9553) 
+   (rdev-pdev-subsystem_vendor == 0x1043) 
+   (rdev-pdev-subsystem_device == 0x1c42))
+   switch_limit = 200;
+
+   if (vblank_time  switch_limit)
return true;
else
return false;
-- 
1.8.3.1

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel