FreeBSD cannot get DIMM temperature sensor value

Andrey Lanin

New Member

Reaction score: 7
Messages: 9

I am trying to get DIMM's temperature sensors values using ipmitool on FreeBSD 13.0-RELEASE. Results are:
Code:
[lanin@freebsd ~]$ ipmitool sdr list
CPU1 Temperature | 32 degrees C      | ok
CPU2 Temperature | 36 degrees C      | ok
DIMMA1_Temp      | no reading        | ns
DIMMB1_Temp      | 63 degrees C      | ok
DIMMC1_Temp      | no reading        | ns
DIMMD1_Temp      | no reading        | ns
DIMME1_Temp      | no reading        | ns
DIMMF1_Temp      | no reading        | ns
DIMMG1_Temp      | no reading        | ns
DIMMH1_Temp      | no reading        | ns
DIMMJ1_Temp      | 0 degrees C       | ok
DIMMK1_Temp      | no reading        | ns
DIMML1_Temp      | no reading        | ns
DIMMM1_Temp      | no reading        | ns
+VCCIO1          | 1.01 Volts        | ok
+VCORE1          | 1.78 Volts        | ok
+VCORE2          | 1.79 Volts        | ok
+VDDQ_ABC_CPU1   | 1.20 Volts        | ok
+VDDQ_DEF_CPU1   | 1.22 Volts        | ok
+VDDQ_GHJ_CPU2   | 1.20 Volts        | ok
+VDDQ_KLM_CPU2   | 1.22 Volts        | ok
+12V             | 12.10 Volts       | ok
+5V              | 4.99 Volts        | ok
+5VSB            | 4.93 Volts        | ok
+3.3V            | 3.26 Volts        | ok
+3.3VSB          | 3.22 Volts        | ok
VBAT             | 3.36 Volts        | ok
CPU_FAN1         | 700 RPM           | ok
CPU_FAN2         | 700 RPM           | ok
FRNT_FAN1        | 600 RPM           | ok
FRNT_FAN2        | 300 RPM           | cr
FRNT_FAN3        | 500 RPM           | ok
FRNT_FAN4        | disabled          | ns
FRNT_FAN5        | 600 RPM           | ok
REAR_FAN1        | 600 RPM           | ok
REAR_FAN2        | 600 RPM           | ok
PMBPower1        | no reading        | ns
CPU1_ECC1        | 0x00              | ok
CPU2_ECC1        | 0x00              | ok
CPU_CATERR       | 0x00              | ok
Memory_Train_ERR | 0x00              | ok
NM Capabilities  | Not Readable      | ns
Watchdog2        | 0x00              | ok

for exapmle, specifically:
Code:
[lanin@freebsd ~]$ ipmitool sensor get DIMMB1_Temp
Locating sensor record...
Sensor ID              : DIMMB1_Temp (0xc3)
 Entity ID             : 3.0
 Sensor Type (Threshold)  : Temperature
 Sensor Reading        : 63 (+/- 0) degrees C
 Status                : ok
 Lower Non-Recoverable : 47.000
 Lower Critical        : 50.000
 Lower Non-Critical    : 53.000
 Upper Non-Critical    : 72.000
 Upper Critical        : 75.000
 Upper Non-Recoverable : 79.000
 Positive Hysteresis   : 1.000
 Negative Hysteresis   : 1.000
 Assertion Events      :
 Assertions Enabled    : lnc- lcr- unc+ ucr+
 Deassertions Enabled  : lnc- lcr- unc+ ucr+

my system is:
Code:
[lanin@freebsd ~]$ uname -a
FreeBSD freebsd 13.0-RELEASE-p11 FreeBSD 13.0-RELEASE-p11 #0: Tue Apr  5 18:54:35 UTC 2022     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

modules loaded:
Code:
[lanin@freebsd ~]$ kldstat
Id Refs Address                Size Name
 1   91 0xffffffff80200000  1f11f90 kernel
 2    1 0xffffffff82113000    2a120 fusefs.ko
 3    1 0xffffffff8213e000   5748f0 vmm.ko
 4    1 0xffffffff826b3000     4110 nmdm.ko
 5    1 0xffffffff826b8000     fc48 if_bridge.ko
 6    2 0xffffffff826c8000     8178 bridgestp.ko
 7    1 0xffffffff826d1000    12a80 ipmi.ko
 8    3 0xffffffff826e4000     44f0 smbus.ko
 9    1 0xffffffff826e9000     4128 coretemp.ko
