Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Nov 2011 22:47:01 +0400
From:      =?koi8-r?B?4c7Uz84g68zF09M=?= <rc5hack@yandex.ru>
To:        Conrad J. Sabatier <conrads@cox.net>,freebsd-questions@freebsd.org
Subject:   Fwd: How to get /dev/smb* ?
Message-ID:  <61041320346021@web46.yandex.ru>

next in thread | raw e-mail | index | archive | help
02.11.2011, 14:01, "Conrad J. Sabatier" <conrads@cox.net>:

> šI just noticed, looking back at your previous mail, that you don't seem
> što have a "device smbios" line in your kernel config. šTry adding that
> šand see if the smbios facility shows up at boot time.

You're actually right!

Now, with this lines in kernel, SMBIOS looks more alive:

# on-die sensor (added)
device šššššššššcoretemp

# System management bus
device šššššššššsmb
device šššššššššsmbus
device šššššššššsmbios
device šššššššššichsmb
device šššššššššnfsmb
device šššššššššintpm
device šššššššššalpm
device šššššššššviapm
device šššššššššnfpm
device šššššššššiicbus
device šššššššššiicbb
device šššššššššic
device šššššššššiic
device šššššššššiicsmb
device šššššššššamdsmb

# CPU control pseudo-device. Provides access to MSRs, CPUID info and microcode update feature.
device šššššššššcpuctl

# System Management Bus (SMB)
options ššššššššENABLE_ALART ššššššššššš# Control alarm on Intel intpm driver

So, system shows it during boot:

# dmesg -a |grep smb
smbios0: <System Management BIOS> at iomem 0xf0480-0xf049e on motherboard
smbios0: Version: 2.7, BCD Revision: 2.7

> šAlthough no "smbios0" device actually shows up under /dev. šPerhaps
> šsome more knowledgeable individual might enlighten us as to what
> šcapabilities having this in your kernel config actually enables.

The same thing.

# ls -la /dev/sm*
ls: /dev/sm*: No such file or directory

> šAlso, just looking at the (x)mbmon port, the COMMENT line in the
> šMakefile states:
>
> šA X motherboard monitor for LM78/79, W8378x, AS99127F, VT82C686 and
> šADM9240
>
> šSo, this port appears to be useful only on a very specific range of
> šmotherboards.

I hope that those chipsets are kind of generic things, that are compatible with modern ones like my Z68. It goes without saying that SOME of modern MB, supporting Intel Core(tm) CPUs are still supported by mbmon - it shows state of MB (not CPU) thermal sensor, for example. I can't give you exact models, but I can give it after some days (need to ask).

>> ššDoes it means that it is no way to read temperature sensors on
>> ššmotherboard?
> šWell, it depends. š:-)
>
> šI'm not at all familiar with your particular processor/motherboard, so I
> šcan only offer some rather limited advice that may steer you in the
> šright direction for further exploration. šThere are a number of devices
> šyou can enable in your kernel config that may provide some of what
> šyou're looking for.
>
> šHere, on my amd64 box, for instance, "device amdtemp", along with
> š"device cpuctl" and "device cpufreq" makes the following dev.cpu.*
> šsysctls available, which are one way to (manually) monitor your
> šsystem. šAs you can see below, this provides information on CPU
> štemperature and frequency.
>
> š# sysctl dev.cpu
> šdev.cpu.0.%desc: ACPI CPU
> šdev.cpu.0.%driver: cpu
> šdev.cpu.0.%location: handle=\_PR_.P001
> šdev.cpu.0.%pnpinfo: _HID=none _UID=0
> šdev.cpu.0.%parent: acpi0
> šdev.cpu.0.temperature: 47.0C
> šdev.cpu.0.freq: 2200
> šdev.cpu.0.freq_levels: 2200/23500 1100/14280
> šdev.cpu.0.cx_supported: C1/0
> šdev.cpu.0.cx_lowest: C1
> šdev.cpu.0.cx_usage: 100.00% last 1931us
> šdev.cpu.1.%desc: ACPI CPU
> šdev.cpu.1.%driver: cpu
> šdev.cpu.1.%location: handle=\_PR_.P002
> šdev.cpu.1.%pnpinfo: _HID=none _UID=0
> šdev.cpu.1.%parent: acpi0
> šdev.cpu.1.temperature: 47.0C
> šdev.cpu.1.cx_supported: C1/0
> šdev.cpu.1.cx_lowest: C1
> šdev.cpu.1.cx_usage: 100.00% last 4658us
> šdev.cpu.2.%desc: ACPI CPU
> šdev.cpu.2.%driver: cpu
> šdev.cpu.2.%location: handle=\_PR_.P003
> šdev.cpu.2.%pnpinfo: _HID=none _UID=0
> šdev.cpu.2.%parent: acpi0
> šdev.cpu.2.temperature: 47.0C
> šdev.cpu.2.cx_supported: C1/0
> šdev.cpu.2.cx_lowest: C1
> šdev.cpu.2.cx_usage: 100.00% last 3551us
> šdev.cpu.3.%desc: ACPI CPU
> šdev.cpu.3.%driver: cpu
> šdev.cpu.3.%location: handle=\_PR_.P004
> šdev.cpu.3.%pnpinfo: _HID=none _UID=0
> šdev.cpu.3.%parent: acpi0
> šdev.cpu.3.temperature: 47.0C
> šdev.cpu.3.cx_supported: C1/0
> šdev.cpu.3.cx_lowest: C1
> šdev.cpu.3.cx_usage: 100.00% last 4943us

As I already say, "coretemp works fine" - I could read CPU thermal sensors with šdev.cpu.#CORE_ID.temperature sysctl after I added "coretemp" device into my kernel.

Problem is to read MB sensors, like "chasis (system) temperature", fans RPM, voltages and so on.

Now, with smbios device enabled, it still doesn't work the perfect way:

# mbmon -V
No VIA686 HWM available!!
InitMBInfo: Unknown error: 0

# mbmon -S
No SMBus HWM available!!
InitMBInfo: Unknown error: 0

# mbmon -I
No ISA-IO HWM available!!
InitMBInfo: Unknown error: 0

# mbmon -A
InitMBInfo: Unknown error: 0
This program needs "setuid root"!!

# mbmon -D
Probe Request: none

>>> šTesting Reg's at ISA-IO <<<

[ISA Port IO-Base:0x290]
Probing Winbond/Asus/LM78/79 chip:
ššCR40:0x44, šCR41:0x00, šCR42:0x00, šCR43:0x00
ššCR44:0x00, šCR45:0x00, šCR46:0x00, šCR47:0x00
ššCR48:0x00, šCR49:0x00, šCR4A:0x00, šCR4B:0x00
ššCR4C:0x00, šCR4D:0x00, šCR4E:0x80, šCR4F:0x00
ššCR56:0xFF, šCR58:0xFF, šCR59:0xFF, šCR5D:0x19
ššCR3E:0xFF, šCR13:0x00, šCR17:0xFF, šCRA1:0xFF
ššCR20:0xD1, šCR22:0x37, šCR23:0x78, šCR24:0x8A
ššCR27:0xC7, šCR29:0xFF, šCR2A:0xFF, šCR2B:0xFF
No Hardware Monitor found!!
InitMBInfo: Unknown error: 0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?61041320346021>