pwm1 in hwmon often fails to reflect fan speed
Brief summary of the problem:
I have an odd situation, and I'm not fully convinced whether it lies with amdgpu but it's looking that way, so here I am. I have an rx 5600 xt; I've been using radeon-profile to control it. Very often though the /sys/class/drm/card0/device/hwmon/hwmon0/pwm1 file won't reflect the actual set fan speed. Right now the fans are set at 100% (and are running at 100%, or at least something close to it judging by the noise), and yet:
djrscally@valhalla:~$ cat /sys/class/drm/card0/device/hwmon/hwmon0/pwm1
0
I disabled the radeon-profile daemon to make sure that wasn't interfering somehow and rebuilt the program with some logging built in, but as far as I can tell that's not what's stopping this working properly. Sometimes when I reboot I'll find that the file is reporting pwm values properly:
djrscally@valhalla:~$ cat /sys/class/drm/card0/device/hwmon/hwmon0/pwm1
53
But I can't see any reason for it deciding to work; certainly I've not changed any settings or anything. What's particularly weird is, by my understanding, radeon-profile is actually writing to that file to manually control the fans, which is working, so I can't really understand why reading from it isn't!
Hardware description:
- CPU: Ryzen 5 3600
- GPU: XFX RX 5600 XT
- System Memory: 16gb
- Display(s): scrubby asus monitors
- Type of Diplay Connection: DP / HDMI
System infomration:
- Distro name and Version: kubuntu 20.04
- Kernel version: 5.4.0-33-generic
- AMD package version: No package
How to reproduce the issue:
Sorry, I don't know what triggers it. It's happening probably ~70 of the time I boot.
Attached files:
dmesg, and the output from auditd recording radeon-profile's interactions with the pwm1 file.