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 table. On Linux, the PowerPlay table is by default
found at: /sys/class/drm/card0/device/pp_table
.
Requirements
Python 2.7 or 3.6+, click library. Optionally, for reading "soft" PowerPlay table from Windows registry: python-registry. Should work on Windows as well (testers wanted).
Usage
At its current form this is a CLI only tool. Getting help:
Usage: upp [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 tables". On Linux, the PowerPlay table is by
default found at:
/sys/class/drm/card0/device/pp_table
There are also two alternative ways of getting PowerPlay data that this
tool supports:
- By extracting PowerPlay table from Video ROM image (see extract command)
- Import "Soft PowerPlay" table from Windows registry, directly from
offline Windows/System32/config/SYSTEM file on disk, so it would work
from Linux distro that has acces to mounted Windows partition
(path to SYSTEM registry file is specified with --from-registry option)
This tool currently supports parsing and modifying PowerPlay tables found
on the following AMD GPU families:
- Polaris
- Vega
- Radeon VII
- Navi 10
- Navi 14
Note: iGPUs found in many recent AMD APUs are using completely different
PowerPlay control methods, this tool does not support them.
If you have bugs to report or features to request please check:
github.com/sibradzic/upp
Options:
-p, --pp-file <filename> Input/output PP table binary file.
-f, --from-registry <filename> Import PP_PhmSoftPowerPlayTable from Windows
registry (overrides -p / --pp-file option).
-d, --debug / --no-debug Debug mode.
-h, --help Show this message and exit.
Commands:
dump Dumps all PowerPlay parameters to console.
extract Extract PowerPlay table from Video BIOS ROM image.
get Get current value of a PowerPlay parameter(s).
set Set value to PowerPlay parameter(s).
Dumping all data:
Usage: upp dump [OPTIONS]
Dump all PowerPlay data to console
De-serializes PowerPlay binary data into a human-readable text output. For
example:
upp --pp-file=radeon.pp_table dump
In standard mode all data will be dumped to console, where data tree
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 / --no-raw Show raw binary data.
-h, --help Show this message and exit.
Extracting PowerPlay table from Video ROM image:
Usage: upp extract [OPTIONS]
Extracts PowerPlay data from full VBIOS ROM image
The source video ROM binary must be specified with -r/--video-rom
parameter, and extracted PowerPlay table will be saved into file specified
with -p/--pp-file. For example:
upp --pp-file=extracted.pp_table extract -r VIDEO.rom
Default output file name will be an original ROM file name with an
additional .pp_table extension.
Options:
-r, --video-rom <filename> Input Video ROM binary image file [required].
-h, --help Show this message and exit.
Getting parameter:
Usage: upp get [OPTIONS] VARIABLE_PATH_SET...
Retrieves current value of one or multiple PP parameters
The parameter variable path must be specified in "/<param> notation", for
example:
upp get /FanTable/TargetTemperature /VddgfxLookupTable/7/Vdd
The raw value of the parameter will be retrieved, decoded and displayed on
console. Multiple PP parameters can be specified at the same time.
Options:
-h, --help Show this message and exit.
Setting parameters:
Usage: upp set [OPTIONS] VARIABLE_PATH_SET...
Sets value to one or multiple PP parameters
The parameter path and value must be specified in "/<param>=<value>
notation", for example:
upp set /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.
Optionally, if --to-reg output is used an additional Windows registry
format file will be generated, named same as PowerPlay output target
filename with an additional '.reg' extension.
Options:
-t, --to-reg Save output to Windows registry .reg file as well.
-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.7.tar.gz
.
File metadata
- Download URL: upp-0.0.7.tar.gz
- Upload date:
- Size: 50.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef5025c8deaba8b5fc75676ee11d76d7e5c3a8d5c846c7ed692203ff26c570d7 |
|
MD5 | 8be1f2ef8ae727082718f9ac3a0f5fb8 |
|
BLAKE2b-256 | 651ce5c259a8da7595fd8d1aaa945c3902eaa17440645d54c89082b4198a1e58 |
Provenance
File details
Details for the file upp-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: upp-0.0.7-py3-none-any.whl
- Upload date:
- Size: 65.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8860fe86b6fd911fa3ffc6464b4c95b693565dead6a89a12af23722071f08955 |
|
MD5 | 0b76e1be35302564ffd0bdd0a148481f |
|
BLAKE2b-256 | 7cbd89578c60f6ef7e97d5b200aca9d4197c26522babe66a24a2dac2565817ce |