<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 - Used pwm value is lesser than the requested value"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=110213">110213</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Used pwm value is lesser than the requested value
          </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>jpalaciosdev@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=143743" name="attach_143743" title="dmesg">attachment 143743</a> <a href="attachment.cgi?id=143743&action=edit" title="dmesg">[details]</a></span>
dmesg

On manual fan control through pwm interface, the used value on pwm1 is lesser
that the requested value (except for maximum).
For example:
echo 1 > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1_enable

echo 10 > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
cat /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
5

echo 100 > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
cat /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
96

echo 254 > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
cat /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
249

The maximum value works as expected:
echo 255 > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
cat /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
255

Other info:
Hardware: MSI RX480 Gaming (Polaris)
Kernel: linux 5.0.2

Please, let me know if more info is needed.
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>