[Bug 201539] AMDGPU R9 390 automatic fan speed control in Linux 4.19/4.20/5.0

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Wed Dec 2 01:33:15 UTC 2020


https://bugzilla.kernel.org/show_bug.cgi?id=201539

--- Comment #61 from MasterCATZ (mastercatz at hotmail.com) ---

Now it just runs 100% @ 300mhz core 100mhz memory @ ~60deg 

aio at aio:/sys/class/drm/card0/device/hwmon/hwmon1$ sensors
k10temp-pci-00c3
Adapter: PCI adapter
Vcore:         1.38 V  
Vsoc:          1.08 V  
Tctl:         +79.8°C  
Tdie:         +79.8°C  
Tccd1:        +66.2°C  
Tccd2:        +61.0°C  
Icore:        32.00 A  
Isoc:         10.00 A  

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +16.8°C  (crit = +20.8°C)
temp2:        +16.8°C  (crit = +20.8°C)

amdgpu-pci-0b00
Adapter: PCI adapter
fan1:        2884 RPM  (min =    0 RPM, max = 6000 RPM)
edge:         +59.0°C  (crit = +104000.0°C, hyst = -273.1°C)
power1:       12.15 W  (cap = 208.00 W)

aio at aio:/sys/class/drm/card0/device/hwmon/hwmon1$ pwmconfig
You need to be root to run this script.
aio at aio:/sys/class/drm/card0/device/hwmon/hwmon1$ sudo pwmconfig
[sudo] password for aio: 
# pwmconfig version 3.6.0
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.

Found the following devices:
   hwmon0 is acpitz
   hwmon1 is amdgpu
   hwmon2 is k10temp
   hwmon3 is hidpp_battery_2

Found the following PWM controls:
   hwmon1/pwm1           current value: 122

Giving the fans some time to reach full speed...
Found the following fan sensors:
   hwmon1/fan1_input     current speed: 5499 RPM

Warning!!! This program will stop your fans, one at a time,
for approximately 5 seconds each!!!
This may cause your processor temperature to rise!!!
If you do not want to do this hit control-C now!!!
Hit return to continue: 

Testing pwm control hwmon1/pwm1 ...
  hwmon1/fan1_input ... speed was 5499 now 1120
    It appears that fan hwmon1/fan1_input
    is controlled by pwm hwmon1/pwm1
Would you like to generate a detailed correlation (y)? y
Note: If you had gnuplot installed, I could generate a graphical plot.
    PWM 255 FAN 5508
    PWM 240 FAN 5492
    PWM 225 FAN 5245
    PWM 210 FAN 4962
    PWM 195 FAN 4659
    PWM 180 FAN 4328
    PWM 165 FAN 3974
    PWM 150 FAN 3567
    PWM 135 FAN 3140
    PWM 120 FAN 2747
    PWM 105 FAN 2320
    PWM 90 FAN 1892
    PWM 75 FAN 1476
    PWM 60 FAN 1178
    PWM 45 FAN 1092
    PWM 30 FAN 1083
    PWM 28 FAN 1082
    PWM 26 FAN 1081
    PWM 24 FAN 1080
    PWM 22 FAN 1081
    PWM 20 FAN 1080
    PWM 18 FAN 1079
    PWM 16 FAN 1080
    PWM 14 FAN 1079
    PWM 12 FAN 1079
    PWM 10 FAN 1080
    PWM 8 FAN 1080
    PWM 6 FAN 1079
    PWM 4 FAN 1080
    PWM 2 FAN 1079
    PWM 0 FAN 1080


Testing is complete.
Please verify that all fans have returned to their normal speed.

The fancontrol script can automatically respond to temperature changes
of your system by changing fanspeeds.
Do you want to set up its configuration file now (y)? y
What should be the path to your fancontrol config file (/etc/fancontrol)? 

Select fan output to configure, or other action:
1) hwmon1/pwm1         3) Just quit           5) Show configuration
2) Change INTERVAL     4) Save and quit
select (1-n): 1

Devices:
hwmon0 is acpitz
hwmon1 is amdgpu
hwmon2 is k10temp
hwmon3 is hidpp_battery_2

Current temperature readings are as follows:
hwmon0/temp1_input      16
hwmon0/temp2_input      16
hwmon1/temp1_input      59
hwmon2/temp1_input      83
hwmon2/temp2_input      83
hwmon2/temp3_input      62
hwmon2/temp4_input      59

Select a temperature sensor as source for hwmon1/pwm1:
1) hwmon0/temp1_input
2) hwmon0/temp2_input
3) hwmon1/temp1_input
4) hwmon2/temp1_input
5) hwmon2/temp2_input
6) hwmon2/temp3_input
7) hwmon2/temp4_input
8) None (Do not affect this PWM output)
select (1-n): 3

Enter the low temperature (degree C)
below which the fan should spin at minimum speed (20): 30

Enter the high temperature (degree C)
over which the fan should spin at maximum speed (60): 70

Enter the PWM value (0-255) to use when the temperature
is over the high temperature limit (255): 250


Select fan output to configure, or other action:
1) hwmon1/pwm1         3) Just quit           5) Show configuration
2) Change INTERVAL     4) Save and quit
select (1-n): 4

Saving configuration to /etc/fancontrol...
Configuration saved
aio at aio:/sys/class/drm/card0/device/hwmon/hwmon1$

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the dri-devel mailing list