Bug 62493

Summary: Clock speed incorrect with Radeon driver on Radeon HD7340 from an E2-1800 CPU
Product: xorg Reporter: Philippe Leblanc <philippe.l>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: philippe.l
Version: 7.7 (2012.06)   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
report proper current engine clock on APUs none

Description Philippe Leblanc 2013-03-18 20:21:51 UTC
My laptop is equipped with an AMD E2-1800 processor which comes paired with a radeon HD7340 video processor. It appears that the driver incorrectly sets the clock speed for this model. For example:

[root@localhost ~]# cat /sys/kernel/debug/dri/0/radeon_pm_info 
default engine clock: 200000 kHz
current engine clock: 5730 kHz
default memory clock: 667000 kHz

I believe this GPU is capable of running at 523-680Mhz with the latter number being turbo mode. However, the maximum engine clock appears to be stuck at 200MHz and the current clock is only 5Mhz. The current clock appears to change, but I've never seen go higher than 70Mhz. With the clock being so low, this makes for a sluggish experience when using a composited desktop like Gnome 3. I have tried changing the power management state to use the dynamic setting, but this has had no impact on the clock speeds posted.

[root@localhost ~]# cat /sys/class/drm/card0/device/power_method 
dynpm

I'm currently using the latest stable radeon driver (version 7.1) on Mageia Linux with kernel 3.8. Is this a configuration problem, or a problem with the driver?
Comment 1 Alex Deucher 2013-03-18 21:16:16 UTC
Created attachment 76713 [details] [review]
report proper current engine clock on APUs

The method we use to read back the current engine clock does not work correctly on APUs.  The attached patch fixes that.  As for supporting clocks beyond the default, that is not implemented yet.
Comment 2 Philippe Leblanc 2013-03-19 21:12:57 UTC
Thanks for the quick reply! Pardon my newbiness, but is the patch meant for me? Or is it applied towards the next ati driver release? I've never dealt with a patch before.
Comment 3 Alex Deucher 2013-03-19 22:03:58 UTC
(In reply to comment #2)
> Thanks for the quick reply! Pardon my newbiness, but is the patch meant for
> me? Or is it applied towards the next ati driver release? I've never dealt
> with a patch before.

Yes, it's a kernel patch. It will report the correct current clock in the debugfs pm output.
Comment 4 Martin Peres 2019-11-19 07:40:49 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/63.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.