Summary: | [patch] Radeon clocks should not be limited to defaults | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | DRI | Reporter: | Antti Lahtinen <ahlaht> | ||||||||
Component: | DRM/Radeon | Assignee: | Default DRI bug account <dri-devel> | ||||||||
Status: | RESOLVED WONTFIX | QA Contact: | |||||||||
Severity: | normal | ||||||||||
Priority: | medium | CC: | darkbasic, randrik | ||||||||
Version: | unspecified | ||||||||||
Hardware: | Other | ||||||||||
OS: | Linux (All) | ||||||||||
Whiteboard: | |||||||||||
i915 platform: | i915 features: | ||||||||||
Attachments: |
|
Description
Antti Lahtinen
2011-07-02 11:41:29 UTC
Created attachment 48693 [details]
power states by radeon_pm_print_states
There's no infrastructure in place yet to automatically lower clocks if the temperature gets to a critical level so we limit the clocks to the boot up levels for now. On most systems the boot clocks are much closer to the performance clocks. Created attachment 49237 [details] [review] Add power_table in /sys Here is an another patch I was asked to send. It unfortunately does not add temperature monitoring, but it allows the user to remove the limit optionally. It adds two new files in /sys/class/drm/card0/device: power_table and allow_overclocking. power_table contains the system specific list of power states and some extra information. The whole file or just parts of it can be written back to change some of the values run-time. These 5 values can be changed on each clock mode: - RADEON_PM_MODE_NO_DISPLAY (It may be useful to remove this flag to enable the lowest clock mode for dynpm.) - engine clock - memory clock - vddc - vddci The changes actually done are printed to dmesg. Currently the power state is not automatically reset after a change has been made. This must be done manually by switching to another clock mode temporarily: echo high > /sys/class/drm/card0/device/power_profile echo mid > /sys/class/drm/card0/device/power_profile For safety the clock rates and voltages can not be set to unlimited values by default. The safety checks can be disabled with: echo 1 > /sys/class/drm/card0/device/allow_overclocking (This should also be done on systems affected by this bug.) Of course incorrect combinations of clock rates and voltage can still crash the system even with the checks enabled, but hopefully without permanent damage. This new patch should not change the default behavior in any way other than printing an error if the boot up clocks appear to be low. As of linux 3.11 there is additional power management infrastructure for radeons: http://www.botchco.com/agd5f/?p=57 Does that change anything wrt the here required functionality respectively this bug report? Shouldn't this be resolved by new dpm method? Yes indeed, this bug report is superfluous now to do DPM. |
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.