zenpower3/README.md

53 lines
2.6 KiB
Markdown
Raw Normal View History

2021-05-20 14:36:56 +00:00
# Zenpower3
2021-05-20 14:34:15 +00:00
Zenpower3 is a Linux kernel driver for reading temperature, voltage(SVI2), current(SVI2) and power(SVI2) for AMD Zen family CPUs, now with Zen 3 support!
2018-11-12 00:19:04 +00:00
Make sure that your Linux kernel have support for your CPUs as Zenpower is using kernel function `amd_smn_read` to read values from SMN. A fallback method (which may or may not work!) will be used when it is detected that kernel function `amd_smn_read` lacks support for your CPU.
2019-10-12 20:06:14 +00:00
For AMD family 17h Model 70h (Ryzen 3000) CPUs you need kernel version 5.3.4 or newer or kernel with this patch: https://patchwork.kernel.org/patch/11043277/
2019-07-31 17:49:06 +00:00
2018-11-12 00:19:04 +00:00
## Installation
2021-06-20 00:06:45 +00:00
You can install this module via DKMS.
2018-11-12 00:19:04 +00:00
2021-06-20 00:06:45 +00:00
### Installation for Ubuntu
```sh
2018-11-12 00:19:04 +00:00
sudo apt install dkms git build-essential linux-headers-$(uname -r)
cd ~
2021-05-20 14:34:15 +00:00
git clone https://github.com/Ta180m/zenpower3.git
cd zenpower3
2018-11-12 00:19:04 +00:00
sudo make dkms-install
```
2021-06-20 00:06:45 +00:00
### Installation for Arch
You can install the [AUR package](https://aur.archlinux.org/packages/zenpower3-dkms/).
2022-02-26 22:14:50 +00:00
### Installation for Fedora 35+
You can install it from the [copr package repo](https://copr.fedorainfracloud.org/coprs/birkch/zenpower3/)
2018-11-12 00:19:04 +00:00
## Module activation
2021-12-16 17:40:25 +00:00
Because zenpower is using same PCI device as k10temp, you have to disable k10temp first. This is automatically done by the AUR package.
2018-11-12 00:19:04 +00:00
1. Check if k10temp is active. `lsmod | grep k10temp`
2. Unload k10temp `sudo modprobe -r k10temp`
2020-02-15 20:12:39 +00:00
3. (optional*) blacklist k10temp: `sudo bash -c 'sudo echo -e "\n# replaced with zenpower\nblacklist k10temp" >> /etc/modprobe.d/blacklist.conf'`
2018-11-12 00:19:04 +00:00
4. Activate zenpower `sudo modprobe zenpower`
2020-02-15 20:12:39 +00:00
*If k10temp is not blacklisted, you may have to manually unload k10temp after each restart.
2018-11-12 00:19:04 +00:00
## Sensors monitoring
2021-12-16 17:40:25 +00:00
You can use the `sensors` command, [zenmonitor3](https://github.com/Ta180m/zenmonitor3), or your favorite sensors monitoring software.
## Update instructions
1. Unload zenpower `sudo modprobe -r zenpower`
2. Goto zenpower directory `cd ~/zenpower`
3. Uninstall old version `sudo make dkms-uninstall`
4. Update code from git `git pull`
5. Install new version `sudo make dkms-install`
6. Activate zenpower `sudo modprobe zenpower`
2019-09-29 10:37:14 +00:00
2019-10-05 19:47:06 +00:00
## Help needed
It would be very helpful for me for further development of Zenpower if you can share debug data from zenpower. [Read more](https://github.com/ocerman/zenpower/issues/12)
2020-02-15 20:12:39 +00:00
## Notes
- Some users reported that a restart is needed after module installation
- If you are having trouble compiling zenpower under Ubuntu 18.04 (or older) with new upstream kernel, see [#23](https://github.com/ocerman/zenpower/issues/23)
2020-02-16 18:35:35 +00:00
- The meaning of raw current values from SVI2 telemetry are not standardised so the current/power readings may not be accurate on all systems (depends on the board model).