<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107141">107141</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/AMDgpu
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>krystian.zajdel@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=140483" name="attach_140483" title="dmesg">attachment 140483</a> <a href="attachment.cgi?id=140483&action=edit" title="dmesg">[details]</a></span>
dmesg

Manual setting of pp_dpm_sclk resets after monitor off/on. 

1.setting:
echo manual > /sys/class/drm/card0/device/power_dpm_force_performance_level
echo 2 > /sys/class/drm/card0/device/pp_dpm_sclk
echo 95 > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1

2. checking:
cat /sys/class/drm/card0/device/pp_dpm_sclk 
0: 300Mhz 
1: 608Mhz 
2: 910Mhz *
3: 1077Mhz 
4: 1145Mhz 
5: 1191Mhz 
6: 1236Mhz 
7: 1303Mhz 

cat /sys/class/drm/card0/device/power_dpm_force_performance_level
manual

cat /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
91

3. switching monitor off/on

4. checking again:
cat /sys/class/drm/card0/device/pp_dpm_sclk 
0: 300Mhz 
1: 608Mhz 
2: 910Mhz 
3: 1077Mhz 
4: 1145Mhz 
5: 1191Mhz 
6: 1236Mhz 
7: 1303Mhz *

cat /sys/class/drm/card0/device/power_dpm_force_performance_level
manual

cat /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
91




The card is under opencl load (blender) but the problem exists regardless of
the load.
So, the dpm_performance_level still says manual but the clock is changed to
auto again.

GPU: rx480 (MSI) connected via DisplayPort (I didn't try HDMI) 
OS: Slackware current
Affected kernels (that I've tried): 4.17.1, 4.17.2, 4.17.3, 4.18rc3,
4.18.0-rc1-custom-g6becad35ec8a-dirty

Kernels that work properly (the ones I've tried): 4.16.14, 4.16.15, 4.16.17.


It's my first bug report so I apologize in advance for any mistakes.</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>