Coder Social home page Coder Social logo

amezin / amdgpu-pptable Goto Github PK

View Code? Open in Web Editor NEW
27.0 5.0 3.0 523 KB

A Python library that maps amdgpu powerplay tables to ctypes structs. Qt GUI moved to its own repo: https://github.com/amezin/amdgpu-pptable-editor-qt

License: MIT License

Python 100.00%
amdgpu powerplay radeon linux

amdgpu-pptable's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

bengt rdugan wsy2220

amdgpu-pptable's Issues

jsonpatch editor

Currently you can convert the table to json file.
Editing the table using jsonpatch will logically complement it and will allow usage from scripts.

UnknownTableRevision: 6 on AMD Stoney

FWIW the following device in my ASUS laptop

00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] (rev da)

isn't supported. Trying to dump the pptable gives the following error:

amdgpu_pptable.version_detect.UnknownTableRevision: 6

This seems to be older than ATOM_Tonga_TABLE_REVISION_TONGA = 7. I have checked and it looks like this revision not defined in the kernel sources at all, so it'll be difficult or impossible to support.

Navi support

I still haven't bought 5700 XT

If anybody wants Navi support, please provide your /sys/class/drm/card*/device/pp_table together with reference data (stock clocks, voltages, fan speed curve, etc)

Enums and flags

Some values are bitfields or enumerations (effectively, but all constants are defined as preprocessor definitions).

Scanning the code for bitwise ands/ors and comparisons of struct fields and these constants should give possible enum values or flags. Then raw ctypes structs (generated by ctypeslib) could be somehow decorated with this information (substitute the field in fields with new enum/flag field?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.