龙芯 3A2000 机器,温控和风扇调节功能异常

不知道 3A2000 现在是否受 AOSC OS 支持,先这么写着吧

感谢维护者的付出,打扰了(

板子型号 A1601,龙芯 3A2000C 处理器,AMD RS780E + SB710 桥片。
在运行 AOSC OS 时,其 CPU 风扇转速固定为最大、CPU 温度显示不正常(偏高)、且无法通过 lm-sensors 查询转速及主板温度信息,表现与非龙梦维护的内核一致。

在 AOSC OS 下,sensors 输出如下:

cpu_hwmon-virtual-0
Adapter: Virtual device
CPU 0 Temperature:  +73.0°C  

amdgpu-pci-0100
Adapter: PCI adapter
fan1:             N/A
edge:         +32.0°C  (crit = +120.0°C, hyst = +90.0°C)

AOSC OS 的 dmesg 输出在这里,节选可能与问题相关的行:

[    3.788085] Btrfs loaded, zoned=yes, fsverity=yes
[    3.792968] Key type big_key registered
[    3.797851] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    3.809570] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    3.822265] ====Please use device-tree for TMP75 Driver====
[    3.828125] You can put the tmp75 node under the i2c node:
               tmp75@4e {
               	compatible = "ti,tmp75"
               	reg = <0x4e>
               }
[    3.843750] ==================Thank you!===================
[    3.849609] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    3.862304] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    3.874023] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   13.076171] random: crng init done
[   16.363281] Freeing initrd memory: 30208K
[   16.375000] clk: Disabling unused clocks

作为对比,重启到 Loongnix-20.mips64el.rc2 下,sensors 输出如下:

sbx00-fan-virtual-0
Adapter: Virtual device
fan1:        1353 RPM

emc1412-virtual-0
Adapter: Virtual device
Main Board Temperature:  +45.6 C  (crit = +100.0 C, hyst = +90.0 C)

cpu-hwmon-virtual-0
Adapter: Virtual device
CPU 0 Temperature:  +60.6 C  

radeon-pci-0100
Adapter: PCI adapter
temp1:        +31.0 C  (crit = +120.0 C, hyst = +90.0 C)

我注意到 AOSC OS 的内核移植了相关驱动程序,但它们似乎无法在这台电脑上生效。另外,CPU 温度修正函数似乎由于未被引用被移除了。

请问能否参考龙梦的修补(例如这个 commit),讨论修复上述问题的可行性? 若可行,我可提供测试所需的信息。

1 个赞

您好,感谢反馈(抱歉前几天一直没空答复),这方面的支持的确有一定复杂性,后续会研究如何更好支持;温控曲线补丁之前会导致部分双路 3B4000 异常关机,还得复查