OPNsense Forum

English Forums => Hardware and Performance => Topic started by: phantomsfbw on October 01, 2023, 07:09:35 PM

Title: AMD AM5 Temp Reporting Support
Post by: phantomsfbw on October 01, 2023, 07:09:35 PM
Any chance we will see support for Temp reporting for AM5 systems?d

Thanks!
Title: Re: AMD AM5 Temp Reporting Support
Post by: lilsense on October 02, 2023, 02:35:22 AM
this would be built in to FreeBSD. Are you unable to read any temp from AM5? have you looked at FreeBSD forums on this?
Title: Re: AMD AM5 Temp Reporting Support
Post by: phantomsfbw on October 02, 2023, 03:16:49 AM
I am running the latest OPNSense on an AMD 7900X as a homelab bench project. It is zippy compared to the Intel I3 have been using.  I have been trying to anticipate the newer firewall options that tend to slow traffic.  Overkill sure, but I had a spare to play with.  Did find one FreeBSD thread that discussed Ryzen 7 support from May 2023.  Mostly laptops in the discussion.  Folks were having a hard time just getting the OS to install.  One noted temps did not work, and I noticed on my workbench today, a similar instance of no temp support, even with the old AMD sensor selected.  Was hoping a forthcoming FreeBSD 14 shift in OPNSense might, just might get it sorted.  I did experience the trials and tribulations of other linux distros getting up to speed with the new hardware in late 2022 and 2023, but I don't typically track BSD distros. Did a spin of PfSense this evening on the CPU, and it has the newer FreeBSD foundation, and no temp joy there in that instance. I'm sure the builders will get around to it at some point.
Title: Re: AMD AM5 Temp Reporting Support
Post by: vpx on October 02, 2023, 10:57:17 AM
What did you select under System: Settings: Miscellaneous: Thermal Sensors: Hardware?

It should be set to "amdtemp".
Title: Re: AMD AM5 Temp Reporting Support
Post by: phantomsfbw on October 02, 2023, 06:30:54 PM
There are three selections for sensors, one of those is AMD.  Did not work, and neither do the other two, Intel and I think it is something like APIC.  Also tried a series of CLI commands and nothing literally is reported.
Title: Re: AMD AM5 Temp Reporting Support
Post by: newsense on October 02, 2023, 11:01:15 PM
There is a widget you can add in the lobby, and htop from mimugmail repo where you can add CPU speed and temps in settings
Title: Re: AMD AM5 Temp Reporting Support
Post by: phantomsfbw on October 03, 2023, 09:05:08 PM
newsense, I installed mimugmail's repo yesterday looking for HTOP and did not see it.  Is it by chance under another feature?
Title: Re: AMD AM5 Temp Reporting Support
Post by: newsense on October 04, 2023, 12:52:58 AM
Install it in the cli

pkg install htop
Title: Re: AMD AM5 Temp Reporting Support
Post by: phantomsfbw on October 07, 2023, 09:01:09 PM
So temp will not show under HTOP.  HTOP shows 0.0.% 3000MHz N/A. N/A is where the temp should show.  The 0.0% should show CPU utilization, and the 3000MHz is the incorrectly reported CPU frequency. Tested  using the AMD Ryzen 9 7900x.

Functionally, OPNsense seems to work otherwise, but I wonder if the underpinning BSD operating system is not properly utilizing or optimized for this CPU and AMD 5 Chipset.
Title: Re: AMD AM5 Temp Reporting Support
Post by: newsense on October 08, 2023, 10:56:03 PM
For Ryzen 7900x you might want to open a bug on Github, although I imagine it is a matter of time until the patches will show up in FreeBSD