<div dir="ltr"><div>Hello,<br><br>During the setup, the fan manager <a href="https://github.com/markusressel/fan2go" target="_blank">https://github.com/markusressel/fan2go</a>
I found that my Vega56 was not working correctly. This fan manager
expects what read PWM value should be the same as you wrote before, but
it's not the case. PWM value was volatile, and what is more critical, if
I wrote 200, after reading I saw ~70-100, which is very confusing. <br>After
that, I started reading the amdgpu driver, and how fan speed works, and
I found what PWM value was calculated from RPM speed and not correct
for my case (different BIOS or fan configuration?).<br>Because it looked
wrong, I started looking into different implementations and found that
Vega20 used mmCG_FDO_CTRL1 and mmCG_THERMAL_STATUS registers to
calculate the PWM value.<br>I also checked how we set PWM for Vega10 and
found the same registers. After that, I copy-pasted the function from
Vega20 to Vega10, and it started working much better. It still has some
fluctuation, but as I understand, this behavior is expected. <br><br>I
have no in-depth information about amdgpu, and the original function may
have been for some reason (maybe for some broken BIOS?), but I suppose
somebody forgot to backport this code after prototype implementation. <br><br>It would be my first patch here. Sorry if I skipped some procedures, will be appreciated it if you help me. <br></div>Also, sorry for the patch in the attachment, I have not been using any mail programs for the last six years, only web clients, and it's strange to do it nowadays (PRs much more common...). <br><div><br>Regards,</div></div>