All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows
@ 2018-05-03 12:15 bugzilla-daemon
  2018-05-09  4:48 ` bugzilla-daemon
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bugzilla-daemon @ 2018-05-03 12:15 UTC (permalink / raw)
  To: dri-devel


[-- 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows
  2018-05-03 12:15 [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows bugzilla-daemon
@ 2018-05-09  4:48 ` bugzilla-daemon
  2018-05-09 18:28 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2018-05-09  4:48 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 575 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=106374

--- Comment #1 from Alex Deucher <alexdeucher@gmail.com> ---
It is implemented.  power1_cap_min/max are RO.  They define the range of values
that are valid for power.  The OEM defines the range and the information is
stored in tables in the vbios.  The driver uses that to set the range of valid
values.  My understanding is that windows does the same thing.  I'll see if I
can find out why you are seeing a different limit on windows.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1464 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows
  2018-05-03 12:15 [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows bugzilla-daemon
  2018-05-09  4:48 ` bugzilla-daemon
@ 2018-05-09 18:28 ` bugzilla-daemon
  2018-06-16 13:52 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2018-05-09 18:28 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 413 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=106374

--- Comment #2 from tempel.julian@gmail.com ---
I suppose the Windows Wattman doesn't consider the values defined by the OEM
and instead always allows +75% (not 50% as I mentioned before) on top of the
card's value that is defined for 100%:
https://abload.de/img/759nu06.png

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1336 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows
  2018-05-03 12:15 [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows bugzilla-daemon
  2018-05-09  4:48 ` bugzilla-daemon
  2018-05-09 18:28 ` bugzilla-daemon
@ 2018-06-16 13:52 ` bugzilla-daemon
  2018-10-04 17:33 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2018-06-16 13:52 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 561 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=106374

--- Comment #3 from tempel.julian@gmail.com ---
I had a Sapphire RX 580 Nitro installed instead of my MSI RX 560 Aero.
The Sapphire card offers two bioses. Under Windows, one allows increasing power
up 20%, the other bios up to 50%.
Under Linux, power1_cap_max always showed just the 100% ASIC power value with
both bioses. So it seems reading out the max values from the bios just doesn't
work with the "Linux Wattman"?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1446 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows
  2018-05-03 12:15 [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows bugzilla-daemon
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2018-10-04 17:33 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 401 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=106374

--- Comment #4 from Hugo Sánchez <hugosv.mlg@gmail.com> ---
I am having the same issue. That is a big problem cause GPU cannot reach its
max power. A RX Vega 64 for example can consume around 300w with OC and the
220w is causing frame drops in the case of games.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1290 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows
  2018-05-03 12:15 [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows bugzilla-daemon
                   ` (3 preceding siblings ...)
  2018-10-04 17:33 ` bugzilla-daemon
@ 2018-10-24 20:10 ` bugzilla-daemon
  2018-10-24 20:23 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2018-10-24 20:10 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 398 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=106374

--- Comment #5 from tempel.julian@gmail.com ---
It got implemented into 4.21 WIP kernel:
https://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-next-4.21-wip&id=f7becf9a0803030ae125189823328e2d62b90f7b

I can confirm it works, big thanks @ Joseph Greathouse!

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1413 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows
  2018-05-03 12:15 [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows bugzilla-daemon
                   ` (4 preceding siblings ...)
  2018-10-24 20:10 ` bugzilla-daemon
@ 2018-10-24 20:23 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2018-10-24 20:23 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 431 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=106374

Alex Deucher <alexdeucher@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1312 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-10-24 20:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-03 12:15 [Bug 106374] feature request: allow increasing maxium GPU power consumption like implemented in Wattman on Windows bugzilla-daemon
2018-05-09  4:48 ` 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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.