Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

what is the difference between xgene_hwmon and altra_hwmon? #186

Open
rootfs opened this issue Jan 3, 2023 · 1 comment
Open

what is the difference between xgene_hwmon and altra_hwmon? #186

rootfs opened this issue Jan 3, 2023 · 1 comment

Comments

@rootfs
Copy link

rootfs commented Jan 3, 2023

Hi

I am working on Kepler project to measure runtime workload power consumption. I have an Ampere setup running RHEL 8.4.

I can see xgene_hwmon but no altra_hwmon. What is the difference between the two when it comes to power reading? I can see CPU and IO power, but how to get DRAM power?

Thanks!

# lsmod | grep hwmon
xgene_hwmon           262144  0
# modprobe altra_hwmon
modprobe: FATAL: Module altra_hwmon not found in directory /lib/modules/4.18.0-372.9.1.el8.aarch64
# sensors
i350bb-pci-30300
Adapter: PCI adapter
loc1:         +44.0°C  (high = +120.0°C, crit = +110.0°C)

apm_xgene-isa-0000
Adapter: ISA adapter
SoC Temperature:  +35.0°C  
CPU power:        16.28 W  
IO power:         31.90 W  
@adamliyi
Copy link
Collaborator

adamliyi commented Jan 13, 2023

Hi @rootfs ,

Please refer to: https://github.com/AmpereComputing/ampere-lts-kernel/wiki/hwmon-drivers
and https://github.com/AmpereComputing/ampere-lts-kernel/wiki/5.15-kernel-patches

The altra_hwmon driver is not upstreamed, you might want to build with bellow patches:

hwmon: Add Ampere Altra HW monitor driver
hwmon: (altra) restrict energy measurements to root access

If you are testing with 4.18 kernel, here is altra_hwmon driver for 4.18 kernel:
AmpereComputing/ampere-centos-kernel---DEPRECATED@f2e6dee

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants