Skip to contentSkip to conversation

drm/radeon/kms: fix legacy get_engine/memory clock

PATCH New Alex Deucher 1 participant 1 message Jan 22, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon/kms: fix legacy get_engine/memory clock

Quoted 1 line

From 7cd86c7f89de8f18a678dde692b759f1bc6c911f Mon Sep 17 00:00:00 2001

From: Alex Deucher <[email protected]>
Date: Thu, 21 Jan 2010 19:28:18 -0500
Subject: [PATCH] drm/radeon/kms: fix legacy get_engine/memory clock

Fix a bad shift in the post div.

Should fix fdo bug 26145

---
 drivers/gpu/drm/radeon/radeon_clocks.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/radeon/radeon_clocks.c
index 812f24d..73c4405 100644

drivers/gpu/drm/radeon/radeon_clocks.c +0 -0
@@ -56,7 +56,7 @@ uint32_t radeon_legacy_get_engine_clock(struct

radeon_device *rdev)
else if (post_div == 3)
sclk >>= 2;
else if (post_div == 4)
- sclk >>= 4;
+ sclk >>= 3;

return sclk;
}
@@ -86,7 +86,7 @@ uint32_t radeon_legacy_get_memory_clock(struct radeon_device *rdev)
else if (post_div == 3)
mclk >>= 2;
else if (post_div == 4)
- mclk >>= 4;
+ mclk >>= 3;

return mclk;
}

Signature · 1 line
1.5.6.3

From 7cd86c7f89de8f18a678dde692b759f1bc6c911f Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Thu, 21 Jan 2010 19:28:18 -0500
Subject: [PATCH] drm/radeon/kms: fix legacy get_engine/memory clock

Fix a bad shift in the post div.

Should fix fdo bug 26145

---
 drivers/gpu/drm/radeon/radeon_clocks.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_clocks.c +2 -2
index 812f24d..73c4405 100644
@@ -56,7 +56,7 @@ uint32_t radeon_legacy_get_engine_clock(struct radeon_device *rdev)
 	else if (post_div == 3)
 		sclk >>= 2;
 	else if (post_div == 4)
-		sclk >>= 4;
+		sclk >>= 3;
 
 	return sclk;
 }
@@ -86,7 +86,7 @@ uint32_t radeon_legacy_get_memory_clock(struct radeon_device *rdev)
 	else if (post_div == 3)
 		mclk >>= 2;
 	else if (post_div == 4)
-		mclk >>= 4;
+		mclk >>= 3;
 
 	return mclk;
 }
Signature · 1 line
1.5.6.3

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev

--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel