<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Can't successfully set pstates in pp_od_clk_voltage"
href="https://bugs.freedesktop.org/show_bug.cgi?id=106188#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Can't successfully set pstates in pp_od_clk_voltage"
href="https://bugs.freedesktop.org/show_bug.cgi?id=106188">bug 106188</a>
from <span class="vcard"><a class="email" href="mailto:alexdeucher@gmail.com" title="Alex Deucher <alexdeucher@gmail.com>"> <span class="fn">Alex Deucher</span></a>
</span></b>
<pre>(In reply to tempel.julian from <a href="show_bug.cgi?id=106188#c0">comment #0</a>)
<span class="quote">> Hello,
> I specified "amdgpu.ppfeaturemask=0xffffffff" 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.
>
> 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".
> </span >
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
<span class="quote">> However, the change is not applied. When I do "cat
> /sys/class/drm/card0/device/pp_od_clk_voltage", it still says "7:
> 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)
> ".
>
> Am I making a mistake somewhere or should it work like this?
>
> 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.</span >
You have to set manual mode before you can manually edit the state. You also
have to be root (or have permission) to write to these files.
<span class="quote">> In the documentation, I read that pp_od_clk_voltage should also include
> OD_range, but it's not there for me.</span >
The patch is on the mailing list, but hasn't been committed yet.
<a href="https://patchwork.freedesktop.org/patch/217812/">https://patchwork.freedesktop.org/patch/217812/</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>