Uplift Power Play
Project description
UPP
UPP: Uplift Power Play
A tool for parsing, dumping and modifying data in Radeon PowerPlay tables
Introduction
UPP is able to parse and modify binary data structures of PowerPlay tables
commonly found on certain AMD Radeon GPUs. Drivers on recent AMD GPUs
allow PowerPlay tables to be dynamically modified on runtime, which may be
known as "soft-PowerPlay" in coin-mining community. On Linux, the PP table
is by default found at: /sys/class/drm/card0/device/pp_table
.
Requirements
Python 2.7 or 3.6+, codecs, collections, struct, click. Should work on Windows as well, but modified table needs to be uploaded to registry instead of sysfs file.
Usage
At its current form this is a CLI only tool. Getting help:
./upp.py -h
Usage: upp.py [OPTIONS] COMMAND [ARGS]...
UPP: Uplift Power Play
A tool for parsing, dumping and modifying data in Radeon PowerPlay tables.
UPP is able to parse and modify binary data structures of PowerPlay tables
commonly found on certain AMD Radeon GPUs. Drivers on recent AMD GPUs
allow PowerPlay tables to be dynamically modified on runtime, which may be
known as "soft-PowerPlay" in coin-mining community. On Linux, the PP table
is by default found at:
/sys/class/drm/card0/device/pp_table
This tool currently supports reading and modifying PowerPlay tables found
on the following AMD GPU families:
- Polaris
- Vega
- Radeon VII
- Navi 10 & 14
Note: iGPUs found in many recent AMD APUs are using completely different
PowerPlay control methods, this tool does not support them.
I you have bugs to report or features to request please check:
github.com/sibradzic/upp
Options:
-i, --input-file TEXT Path to PP table binary file
-d, --debug Debug mode
-h, --help Show this message and exit.
Commands:
dump Dumps all PowerPlay parameters to console
get Gets current value of a particular PP parameter
set Sets values to PP parameters
Dumping all data:
$ ./upp.py dump -h
Usage: upp.py dump [OPTIONS]
Dumps all PowerPlay data to console
De-serializes PowerPlay binary data into a Python dictionary.
In standard mode all data will be dumped to console, where data hierarchy
is indicated by indentation.
In raw mode a table showing all hex and binary data, as well as variable
names and values, will be dumped.
Options:
-r, --raw Show raw binary data
-h, --help Show this message and exit.
Getting single parameter:
$ ./upp.py get -h
Usage: upp.py get [OPTIONS] VARIABLE_PATH
Retrieves current value of a particular PP parameter
The parameter variable path must be specified in "/<param> notation", for
example:
/FanTable/TargetTemperature
/VddgfxLookupTable/0/Vdd
The raw value of the parameter will be retrieved, decoded and displayed on
console.
Options:
-h, --help Show this message and exit.
Setting parameters:
$ ./upp.py set -h
Usage: upp.py set [OPTIONS] VARIABLE_PATH_SET...
Sets values to one or multiple PP parameters
The parameter path and value must be specified in "/<param>=<value>
notation", for example:
/PowerTuneTable/TDP=75 /SclkDependencyTable/7/Sclk=107000
Multiple PP parameters can be set at the same time. The PP tables will not
be changed unless additional --write option is set.
Options:
-w, --write Write changes to PP binary
-h, --help Show this message and exit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file upp-0.0.2.tar.gz
.
File metadata
- Download URL: upp-0.0.2.tar.gz
- Upload date:
- Size: 48.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 947f1053ddbfb2c411e8c67238ba81bef55099fdb357e54602e1655bf22f0177 |
|
MD5 | ab7305dc5eb5acea5c293806bd36f55e |
|
BLAKE2b-256 | 0e85dc86cc4716451341bc2cb49a1e2db2ed3a1db1f00bfa5ea46188c7be4cc7 |
Provenance
File details
Details for the file upp-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: upp-0.0.2-py3-none-any.whl
- Upload date:
- Size: 63.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 449cce27b1edfeea2f8a61f8b8230b0962f7b3ba5dc12bdf24a1020145efcec1 |
|
MD5 | 41e946c0d2d4794c63ac2f0b94e1a0ce |
|
BLAKE2b-256 | 065523543d2767cbcfb08efb9fad658a904631667dbc0d468f51a6519d92df6f |