Cezanne Support #2
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: a/zenpower3#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Given that AMD has ceased documenting power reporting on their platforms, I wonder if Cezanne support will ever arrive for 5700G owners such as myself? Though not particularly pertinent as I am familiar with my own power and thermal characteristics, it might still be nice.
Yes, this is planned to be added soon.
I don't have a Zen 3 APU to test if the latest commit actually works, so if someone with one could provide some debug data, that would be great. Also, there's a similar issue in the original zenpower that may also be relevant.
It looks like ryzen_monitor and the ryzen_smu kernel module do support Cezanne, so that might be something else for Zen 3 APU owners to check out.
ryzen_monitor and ryzen_smu both lack support for Cezanne, and strangely enough even with the zenpower kernel module loaded and the k10temp module disabled I cannot get it to return any debug data or appear in sensors. The script returns that zenpower is not found, how odd.
I do however appreciate the suggestions and am still willing to send over debug data from my 5700G sample if I can figure out what is wrong.
I have a 5700G on X300 Asrock Jupiter platform (newer AGESA) on Arch and could also help test or provide some debug data.
The zenpower3 doesn't show up at all in sensors view FYI.
The latest commit added the correct PCI IDs for Zen 3 APUs. Can someone try compiling it and checking if this fixes anything?
It appears as though my 5700G is still absent from the sensors command output. The ryzen_smu kernel mod seems to be working though, while ryzen_monitor support is experimental at the moment but seems to return power figures accurately enough (at least in the same order of magnitude as the expected results for all core power of ~88w), while stats like fabric clock are all undefined.
Will try it ASAP and report it back.
[edited and updated]
I have a 5600G on an Asrock X300. Running Debian Bullseye kernel 5.10.0-9
Compiled Zenpower3 today successfully (but I don't see it in the sensors command output).
Zenmonitor 3 reports everything except Voltages and Temperatures.
Of course, Voltages and Temperatures are what I was after...because the NCT6793D reports impossibly wildly fluctuating Vcore values and doubtful temperature values.
Second attempt: Running Debian Bullseye kernel 5.14.0-4.
Now, sensors does show zenpower3:
zenpower-pci-00c3
Adapter: PCI adapter
Tdie: +36.2°C (high = +95.0°C)
Tctl: +36.2°C
And Zenmonitor shows Temperatures, that seem accurate. But the power readings are gone, and Voltages are absent.
The zp_read_debug.sh script returns:
KERN_SUP: 1
NODE0; CPU0; N/CPU: 1
0005a008 = 00000000
0005a00c = 00000000
0005a010 = 00000000
0005a014 = 00000000
000598bc = ffffffff
0005994c = 00000000
00059954 = 00000000
00059958 = 00000000
0005995c = 00000000
00059960 = 00000000
00059964 = 00000000
00059968 = 00000000
0005996c = 00000000
00059970 = 00000000
Setup:
With zenpower3 and zenmonitor3 I only have tDie and tCtl as temperatures and per-core frequency:
Also, there are suspicious logs from the dmesg:
Everything was built from git, master branches. I'm not very familiar with system programming and such "low level" Linux administration, however, I'm ready to provide any debugging information. Just tell me what should I do.
The dmesg logs are normal and appear on my Vermeer system as well. Can someone test the latest commit? I think the PCI Device IDs were wrong but they should be fixed now.
I pulled and applied the latest commit. I'm not sure what exactly I should provide. My sensors output:
On Ryzen 7 5800H using DKMS AUR module all looks good, no errors in dmesg either:
Zenmonitor in root mode seems to show everything too:
Kernel 5.15:
sudo dmesg| grep -i zen
[ 0.166312] smpboot: CPU0: AMD Ryzen 5 5600G with Radeon Graphics (family: 0x19, model: 0x50, stepping: 0x0)
[ 2484.832108] zenpower: loading out-of-tree module taints kernel.
[ 2484.832157] zenpower: module verification failed: signature and/or required key missing - tainting kernel
[ 2484.832528] zenpower 0000:00:18.3: using ZEN2 calculation formula.
Sensors: [appears correct]
zenpower-pci-00c3
Adapter: PCI adapter
Tdie: +38.6°C (high = +95.0°C)
Tctl: +38.6°C
Power readings have disappeared from Zenmonitor.
Great, it looks like the only thing missing is the currents and voltages.
Alright, I think the latest commit should expose the currents and voltages too. Can someone try it by running Zenmonitor3 as root?
Progress. But at least the CPU uses zero power :-)
BTW I see no difference between running sudo or running as root.
OK, I added an alternate register base that seemed to work for Zen 2 APUs and copied the debugging script into this repository. I have no idea if the register base is correct for Cezanne APUs though.
Hey, I have Ryzen 5700G with B450 board. I can finally see some temps about my CPU!
Thanks for continuing the work! Ping me if I can help somehow
@jakubdyszkiewicz Awesome! Does Zenmonitor3 work?
It does! Although my machine runs mostly as a headless server, so it's not much use for me ;)
edit: unless there is a way to output this to a terminal?
Works nicely for me too now. All values are present, both in sensors and zenmonitor.
Debug output has changed compared to the one I posted earlier:
KERN_SUP: 0
NODE0; CPU0; N/CPU: 1
0005a008 = 00000000
0005a00c = 00000000
0005a010 = 00000000
0005a014 = 00000000
000598bc = ffffffff
0005994c = 00000000
00059954 = 00000000
00059958 = 00000000
0005995c = 00000000
00059960 = 00000000
00059964 = 00000000
00059968 = 00000000
0005996c = 00000000
00059970 = 00000000
0006f038 = 01830004
0006f03c = 013f000b
Of course, you can use the
sensors
command.Anyways, I'm closing this issue since it seems like Zenpower3 is now working on Cezanne. Just released v0.2.0 🎉
Just wanted to chime in to this closed thread, I sort of forgot about the whole thing over early 2022 (probably could've posted more here). Indeed, the zenpower3 kernel mod now loads. The power data seems accurate enough to the known power characteristics of my tweaked 5700G, even if the formula is inaccurate (thanks AMD). Gonna leave the sensors and dmesg output here as a sign of success, and thank you. (Kernel 5.17).
zenpower-pci-00c3
Adapter: PCI adapter
SVI2_Core: 1.42 V
SVI2_SoC: 1000.00 mV
Tdie: +35.1°C (high = +95.0°C)
Tctl: +35.1°C
SVI2_P_Core: 34.44 W
SVI2_P_SoC: 2.35 W
SVI2_C_Core: 27.01 A
SVI2_C_SoC: 2.35 A
[rudolph@APUS4APU ~]$ sudo dmesg | grep zenpower
[ 4.151862] zenpower: loading out-of-tree module taints kernel.
[ 4.151876] zenpower: module verification failed: signature and/or required key missing - tainting kernel
[ 4.155072] zenpower 0000:00:18.3: using ZEN2 calculation formula.