[amdgpu] Is there a way to read AMD GPU's temperatures and/or power usage ?

Hello everyone,

I wanted to know if there's any way I could read my GPU's temperature and its power usage - which I can do on Linux using lm_sensors

I have an RX 580, if that matters (?)
 
Hello everyone,

I wanted to know if there's any way I could read my GPU's temperature and its power usage - which I can do on Linux using lm_sensors

I have an RX 580, if that matters (?)

I have RX 570 in my desktop machine. To see what the GPU is doing I have installed sysutils/radeontop, but it does not show temperature. The output looks like this:

Screenshot from 2020-08-19 14-55-06.png
 
ipmitool

# ipmitool sensor

Code:
ATX+5VSB         | 5.070      | Volts      | ok    | 4.230     | 4.710     | na        | na        | 5.550     | 5.610 
+3VSB            | 3.500      | Volts      | ok    | 2.780     | 2.820     | na        | na        | 3.660     | 3.680 
Vcore            | 0.830      | Volts      | ok    | 0.540     | 0.560     | 0.600     | 1.490     | 1.560     | 1.640 
VCCM             | 1.350      | Volts      | ok    | 1.090     | 1.120     | na        | na        | 1.720     | 1.750 
+1.1             | 1.090      | Volts      | ok    | 0.850     | 0.890     | 0.940     | 1.150     | 1.210     | 1.270 
+1.0             | 1.020      | Volts      | ok    | 0.850     | 0.890     | 0.940     | 1.150     | 1.210     | 1.270 
BAT              | 3.200      | Volts      | ok    | 2.380     | 2.500     | na        | na        | 3.580     | 3.680 
+3V              | 3.300      | Volts      | ok    | 2.780     | 2.820     | na        | na        | 3.660     | 3.680 
+5V              | 5.010      | Volts      | ok    | 4.230     | 4.710     | na        | na        | 5.550     | 5.610 
+12V             | 12.200     | Volts      | ok    | 10.100    | 10.300    | na        | na        | 13.300    | 13.400
CPU_FAN1         | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na   
REAR_FAN1        | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na   
FRNT_FAN1        | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na   
FRNT_FAN2        | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na   
REAR_FAN2        | 1200.000   | RPM        | ok    | na        | na        | 100.000   | na        | na        | na   
CPU_FAN2         | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na   
MB Temperature   | 55.000     | degrees C  | ok    | na        | na        | na        | 80.000    | na        | na   
CPU Temperature  | 52.000     | degrees C  | ok    | na        | na        | na        | 80.000    | 85.000    | 90.00


% man 8 sysctl

% man 4 amdtemp → AMD

% man 4 coretemp → INTEL

Source.
 
ipmitool

# ipmitool sensor

Code:
ATX+5VSB         | 5.070      | Volts      | ok    | 4.230     | 4.710     | na        | na        | 5.550     | 5.610
+3VSB            | 3.500      | Volts      | ok    | 2.780     | 2.820     | na        | na        | 3.660     | 3.680
Vcore            | 0.830      | Volts      | ok    | 0.540     | 0.560     | 0.600     | 1.490     | 1.560     | 1.640
VCCM             | 1.350      | Volts      | ok    | 1.090     | 1.120     | na        | na        | 1.720     | 1.750
+1.1             | 1.090      | Volts      | ok    | 0.850     | 0.890     | 0.940     | 1.150     | 1.210     | 1.270
+1.0             | 1.020      | Volts      | ok    | 0.850     | 0.890     | 0.940     | 1.150     | 1.210     | 1.270
BAT              | 3.200      | Volts      | ok    | 2.380     | 2.500     | na        | na        | 3.580     | 3.680
+3V              | 3.300      | Volts      | ok    | 2.780     | 2.820     | na        | na        | 3.660     | 3.680
+5V              | 5.010      | Volts      | ok    | 4.230     | 4.710     | na        | na        | 5.550     | 5.610
+12V             | 12.200     | Volts      | ok    | 10.100    | 10.300    | na        | na        | 13.300    | 13.400
CPU_FAN1         | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na  
REAR_FAN1        | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na  
FRNT_FAN1        | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na  
FRNT_FAN2        | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na  
REAR_FAN2        | 1200.000   | RPM        | ok    | na        | na        | 100.000   | na        | na        | na  
CPU_FAN2         | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na  
MB Temperature   | 55.000     | degrees C  | ok    | na        | na        | na        | 80.000    | na        | na  
CPU Temperature  | 52.000     | degrees C  | ok    | na        | na        | na        | 80.000    | 85.000    | 90.00


% man 8 sysctl

% man 4 amdtemp → AMD

% man 4 coretemp → INTEL

Source.

Looks like this one is for AMD CPUs, but I own an Intel one. Thanks anyway!
 
I have an intel card as well.. But for amd gpus, there is either radeonkms or amdgpu. Not sure which one your card needs. You can just install the graphics/drm-kmod port, load it, and look at kldstat.

I would then look whether these drivers have a sysctl that shows the gpu temperature. If not, one might want to look at the source code. Maybe there are some ioctls to show the temperature.
 
I have an intel card as well.. But for amd gpus, there is either radeonkms or amdgpu. Not sure which one your card needs. You can just install the graphics/drm-kmod port, load it, and look at kldstat.

I would then look whether these drivers have a sysctl that shows the gpu temperature. If not, one might want to look at the source code. Maybe there are some ioctls to show the temperature.

I will look deeper as I get back home from holiday and let you know. Thanks for the suggestion!
 
There is no sysctl for AMD GPU's.
I have this HP 8370p Elitebook with Intel CPU.
Code:
vgapci0@pci0:1:0:0:    class=0x030000 card=0x179d103c chip=0x68411002 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Thames [Radeon HD 7550M/7570M/7650M]'
    class      = display

I load amdtemp in /boot/loader.conf and nothing appears.
No surprise as this module is for AMD Core CPU temperatures not graphics chips.
 
There is no sysctl for AMD GPU's.
I have this HP 8370p Elitebook with Intel CPU.
Code:
vgapci0@pci0:1:0:0:    class=0x030000 card=0x179d103c chip=0x68411002 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Thames [Radeon HD 7550M/7570M/7650M]'
    class      = display

I load amdtemp in /boot/loader.conf and nothing appears.
No surprise as this module is for AMD Core CPU temperatures not graphics chips.
Have you tried what Elazar said about kldstat?
 
# ipmitool sensor

Below, should I assume that it's not supported on my computer?

Code:
root@mowa219-gjp4-8570p-freebsd:~ # kldstat | tail -n 5
55    1 0xffffffff849fa000     3178 amdtemp.ko
56    1 0xffffffff849fe000     2150 amdsmn.ko
57    1 0xffffffff84a01000     2108 coretemp.ko
58    1 0xffffffff84a04000     8bd8 ipmi.ko
59    1 0xffffffff84a0d000     2180 smbus.ko
root@mowa219-gjp4-8570p-freebsd:~ # ipmitool sensor
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory
root@mowa219-gjp4-8570p-freebsd:~ #
 
do we have any success of reading amdgpu temperature, please?

I am in the same search with my HP laptop.

No new results to this topic, just occasionally typing `sysctl -a | grep temperature` plus also putting my left hand on the fan output :)

Also `gotop` shows graphically, which is the same as typing in console as above.
Captura de pantalla -2023-06-06 23-43-56.png
 
Back
Top