zenpower3/README.md

44 lines
2 KiB
Markdown
Raw Normal View History

2018-11-12 00:19:04 +00:00
# Zenpower
2018-11-17 11:18:26 +00:00
Zenpower is Linux kernel driver for reading temperature, voltage(SVI2), current(SVI2) and power(SVI2) for AMD Zen family CPUs.
2018-11-12 00:19:04 +00:00
2019-07-31 17:49:06 +00:00
Make sure that your Linux kernel have support for your CPUs as Zenpower is using kernel calls to read values from SMN.
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
You can install this module via dkms.
### Installation commands for Ubuntu
```
sudo apt install dkms git build-essential linux-headers-$(uname -r)
cd ~
git clone https://github.com/ocerman/zenpower.git
cd zenpower
sudo make dkms-install
```
## Module activation
Because zenpower is using same PCI device as k10temp, you have to disable k10temp first.
1. Check if k10temp is active. `lsmod | grep k10temp`
2. Unload k10temp `sudo modprobe -r k10temp`
2018-11-17 10:56:57 +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`
## Sensors monitoring
You can use this app: [zenmonitor](https://github.com/ocerman/zenmonitor), or your favourie 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)
2019-09-29 10:37:14 +00:00
## Known Issues
2019-10-05 19:47:06 +00:00
- On some systems the SVI2 values for Core/SOC may be swapped. As a workaround you can install module with `sudo make dkms-install MCFLAGS=-DSWAP_CORE_SOC` to swap them back. (Should be fixed in version 0.1.4)
- The formula for calculating amperage/wattage from raw values may not be correct for all systems. (Should be fixed for Zen2 Ryzen CPUs in version 0.1.4)