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 15:04:04 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1554141136==" 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 EB30389E8C for ; Mon, 23 Apr 2018 15:04:03 +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 --===============1554141136== Content-Type: multipart/alternative; boundary="15244958430.40ac9.9496" Content-Transfer-Encoding: 7bit --15244958430.40ac9.9496 Date: Mon, 23 Apr 2018 15:04:03 +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 #1 from Alex Deucher --- (In reply to tempel.julian from comment #0) > Hello, > I specified "amdgpu.ppfeaturemask=3D0xffffffff" as a boot parameter so I = could > access "/sys/class/drm/card0/device/pp_od_clk_voltage". > The pstate table for source and memory clocks looks correct. >=20 > When I run "echo "s 7 1209 900" > /sys/class/drm/card0/device/pp_od_clk_voltage", it returns "s 7 1209 900 > /sys/class/drm/card0/device/pp_od_clk_voltage". > When I run "echo "c" /sys/class/drm/card0/device/pp_od_clk_voltage" > afterwards, it returns "c /sys/class/drm/card0/device/pp_od_clk_voltage". >=20 Are you redirecting to the file? Something like the following should work: echo "s 7 1209 900" > /sys/class/drm/card0/device/pp_od_clk_voltage > However, the change is not applied. When I do "cat > /sys/class/drm/card0/device/pp_od_clk_voltage", it still says "7:=20=20= =20=20=20=20 > 1196Mhz 1006 mV". > And when I run "watch -n 0.5 cat /sys/kernel/debug/dri/0/amdgpu_pm_info", > it reports > " 1196 MHz (SCLK) > 981 mV (VDDGFX) > ". >=20 > Am I making a mistake somewhere or should it work like this? >=20 > I also tried "echo "manual" > > /sys/class/drm/card0/device/power_dpm_force_performance_level" and setting > pstates 5-7, but that didn't help either. You have to set manual mode before you can manually edit the state. You al= so have to be root (or have permission) to write to these files. > In the documentation, I read that pp_od_clk_voltage should also include > OD_range, but it's not there for me. The patch is on the mailing list, but hasn't been committed yet. https://patchwork.freedesktop.org/patch/217812/ --=20 You are receiving this mail because: You are the assignee for the bug.= --15244958430.40ac9.9496 Date: Mon, 23 Apr 2018 15:04:03 +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 # 1 on bug 10618= 8 from Alex Deucher
(In reply to tempel.julian from comment #0)
> Hello,
> I specified "amdgpu.ppfeaturemask=3D0xffffffff" as a boot pa=
rameter so I could
> access "/sys/class/drm/card0/device/pp_od_clk_voltage".
> The pstate table for source and memory clocks looks correct.
>=20
> When I run "echo "s 7 1209 900"
> /sys/class/drm/card0/device/pp_od_clk_voltage", it returns "=
s 7 1209 900
> /sys/class/drm/card0/device/pp_od_clk_voltage".
> When I run "echo "c" /sys/class/drm/card0/device/pp_od_=
clk_voltage"
> afterwards, it returns "c /sys/class/drm/card0/device/pp_od_clk_v=
oltage".
> 

Are you redirecting to the file? Something like the following should work:
echo "s 7 1209 900" > /sys/class/drm/card0/device/pp_od_clk_vo=
ltage


> However, the change is not applied. When I do &q=
uot;cat
> /sys/class/drm/card0/device/pp_od_clk_voltage", it still says &qu=
ot;7:=20=20=20=20=20=20
> 1196Mhz       1006 mV".
> And when I run "watch -n 0.5  cat /sys/kernel/debug/dri/0/amdgpu_=
pm_info",
> it reports
> "       1196 MHz (SCLK)
>         981 mV (VDDGFX)
> ".
>=20
> Am I making a mistake somewhere or should it work like this?
>=20
> I also tried "echo "manual" >
> /sys/class/drm/card0/device/power_dpm_force_performance_level" an=
d setting
> pstates 5-7, but that didn't help either.

You have to set manual mode before you can manually edit the state.  You al=
so
have to be root (or have permission) to write to these files.

> In the documentation, I read that pp_od_clk_volt=
age should also include
> OD_range, but it's not there for me.

The patch is on the mailing list, but hasn't been committed yet.
https://patchwo=
rk.freedesktop.org/patch/217812/


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