<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - amdgpu [RX Vega 64] system freeze while gaming"
href="https://bugs.freedesktop.org/show_bug.cgi?id=109955#c131">Comment # 131</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - amdgpu [RX Vega 64] system freeze while gaming"
href="https://bugs.freedesktop.org/show_bug.cgi?id=109955">bug 109955</a>
from <span class="vcard"><a class="email" href="mailto:me@jasondaigo.de" title="Wilko Bartels <me@jasondaigo.de>"> <span class="fn">Wilko Bartels</span></a>
</span></b>
<pre>(In reply to haro41 from <a href="show_bug.cgi?id=109955#c130">comment #130</a>)
<span class="quote">> > >
> > > echo "manual" > /sys/class/drm/card0/device/power_dpm_force_performance_level
> > > echo "1 2 3" > /sys/class/drm/card0/device/pp_dpm_mclk
> > >
> >
> > do you have any suggestion to automate this? so far i can strictly run these
> > commands after su. not even sudo works with scripts running these commands.
> > or systemd files.
>
> Currently i use my patch (see above) to workaround the crashes.
> If you prefer not to touch your kernel, you could create a systemd service:
>
> # cat /etc/systemd/system/amd-pp.service:
>
> [Unit]
> Description=AMD PP adjust service
> [Service]
> User=root
> Group=root
> GuessMainPID=no
> ExecStart=/srv/amdgpu-pp.sh
> [Install]
> WantedBy=multi-user.target
> ---------------------------------------------------------------
> # cat /srv/amdgpu-pp.sh:
>
> #!/bin/bash
> echo "manual" > /sys/class/drm/card0/device/power_dpm_force_performance_level
> echo "1 2 3" > /sys/class/drm/card0/device/pp_dpm_mclk
> ---------------------------------------------------------------
> #systemctl enable amd-pp.service
> #systemctl start amd-pp.service
> ---------------------------------------------------------------
>
> ... assuming you have 'amdgpu.ppfeaturemask=0xffffffff' set ...</span >
Thank you. I already tried exactly that. And the unit unable to autostart
(permission denied). Only manual systemctl start works. Dont know why.
I would try to patch the kernel instead if i had any clue how to do the steps.</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>