From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106188] Can't successfully set pstates in pp_od_clk_voltage Date: Mon, 23 Apr 2018 16:12:25 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0846357707==" 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 F077E8982E for ; Mon, 23 Apr 2018 16:12:24 +0000 (UTC) In-Reply-To: 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 --===============0846357707== Content-Type: multipart/alternative; boundary="15244999440.4Cd9.25238" Content-Transfer-Encoding: 7bit --15244999440.4Cd9.25238 Date: Mon, 23 Apr 2018 16:12:24 +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=3D106188 --- Comment #2 from tempel.julian@gmail.com --- Thanks for your response. I somehow forgot the missing ">", whoops. I now almost got it working like desired, thanks! However, there is a small problem left: It doesn't switch into pstate 7. I set up: echo "manual" > /sys/class/drm/card0/device/power_dpm_force_performance_lev= el echo "s 0 214 721" > /sys/class/drm/card0/device/pp_od_clk_voltage echo "s 1 389 721" > /sys/class/drm/card0/device/pp_od_clk_voltage echo "s 2 844 725" > /sys/class/drm/card0/device/pp_od_clk_voltage echo "s 3 1009 818" > /sys/class/drm/card0/device/pp_od_clk_voltage echo "s 4 1079 875" > /sys/class/drm/card0/device/pp_od_clk_voltage echo "s 5 1134 880" > /sys/class/drm/card0/device/pp_od_clk_voltage echo "s 6 1179 890" > /sys/class/drm/card0/device/pp_od_clk_voltage echo "s 7 1209 900" > /sys/class/drm/card0/device/pp_od_clk_voltage echo "c" > /sys/class/drm/card0/device/pp_od_clk_voltage But according to /sys/kernel/debug/dri/0/amdgpu_pm_info, pstate 6 (1179 890= ) is the maximum of chosen clocks. I set up Unigine Valley to run in 720p with 8xMSAA, so there is no high pow= er consumption which could make the GPU throttle down to a lower state, so it definitely should switch to pstate 7. I also tried making s 7 and s 6 the same, but then it's just limited to an = even lower pstate. So I fail to get to my desired 1209MHz 900mV. It also seems like setting up power_dpm_force_performance_level to manual i= sn't actually required, at least it doesn't make any difference here (or I'm mis= sing something). Btw: Since I'm already bugging you with this :) : Is there a way to also increase the maximum allowed power consumption? There are /sys/class/drm/card0/device/hwmon/hwmon0/power1_cap and /sys/class/drm/card0/device/hwmon/hwmon0/power1_cap_max containing the maxi= mum ASIC power (at least it looks to me that way), but I haven't been able to successfully alter those to e.g. raise the limit of my Baffin GPU to 60 Wat= ts. --=20 You are receiving this mail because: You are the assignee for the bug.= --15244999440.4Cd9.25238 Date: Mon, 23 Apr 2018 16:12:24 +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

Commen= t # 2 on bug 10618= 8 from tempel.j= ulian@gmail.com
Thanks for your response.

I somehow forgot the missing ">", whoops. I now almost got it =
working like
desired, thanks!

However, there is a small problem left: It doesn't switch into pstate 7.
I set up:
echo "manual" > /sys/class/drm/card0/device/power_dpm_force_pe=
rformance_level

echo "s 0 214 721" > /sys/class/drm/card0/device/pp_od_clk_vol=
tage
echo "s 1 389 721" > /sys/class/drm/card0/device/pp_od_clk_vol=
tage
echo "s 2 844 725" > /sys/class/drm/card0/device/pp_od_clk_vol=
tage
echo "s 3 1009 818" > /sys/class/drm/card0/device/pp_od_clk_vo=
ltage
echo "s 4 1079 875" > /sys/class/drm/card0/device/pp_od_clk_vo=
ltage
echo "s 5 1134 880" > /sys/class/drm/card0/device/pp_od_clk_vo=
ltage
echo "s 6 1179 890" > /sys/class/drm/card0/device/pp_od_clk_vo=
ltage
echo "s 7 1209 900" > /sys/class/drm/card0/device/pp_od_clk_vo=
ltage

echo "c" > /sys/class/drm/card0/device/pp_od_clk_voltage

But according to /sys/kernel/debug/dri/0/amdgpu_pm_info, pstate 6 (1179 890=
) is
the maximum of chosen clocks.
I set up Unigine Valley to run in 720p with 8xMSAA, so there is no high pow=
er
consumption which could make the GPU throttle down to a lower state, so it
definitely should switch to pstate 7.

I also tried making s 7 and s 6 the same, but then it's just limited to an =
even
lower pstate. So I fail to get to my desired 1209MHz 900mV.

It also seems like setting up power_dpm_force_performance_level to manual i=
sn't
actually required, at least it doesn't make any difference here (or I'm mis=
sing
something).


Btw: Since I'm already bugging you with this :) :
Is there a way to also increase the maximum allowed power consumption?
There are /sys/class/drm/card0/device/hwmon/hwmon0/power1_cap and
/sys/class/drm/card0/device/hwmon/hwmon0/power1_cap_max containing the maxi=
mum
ASIC power (at least it looks to me that way), but I haven't been able to
successfully alter those to e.g. raise the limit of my Baffin GPU to 60 Wat=
ts.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15244999440.4Cd9.25238-- --===============0846357707== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0846357707==--