10    1 0xffffffff82ae6000     3378 acpi_wmi.ko
11    1 0xffffffff82aea000     3250 ichsmb.ko
12    1 0xffffffff82aee000     8d38 ioat.ko
13    1 0xffffffff82af7000   107310 nvidia-modeset.ko
14    1 0xffffffff82c00000  1faac70 nvidia.ko
15    2 0xffffffff84bab000    388f8 linux.ko
16    6 0xffffffff84be4000     db70 linux_common.ko
17    1 0xffffffff84bf2000     2340 uhid.ko
18    1 0xffffffff84bf5000     3380 usbhid.ko
19    1 0xffffffff84bf9000     31f8 hidbus.ko
20    1 0xffffffff84bfd000     3320 wmt.ko
21    1 0xffffffff84c01000     4350 ums.ko
22    1 0xffffffff84c06000    30ac8 linux64.ko
23    1 0xffffffff84c37000     2260 pty.ko
24    1 0xffffffff84c3a000     639c linprocfs.ko
25    1 0xffffffff84c41000     3284 linsysfs.ko
26    1 0xffffffff84c45000     3530 fdescfs.ko
27    1 0xffffffff84c49000     2a08 mac_ntpd.ko

DIMMs specification:
Code:
[lanin@freebsd ~]$ sudo dmidecode -t memory
...
# dmidecode 3.3
# SMBIOS entry point at 0x6f4e5000
Found SMBIOS entry point in EFI, reading table from /dev/mem.
SMBIOS 3.2 present.

Handle 0x0039, DMI type 16, 23 bytes
Physical Memory Array
    Location: System Board Or Motherboard
    Use: System Memory
    Error Correction Type: Single-bit ECC
    Maximum Capacity: 1536 GB
    Error Information Handle: Not Provided
    Number Of Devices: 12

Handle 0x003A, DMI type 17, 40 bytes
Memory Device
    Array Handle: 0x0039
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 16 GB
    Form Factor: DIMM
    Set: None
    Locator: DIMM_A1
    Bank Locator: NODE 1
    Type: DDR4
    Type Detail: Synchronous
    Speed: 2400 MT/s
    Manufacturer: Samsung
    Serial Number: 1894FFEF
    Asset Tag: DIMM_A1_AssetTag
    Part Number: M393A2K40BB1-CRC
    Rank: 1
    Configured Memory Speed: 2400 MT/s
    Minimum Voltage: 1.2 V
    Maximum Voltage: 1.2 V
    Configured Voltage: 1.2 V
...

soft installed:
Code:
[lanin@freebsd ~]$ pkg info ipmitool
ipmitool-1.8.18_3
Name           : ipmitool
Version        : 1.8.18_3
Installed on   : Wed May 11 22:15:22 2022 MSK
Origin         : sysutils/ipmitool
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : sysutils
Licenses       : BSD3CLAUSE
Maintainer     : zi@FreeBSD.org
WWW            : https://sourceforge.net/projects/ipmitool/
Comment        : CLI to manage IPMI systems
Options        :
    DOCS           : on
    FREEIPMI       : off
Shared Libs required:
    libreadline.so.8
Annotations    :
    FreeBSD_version: 1300139
    cpe            : cpe:2.3:a:sun:ipmitool:1.8.18:::::freebsd13:x64:3
    repo_type      : binary
    repository     : FreeBSD
Flat size      : 1.30MiB
...
[lanin@freebsd ~]$ pkg info freeipmi
freeipmi-1.6.9
Name           : freeipmi
Version        : 1.6.9
Installed on   : Thu May 12 18:23:32 2022 MSK
Origin         : sysutils/freeipmi
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : sysutils
Licenses       : GPLv3
Maintainer     : sunpoet@FreeBSD.org
WWW            : https://www.gnu.org/software/freeipmi/
Comment        : Library and tools to support IPMI-capable hardware
Options        :
    DEBUG          : off
    DOCS           : on
    IOPERM         : off
    IPV6           : on
Shared Libs required:
    libargp.so.0
    libgcrypt.so.20
Shared Libs provided:
    libipmidetect.so.0
    libipmimonitoring.so.6
    libfreeipmi.so.17
    libipmiconsole.so.2
Annotations    :
    FreeBSD_version: 1300139
    repo_type      : binary
    repository     : FreeBSD
Flat size      : 20.0MiB
...
[lanin@freebsd ~]$ pkg info openipmi
openipmi-2.0.29
Name           : openipmi
Version        : 2.0.29
Installed on   : Thu May 12 18:24:32 2022 MSK
Origin         : sysutils/openipmi
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : sysutils
Licenses       : GPLv2
Maintainer     : egypcio@FreeBSD.org
WWW            : http://openipmi.sourceforge.net/
Comment        : Complex IPMI management software
Options        :
    GDBM           : off
    GLIB20         : off
    PERL           : off
    PYTHON         : off
    SNMP           : off
    SSL            : off
    TCL            : off
    TKINTER        : off
Shared Libs required:
    libpopt.so.0
    libreadline.so.8
Shared Libs provided:
    libOpenIPMIpthread.so.0
    libIPMIlanserv.so.0
    libOpenIPMIcmdlang.so.0
    libOpenIPMIui.so.1
    libOpenIPMI.so.0
    libOpenIPMIposix.so.0
    libOpenIPMIutils.so.0
Annotations    :
    FreeBSD_version: 1300139
    repo_type      : binary
    repository     : FreeBSD
Flat size      : 5.31MiB


But on Debian the same soft works fine (I do not advertise Linux, do not blame me - I am trying to find a solution):
Code:
lanin@debian2:~$ sudo ipmitool sdr list
CPU1 Temperature | 28 degrees C      | ok
CPU2 Temperature | 31 degrees C      | ok
DIMMA1_Temp      | 35 degrees C      | ok
DIMMB1_Temp      | 35 degrees C      | ok
DIMMC1_Temp      | 35 degrees C      | ok
DIMMD1_Temp      | 33 degrees C      | ok
DIMME1_Temp      | 33 degrees C      | ok
DIMMF1_Temp      | 32 degrees C      | ok
DIMMG1_Temp      | 34 degrees C      | ok
DIMMH1_Temp      | 34 degrees C      | ok
DIMMJ1_Temp      | 34 degrees C      | ok
DIMMK1_Temp      | 35 degrees C      | ok
DIMML1_Temp      | 35 degrees C      | ok
DIMMM1_Temp      | 34 degrees C      | ok
+VCCIO1          | 0.99 Volts        | ok
+VCORE1          | 1.78 Volts        | ok
+VCORE2          | 1.79 Volts        | ok
+VDDQ_ABC_CPU1   | 1.22 Volts        | ok
+VDDQ_DEF_CPU1   | 1.20 Volts        | ok
+VDDQ_GHJ_CPU2   | 1.20 Volts        | ok
+VDDQ_KLM_CPU2   | 1.22 Volts        | ok
+12V             | 12.10 Volts       | ok
+5V              | 4.99 Volts        | ok
+5VSB            | 4.93 Volts        | ok
+3.3V            | 3.26 Volts        | ok
+3.3VSB          | 3.22 Volts        | ok
VBAT             | 3.36 Volts        | ok
CPU_FAN1         | 700 RPM           | ok
CPU_FAN2         | 700 RPM           | ok
FRNT_FAN1        | 600 RPM           | ok
FRNT_FAN2        | 300 RPM           | cr
FRNT_FAN3        | 500 RPM           | ok
FRNT_FAN4        | disabled          | ns
FRNT_FAN5        | 600 RPM           | ok
REAR_FAN1        | 600 RPM           | ok
REAR_FAN2        | 600 RPM           | ok
PMBPower1        | no reading        | ns
CPU1_ECC1        | 0x00              | ok
CPU2_ECC1        | 0x00              | ok
CPU_CATERR       | 0x00              | ok
Memory_Train_ERR | 0x00              | ok
NM Capabilities  | 0x00              | ok
Watchdog2        | 0x00              | ok

And this result is the same as when I use remotely access to my host's BMC from my notebook's web console.

The question is : how can I get true values of DIMM temperature sensors locally (not remotely) on FreeBSD host.
 
Top