* [Bug 96487] Cannot force power_dpm_force_performance_level to high
@ 2016-06-10 22:36 bugzilla-daemon
2016-06-10 22:37 ` bugzilla-daemon
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-06-10 22:36 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 3200 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=96487
Bug ID: 96487
Summary: Cannot force power_dpm_force_performance_level to high
Product: DRI
Version: XOrg git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/Radeon
Assignee: dri-devel@lists.freedesktop.org
Reporter: ltjbour@gmail.com
Created attachment 124464
--> https://bugs.freedesktop.org/attachment.cgi?id=124464&action=edit
Information about the supported gpu states
Linux 4.6.2-1-ARCH #1 SMP PREEMPT Wed Jun 8 08:40:59 CEST 2016 x86_64 GNU/Linux
I thought my problem was perhaps a duplicate of
https://bugs.freedesktop.org/show_bug.cgi?id=70654 but I'm pretty sure that
this isn't the same problem. The problem I'm having is that I can't set the
highest frequency state from my gpu (AMD A8-4500M APU + HD 7640G), in a
consistent and persistent way. And this is regardless of whether uvd is enabled
or not (as I assume this is enabled automatically and I haven't been running
any application that requires it)
In other words I would like to be able to set the dpm level to 'high' so that
it stays in the higher frequency state, but I can't set the
power_dpm_force_performance variable to anything other than 'auto' and 'low'. I
get the following output:
λ echo high | sudo tee
/sys/class/drm/card0/device/power_dpm_force_performance_level
high
tee: /sys/class/drm/card0/device/power_dpm_force_performance_level: Invalid
argument
It turns out that after some testing, I have noticed that it's more stable to
set 'performance' dpm state and force it to 'low', which leaves the GPU
frequency at ~335MHz, than setting it to auto which makes the frequencies jump
between modes [335/490/655]MHz depending on the load. I would obviously like to
be able to set a single mode and have a constant frequency. If I can set 655MHz
permanently that would be ideal.
I've already tried using 'dynpm' and 'profile' modes, but they don't work. I
tried a bunch of times, even enabled/disabled some radeon parameters to see if
they were somehow conflicting but I wasn't able to succesfully change states a
single time. It would permanently stay at 200MHz with either of these two
profile modes set. That left me with the single choice of using 'dpm', as it
was the only mode that was able to at least change the states.
I was told in IRC that the reason I couldn't set the 'high' value permanently
was due to a hardware limitation of Trinity chips. I don't see how this can
possibly be true as I can get this same GPU to be consistently at its highest
frequency state in Windows 8. So if anything this is a limitation of the
driver?
I've attached the kernel info about the available states, the list of radeon
parameters and their values in my system, and the output of /proc/cpuinfo. As
of now I don't know what else to add so feel free to ask for any additional
information, I'll make it available as soon as I can.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 4898 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 96487] Cannot force power_dpm_force_performance_level to high
2016-06-10 22:36 [Bug 96487] Cannot force power_dpm_force_performance_level to high bugzilla-daemon
@ 2016-06-10 22:37 ` bugzilla-daemon
2016-06-10 22:38 ` bugzilla-daemon
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-06-10 22:37 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 306 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=96487
--- Comment #1 from RP <ltjbour@gmail.com> ---
Created attachment 124465
--> https://bugs.freedesktop.org/attachment.cgi?id=124465&action=edit
radeon parameters in use
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1225 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 96487] Cannot force power_dpm_force_performance_level to high
2016-06-10 22:36 [Bug 96487] Cannot force power_dpm_force_performance_level to high bugzilla-daemon
2016-06-10 22:37 ` bugzilla-daemon
@ 2016-06-10 22:38 ` bugzilla-daemon
2016-06-10 22:48 ` bugzilla-daemon
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-06-10 22:38 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 299 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=96487
--- Comment #2 from RP <ltjbour@gmail.com> ---
Created attachment 124466
--> https://bugs.freedesktop.org/attachment.cgi?id=124466&action=edit
cat /proc/cpuinfo
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1204 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 96487] Cannot force power_dpm_force_performance_level to high
2016-06-10 22:36 [Bug 96487] Cannot force power_dpm_force_performance_level to high bugzilla-daemon
2016-06-10 22:37 ` bugzilla-daemon
2016-06-10 22:38 ` bugzilla-daemon
@ 2016-06-10 22:48 ` bugzilla-daemon
2016-06-10 23:52 ` bugzilla-daemon
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-06-10 22:48 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 299 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=96487
--- Comment #3 from RP <ltjbour@gmail.com> ---
Created attachment 124467
--> https://bugs.freedesktop.org/attachment.cgi?id=124467&action=edit
relevant packages
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1204 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 96487] Cannot force power_dpm_force_performance_level to high
2016-06-10 22:36 [Bug 96487] Cannot force power_dpm_force_performance_level to high bugzilla-daemon
` (2 preceding siblings ...)
2016-06-10 22:48 ` bugzilla-daemon
@ 2016-06-10 23:52 ` bugzilla-daemon
2016-06-11 1:28 ` bugzilla-daemon
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-06-10 23:52 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 303 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=96487
--- Comment #4 from RP <ltjbour@gmail.com> ---
Created attachment 124468
--> https://bugs.freedesktop.org/attachment.cgi?id=124468&action=edit
radeon7640g_vbios.rom
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1216 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 96487] Cannot force power_dpm_force_performance_level to high
2016-06-10 22:36 [Bug 96487] Cannot force power_dpm_force_performance_level to high bugzilla-daemon
` (3 preceding siblings ...)
2016-06-10 23:52 ` bugzilla-daemon
@ 2016-06-11 1:28 ` bugzilla-daemon
2016-06-13 16:08 ` bugzilla-daemon
2019-11-19 9:17 ` bugzilla-daemon
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-06-11 1:28 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 302 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=96487
--- Comment #5 from RP <ltjbour@gmail.com> ---
Created attachment 124471
--> https://bugs.freedesktop.org/attachment.cgi?id=124471&action=edit
PCI info for the gpu
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1213 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 96487] Cannot force power_dpm_force_performance_level to high
2016-06-10 22:36 [Bug 96487] Cannot force power_dpm_force_performance_level to high bugzilla-daemon
` (4 preceding siblings ...)
2016-06-11 1:28 ` bugzilla-daemon
@ 2016-06-13 16:08 ` bugzilla-daemon
2019-11-19 9:17 ` bugzilla-daemon
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2016-06-13 16:08 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1460 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=96487
--- Comment #6 from Alex Deucher <alexdeucher@gmail.com> ---
The hardware automatically adjusts the clock speeds on demand based on GPU load
when in auto mode. Trinity/richland chips do not support forcing to high.
>From the driver code in trinity_dpm.c:
int trinity_dpm_force_performance_level(struct radeon_device *rdev,
enum radeon_dpm_forced_level level)
{
struct trinity_power_info *pi = trinity_get_pi(rdev);
struct radeon_ps *rps = &pi->current_rps;
struct trinity_ps *ps = trinity_get_ps(rps);
int i, ret;
if (ps->num_levels <= 1)
return 0;
if (level == RADEON_DPM_FORCED_LEVEL_HIGH) {
/* not supported by the hw */
return -EINVAL;
} else if (level == RADEON_DPM_FORCED_LEVEL_LOW) {
ret = trinity_dpm_n_levels_disabled(rdev, ps->num_levels - 1);
if (ret)
return ret;
} else {
for (i = 0; i < ps->num_levels; i++) {
ret = trinity_dpm_n_levels_disabled(rdev, 0);
if (ret)
return ret;
}
}
rdev->pm.dpm.forced_level = level;
return 0;
}
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2278 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 96487] Cannot force power_dpm_force_performance_level to high
2016-06-10 22:36 [Bug 96487] Cannot force power_dpm_force_performance_level to high bugzilla-daemon
` (5 preceding siblings ...)
2016-06-13 16:08 ` bugzilla-daemon
@ 2019-11-19 9:17 ` bugzilla-daemon
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2019-11-19 9:17 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 804 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=96487
Martin Peres <martin.peres@free.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |MOVED
--- Comment #7 from Martin Peres <martin.peres@free.fr> ---
-- 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/drm/amd/issues/721.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2381 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-11-19 9:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-10 22:36 [Bug 96487] Cannot force power_dpm_force_performance_level to high bugzilla-daemon
2016-06-10 22:37 ` bugzilla-daemon
2016-06-10 22:38 ` bugzilla-daemon
2016-06-10 22:48 ` bugzilla-daemon
2016-06-10 23:52 ` bugzilla-daemon
2016-06-11 1:28 ` bugzilla-daemon
2016-06-13 16:08 ` bugzilla-daemon
2019-11-19 9:17 ` bugzilla-daemon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.