From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 96487] Cannot force power_dpm_force_performance_level to high Date: Fri, 10 Jun 2016 22:36:16 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1206838103==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 478886E11E for ; Fri, 10 Jun 2016 22:36:16 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1206838103== Content-Type: multipart/alternative; boundary="14655981760.5BaAe9Cf3.18714"; charset="UTF-8" --14655981760.5BaAe9Cf3.18714 Date: Fri, 10 Jun 2016 22:36:16 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D96487 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=3D124464&action=3Dedit 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/L= inux I thought my problem was perhaps a duplicate of https://bugs.freedesktop.org/show_bug.cgi?id=3D70654 but I'm pretty sure th= at 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 ena= bled 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 th= at 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: =CE=BB 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 j= ump between modes [335/490/655]MHz depending on the load. I would obviously lik= e to be able to set a single mode and have a constant frequency. If I can set 65= 5MHz 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 state= s 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 permanent= ly 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 highe= st 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. --=20 You are receiving this mail because: You are the assignee for the bug.= --14655981760.5BaAe9Cf3.18714 Date: Fri, 10 Jun 2016 22:36:16 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
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 [details]=

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/L=
inux

I thought my problem was perhaps a duplicate of
https://bugs.freedesktop.org/show_bug.c=
gi?id=3D70654 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 ena=
bled
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 th=
at
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:


=CE=BB 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 j=
ump
between modes [335/490/655]MHz depending on the load. I would obviously lik=
e to
be able to set a single mode and have a constant frequency. If I can set 65=
5MHz
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 state=
s 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 permanent=
ly
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 highe=
st
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.
= --14655981760.5BaAe9Cf3.18714-- --===============1206838103== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1206838103==--