Repository navigation
api: add per-core table offsets for Phoenix (0x4C0008) - #417
Open
plastininikolay wants to merge 1 commit into
Open
plastininikolay wants to merge 1 commit into
plastininikolay wants to merge 1 commit into
Conversation
get_core_power, get_core_volt, get_core_temp and get_core_clk returned NaN on Phoenix. The per-core arrays in PM table 0x4C0008 are laid out like on Rembrandt (0x00400004): power at 0x7F4, then voltage, temperature and clock at +0x20, +0x40 and +0xA0, with 8 entries each. Tested on a Ryzen 9 7940HS (ASUS ROG Flow X13 GV302XV) with a single-core load pinned by taskset: the loaded core reports 4.70 GHz, matching cpufreq (4690 MHz), with power, voltage and temperature rising only on that core. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
get_core_power,get_core_volt,get_core_tempandget_core_clkreturn NaN on Phoenix. This adds the per-core offsets for PM table0x4C0008. The layout matches Rembrandt (0x00400004): 8 floats per array, power at0x7F4, voltage0x814, temperature0x834, clock0x894.For reference, the next arrays in the same block look like effective clock (
0x8B4), C0 residency % (0x8D4) and CC6 % (0x8F4). I did not add those.Tested on a Ryzen 9 7940HS (ASUS ROG Flow X13 GV302XV, Fedora 44, ryzen_smu) with a small program against libryzenadj, while
taskset -c 2pinned a busy loop to core 2:Only
0x4C0008is covered, because it is the only table version I can test.I used AI assistance (Claude) to find the offsets and write the patch, and checked the results on my laptop.