From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows Date: Thu, 03 May 2018 12:15:16 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0262781808==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id ACB9D89D46 for ; Thu, 3 May 2018 12:15:16 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0262781808== Content-Type: multipart/alternative; boundary="15253497160.ad648206B.5652" Content-Transfer-Encoding: 7bit --15253497160.ad648206B.5652 Date: Thu, 3 May 2018 12:15:16 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D106374 Bug ID: 106374 Summary: feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows Product: DRI Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: tempel.julian@gmail.com On Windows, the Wattman driver functionality allows to both increase and decrease the GPU power consumption to either 150% or 50% (100% +/- 50%). There already is such functionality implemented on Linux for the decrease p= art. "cat /sys/class/drm/card0/device/hwmon/hwmon0/power1_cap" returns "48000000" for my RX 560, which is the allowed maximum GPU power consumption of 48W. I can successfully set lower values like e.g. "echo 30000000 > /sys/class/drm/card0/device/hwmon/hwmon0/power1_cap" to set maximum GPU pow= er consumption to 30W. However, unlike on Windows with Wattman, it's not possible that I can set higher values than "48000000" to increase the maximum allowed power consumption. For instance, already "echo 49000000 > /sys/class/drm/card0/device/hwmon/hwmon0/power1_cap", which is just 1W above 48W, is forbidden, it just returns "invalid value". On Windows, Wattman allows setting GPU power consumption to 72W (150%) for = my RX 560. Additionally to "/sys/class/drm/card0/device/hwmon/hwmon0/power1_cap", there also is "/sys/class/drm/card0/device/hwmon/hwmon0/power1_cap_max". "cat /sys/class/drm/card0/device/hwmon/hwmon0/power1_cap_max" returns "48000000" as well for my card. However, the value has no setter: https://cgit.freedesktop.org/~agd5f/linux/tree/drivers/gpu/drm/amd/amdgpu/a= mdgpu_pm.c?h=3Ddrm-next-4.18-wip#n1336 Unlike power1_cap, which has amdgpu_hwmon_set_power_cap() as a setter and t= hus can be adjusted by the user. So, power1_cap_max is read only. To conclude: There is no way implemented for the user to increase the maxim= um allowed power consumption. It would be nice if this would be implemented, as it basically is the only missing piece to adjust the GPU's performance like with Wattman on Windows. --=20 You are receiving this mail because: You are the assignee for the bug.= --15253497160.ad648206B.5652 Date: Thu, 3 May 2018 12:15:16 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 106374
Summary feature request: allow increasing maxium GPU power consumptio= n like implemented in Wattman on Windows
Product DRI
Version unspecified
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component DRM/AMDgpu
Assignee dri-devel@lists.freedesktop.org
Reporter tempel.julian@gmail.com

On Windows, the Wattman driver functionality allows to both in=
crease and
decrease the GPU power consumption to either 150% or 50% (100% +/- 50%).
There already is such functionality implemented on Linux for the decrease p=
art.
"cat /sys/class/drm/card0/device/hwmon/hwmon0/power1_cap" returns=
 "48000000"
for my RX 560, which is the allowed maximum GPU power consumption of 48W.
I can successfully set lower values like e.g. "echo 30000000 >
/sys/class/drm/card0/device/hwmon/hwmon0/power1_cap" to set maximum GP=
U power
consumption to 30W.

However, unlike on Windows with Wattman, it's not possible that I can set
higher values than "48000000" to increase the maximum allowed pow=
er
consumption.
For instance, already "echo 49000000 >
/sys/class/drm/card0/device/hwmon/hwmon0/power1_cap", which is just 1W=
 above
48W, is forbidden, it just returns "invalid value".
On Windows, Wattman allows setting GPU power consumption to 72W (150%) for =
my
RX 560.

Additionally to "/sys/class/drm/card0/device/hwmon/hwmon0/power1_cap&q=
uot;, there
also is "/sys/class/drm/card0/device/hwmon/hwmon0/power1_cap_max".
"cat /sys/class/drm/card0/device/hwmon/hwmon0/power1_cap_max" ret=
urns
"48000000" as well for my card.
However, the value has no setter:
https://cgit.freedesktop=
.org/~agd5f/linux/tree/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c?h=3Ddrm-next-=
4.18-wip#n1336
Unlike power1_cap, which has amdgpu_hwmon_set_power_cap() as a setter and t=
hus
can be adjusted by the user. So, power1_cap_max is read only.

To conclude: There is no way implemented for the user to increase the maxim=
um
allowed power consumption.
It would be nice if this would be implemented, as it basically is the only
missing piece to adjust the GPU's performance like with Wattman on Windows.=


You are receiving this mail because:
  • You are the assignee for the bug.
= --15253497160.ad648206B.5652-- --===============0262781808== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0262781808==--