From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.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 [thread overview]
Message-ID: <bug-106374-502@http.bugs.freedesktop.org/> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2415 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=106374
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 part.
"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 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 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/amdgpu_pm.c?h=drm-next-4.18-wip#n1336
Unlike power1_cap, which has amdgpu_hwmon_set_power_cap() as a setter and thus
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 maximum
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.
[-- Attachment #1.2: Type: text/html, Size: 3975 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2018-05-03 12:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-03 12:15 bugzilla-daemon [this message]
2018-05-09 4:48 ` [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows bugzilla-daemon
2018-05-09 18:28 ` bugzilla-daemon
2018-06-16 13:52 ` bugzilla-daemon
2018-10-04 17:33 ` bugzilla-daemon
2018-10-24 20:10 ` bugzilla-daemon
2018-10-24 20:23 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-106374-502@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).