<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 - vega56 undervolting/overclocking voltage issues"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109887">109887</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>vega56 undervolting/overclocking voltage issues
          </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>kgkggl+bugs.freedesktop.org@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=143547" name="attach_143547" title="dmesg output">attachment 143547</a> <a href="attachment.cgi?id=143547&action=edit" title="dmesg output">[details]</a></span>
dmesg output

I overwrite "pp_od_clk_voltage" to control the voltage, but I have a problem.

The GPU voltage represents the value of
"/sys/class/drm/card0/device/hwmon/hwmon0/in0_input"

If I set "pp_od_clk_voltage" before starting Xorg/compton/WM, the GPU voltage
will be locked at 1200mv.
If I set "pp_od_clk_voltage" after starting Xorg/compton/WM, the GPU is locked
to 1200mv after a heavy load.

Unless I set "echo c > /sys/class/drm/card0/device/pp_od_clk_voltage" again,
the idle voltage will return to 900-950mv.But still higher than the set value.

Then we have a new problem.I can't control the "P7" voltage by setting
"pp_od_clk_voltage". The value in "pp_od_clk_voltage" can be changed, but the
reading is always 1200mv when the GPU jumps to "P7".

I set "P6" and "P7" to the same value to prevent the GPU from jumping to "P7"

My "pp_od_clk_voltage" setting:
OD_SCLK:
0:        852Mhz        800mV
1:        974Mhz        825mV
2:       1096Mhz        850mV
3:       1218Mhz        875mV
4:       1340Mhz        900mV
5:       1462Mhz        925mV
6:       1584Mhz        950mV
7:       1584Mhz        950mV
OD_MCLK:
0:        167Mhz        800mV
1:        500Mhz        800mV
2:        700Mhz        900mV
3:        800Mhz        950mV
OD_RANGE:
SCLK:     852MHz       2400MHz
MCLK:     167MHz       1500MHz
VDDC:     800mV        1200mV

Default "pp_od_clk_voltage" setting
OD_SCLK:
0:        852Mhz        800mV
1:        991Mhz        900mV
2:       1138Mhz        950mV
3:       1269Mhz       1000mV
4:       1312Mhz       1050mV
5:       1474Mhz       1100mV
6:       1538Mhz       1150mV
7:       1590Mhz       1200mV
OD_MCLK:
0:        167Mhz        800mV
1:        500Mhz        800mV
2:        700Mhz        900mV
3:        800Mhz        950mV
OD_RANGE:
SCLK:     852MHz       2400MHz
MCLK:     167MHz       1500MHz
VDDC:     800mV        1200mV

RYZEN 1700
MSI B350M MORTAR
PowerColor Radeon RX Vega 56

Linux 5.0.0-arch1-1-ARCH #1 SMP PREEMPT Mon Mar 4 14:11:43 UTC 2019 x86_64
GNU/Linux

Thanks!</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>