Thank you for your explanation and, morevoer, for everything else
what makes the system work, Theo. I am happy to see reasonable output
of the sensors - especially during a hot summer time like this ...
With best regards,
Jens
On 07/29/18 15:27, Theo de Raadt wrote:
> This multi-vendor family of "SuperIO" chips is racy and weird, and
> difficult to probe directly. They require bankswitching registers, with
> an unclear locking regime against the possibility of a system BMC or SMI
> also performing the same actions. In general, the code falls through to
> a device which is a subset of the , and there isn't too much chaos. This
> area is best-effort, be happy you have the sensors.
>
> Jens A. Griepentrog <m-griepentrog@t-online.de> wrote:
>> Dear Listeners,
>>
>> Just for curiosity: Today I have recognized a surprising difference
>> in dmesg and sysctl hw.sensors output after two times of booting the
>> same kernel on the same machine: After the first boot, I was surprised
>> to see (for the first time as far as I remember) the lines
>> ...
>> lm0 at isa0 port 0x290/8: NCT6776F
>> ...
>> hw.sensors.lm0.fan0=1467 RPM
>> hw.sensors.lm0.fan1=1350 RPM
>> hw.sensors.lm0.fan2=1454 RPM
>> hw.sensors.lm0.fan3=0 RPM
>> hw.sensors.lm0.fan4=0 RPM
>> ...
>> with respect to the lm sensor detection instead of the usual lines
>> ...
>> lm0 at isa0 port 0x290/8: W83627DHG
>> ...
>> hw.sensors.lm0.fan0=1562 RPM
>> hw.sensors.lm0.fan1=1454 RPM
>> hw.sensors.lm0.fan2=1562 RPM
>> ...
>> six ours later after the second boot. Here, you find the full
>> differences and one instance of the dmesg and sysctl.sensors output:
>>
>> $ diff dmesg-70.log dmesg-71.log
>>
>> 4c4
>> < avail mem = 16627154944 (15856MB)
>> ---
>>> avail mem = 16627150848 (15856MB)
>> 18c18
>> < cpu0: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.98 MHz
>> ---
>>> cpu0: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.99 MHz
>> 21c21
>> < acpitimer0: recalibrated TSC frequency 1866735229 Hz
>> ---
>>> acpitimer0: recalibrated TSC frequency 1866741453 Hz
>> 45c45
>> < acpihpet0: recalibrated TSC frequency 1866743200 Hz
>> ---
>>> acpihpet0: recalibrated TSC frequency 1866741920 Hz
>> 141c141
>> < lm0 at isa0 port 0x290/8: NCT6776F
>> ---
>>> lm0 at isa0 port 0x290/8: W83627DHG
>> 176,188c176,186
>> < hw.sensors.cpu0.temp0=30.00 degC
>> < hw.sensors.sdtemp0.temp0=36.50 degC
>> < hw.sensors.sdtemp1.temp0=34.50 degC
>> < hw.sensors.sdtemp2.temp0=35.50 degC
>> < hw.sensors.sdtemp3.temp0=36.75 degC
>> < hw.sensors.lm0.temp0=28.00 degC
>> < hw.sensors.lm0.temp1=28.50 degC
>> < hw.sensors.lm0.temp2=29.00 degC
>> < hw.sensors.lm0.fan0=1467 RPM
>> < hw.sensors.lm0.fan1=1350 RPM
>> < hw.sensors.lm0.fan2=1454 RPM
>> < hw.sensors.lm0.fan3=0 RPM
>> < hw.sensors.lm0.fan4=0 RPM
>> ---
>>> hw.sensors.cpu0.temp0=32.00 degC
>>> hw.sensors.sdtemp0.temp0=44.25 degC
>>> hw.sensors.sdtemp1.temp0=39.50 degC
>>> hw.sensors.sdtemp2.temp0=42.50 degC
>>> hw.sensors.sdtemp3.temp0=44.75 degC
>>> hw.sensors.lm0.temp0=31.00 degC
>>> hw.sensors.lm0.temp1=31.00 degC
>>> hw.sensors.lm0.temp2=33.00 degC
>>> hw.sensors.lm0.fan0=1562 RPM
>>> hw.sensors.lm0.fan1=1454 RPM
>>> hw.sensors.lm0.fan2=1562 RPM
>>
>> $ cat dmesg-70.log
>> OpenBSD 6.3 (GENERIC.MP) #6: Tue Jul 24 13:40:48 CEST 2018
>>
>> root@syspatch-63-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>> real mem = 17154113536 (16359MB)
>> avail mem = 16627154944 (15856MB)
>> mpath0 at root
>> scsibus0 at mpath0: 256 targets
>> mainbus0 at root
>> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf06f0 (62 entries)
>> bios0: vendor American Megatrends Inc. version "0705" date 06/29/2010
>> bios0: ASUSTeK Computer INC. P7F-M WS
>> acpi0 at bios0: rev 2
>> acpi0: sleep states S0 S1 S3 S4 S5
>> acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT
>> acpi0: wakeup devices BR1E(S4) UAR1(S4) PS2K(S4) EUSB(S4) USB0(S4)
>> USB1(S4) USB2(S4) USB3(S4) USBE(S4) USB4(S4) USB5(S4) USB6(S4)
>> BR21(S4) BR22(S4) BR23(S4) P0P1(S4) [...]
>> acpitimer0 at acpi0: 3579545 Hz, 24 bits
>> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
>> cpu0 at mainbus0: apid 0 (boot processor)
>> cpu0: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.98 MHz
>> cpu0:
>> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
>> cpu0: 256KB 64b/line 8-way L2 cache
>> acpitimer0: recalibrated TSC frequency 1866735229 Hz
>> cpu0: smt 0, core 0, package 0
>> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
>> cpu0: apic clock running at 133MHz
>> cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
>> cpu1 at mainbus0: apid 2 (application processor)
>> cpu1: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.73 MHz
>> cpu1:
>> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
>> cpu1: 256KB 64b/line 8-way L2 cache
>> cpu1: smt 0, core 1, package 0
>> cpu2 at mainbus0: apid 4 (application processor)
>> cpu2: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.73 MHz
>> cpu2:
>> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
>> cpu2: 256KB 64b/line 8-way L2 cache
>> cpu2: smt 0, core 2, package 0
>> cpu3 at mainbus0: apid 6 (application processor)
>> cpu3: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz, 1866.73 MHz
>> cpu3:
>> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,MELTDOWN
>> cpu3: 256KB 64b/line 8-way L2 cache
>> cpu3: smt 0, core 3, package 0
>> ioapic0 at mainbus0: apid 7 pa 0xfec00000, version 20, 24 pins
>> , remapped to apid 7
>> acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
>> acpihpet0 at acpi0: 14318179 Hz
>> acpihpet0: recalibrated TSC frequency 1866743200 Hz
>> acpiprt0 at acpi0: bus 0 (PCI0)
>> acpiprt1 at acpi0: bus 7 (BR1E)
>> acpiprt2 at acpi0: bus -1 (BR21)
>> acpiprt3 at acpi0: bus -1 (BR22)
>> acpiprt4 at acpi0: bus -1 (BR23)
>> acpiprt5 at acpi0: bus -1 (P0P1)
>> acpiprt6 at acpi0: bus 1 (P0P3)
>> acpiprt7 at acpi0: bus -1 (P0P4)
>> acpiprt8 at acpi0: bus -1 (P0P5)
>> acpiprt9 at acpi0: bus -1 (P0P6)
>> acpiprt10 at acpi0: bus 2 (BR20)
>> acpiprt11 at acpi0: bus 5 (BR26)
>> acpiprt12 at acpi0: bus 6 (BR27)
>> acpicpu0 at acpi0: !C3(350@17 mwait.1@0x20), !C3(500@17 mwait.1@0x10),
>> C1(1000@1 mwait.1), PSS
>> acpicpu1 at acpi0: !C3(350@17 mwait.1@0x20), !C3(500@17 mwait.1@0x10),
>> C1(1000@1 mwait.1), PSS
>> acpicpu2 at acpi0: !C3(350@17 mwait.1@0x20), !C3(500@17 mwait.1@0x10),
>> C1(1000@1 mwait.1), PSS
>> acpicpu3 at acpi0: !C3(350@17 mwait.1@0x20), !C3(500@17 mwait.1@0x10),
>> C1(1000@1 mwait.1), PSS
>> acpibtn0 at acpi0: PWRB
>> ipmi at mainbus0 not configured
>> cpu0: Enhanced SpeedStep 1866 MHz: speeds: 1868, 1867, 1733, 1600,
>> 1467, 1333, 1200 MHz
>> pci0 at mainbus0 bus 0
>> pchb0 at pci0 dev 0 function 0 "Intel Core DMI" rev 0x11
>> ppb0 at pci0 dev 3 function 0 "Intel Core PCIE" rev 0x11: msi
>> pci1 at ppb0 bus 1
>> radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 6450" rev 0x00
>> drm0 at radeondrm0
>> radeondrm0: msi
>> azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 6400 Audio" rev 0x00: msi
>> azalia0: no supported codecs
>> "Intel Core Management" rev 0x11 at pci0 dev 8 function 0 not configured
>> "Intel Core Scratch" rev 0x11 at pci0 dev 8 function 1 not configured
>> "Intel Core Control" rev 0x11 at pci0 dev 8 function 2 not configured
>> "Intel Core Misc" rev 0x11 at pci0 dev 8 function 3 not configured
>> "Intel Core QPI Link" rev 0x11 at pci0 dev 16 function 0 not configured
>> "Intel Core QPI Routing" rev 0x11 at pci0 dev 16 function 1 not configured
>> ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: apic 7 int 16
>> usb0 at ehci0: USB revision 2.0
>> uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
>> 2.00/1.00 addr 1
>> azalia1 at pci0 dev 27 function 0 "Intel 3400 HD Audio" rev 0x05: msi
>> azalia1: codecs: Realtek ALC888
>> audio0 at azalia1
>> ppb1 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x05: msi
>> pci2 at ppb1 bus 2
>> ppb2 at pci0 dev 28 function 4 "Intel 3400 PCIE" rev 0x05
>> pci3 at ppb2 bus 3
>> ppb3 at pci0 dev 28 function 5 "Intel 3400 PCIE" rev 0x05
>> pci4 at ppb3 bus 4
>> ppb4 at pci0 dev 28 function 6 "Intel 3400 PCIE" rev 0x05
>> pci5 at ppb4 bus 5
>> em0 at pci5 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
>> bc:ae:c5:05:5b:71
>> ppb5 at pci0 dev 28 function 7 "Intel 3400 PCIE" rev 0x05
>> pci6 at ppb5 bus 6
>> em1 at pci6 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
>> bc:ae:c5:05:5b:b1
>> ehci1 at pci0 dev 29 function 0 "Intel 3400 USB" rev 0x05: apic 7 int 23
>> usb1 at ehci1: USB revision 2.0
>> uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
>> 2.00/1.00 addr 1
>> ppb6 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
>> pci7 at ppb6 bus 7
>> pcib0 at pci0 dev 31 function 0 "Intel 3420 LPC" rev 0x05
>> ahci0 at pci0 dev 31 function 2 "Intel 3400 AHCI" rev 0x05: msi, AHCI 1.3
>> ahci0: port 0: 3.0Gb/s
>> ahci0: port 1: 3.0Gb/s
>> ahci0: port 2: 3.0Gb/s
>> ahci0: port 3: 3.0Gb/s
>> ahci0: port 4: 1.5Gb/s
>> ahci0: port 5: 1.5Gb/s
>> scsibus1 at ahci0: 32 targets
>> sd0 at scsibus1 targ 0 lun 0: <ATA, SSDSA2SH064G1GC, 045C> SCSI3
>> 0/direct fixed naa.5001517959470944
>> sd0: 61057MB, 512 bytes/sector, 125045424 sectors
>> sd1 at scsibus1 targ 1 lun 0: <ATA, SSDSA2SH032G1GN, 045C> SCSI3
>> 0/direct fixed naa.50015179594773ba
>> sd1: 30517MB, 512 bytes/sector, 62500000 sectors
>> sd2 at scsibus1 targ 2 lun 0: <ATA, INTEL SSDSA2VP02, 2CV1> SCSI3
>> 0/direct fixed naa.50015179595d23dc
>> sd2: 19087MB, 512 bytes/sector, 39091248 sectors, thin
>> sd3 at scsibus1 targ 3 lun 0: <ATA, INTEL SSDSA2VP02, 2CV1> SCSI3
>> 0/direct fixed naa.50015179595d23a4
>> sd3: 19087MB, 512 bytes/sector, 39091248 sectors, thin
>> cd0 at scsibus1 targ 4 lun 0: <Optiarc, DVD RW AD-7260S, 1.00> ATAPI
>> 5/cdrom removable
>> cd1 at scsibus1 targ 5 lun 0: <MATSHITA, LKM-KB23, A232> ATAPI 5/cdrom
>> removable
>> ichiic0 at pci0 dev 31 function 3 "Intel 3400 SMBus" rev 0x05: apic 7 int 18
>> iic0 at ichiic0
>> sdtemp0 at iic0 addr 0x18: stts424e02
>> sdtemp1 at iic0 addr 0x19: stts2002
>> sdtemp2 at iic0 addr 0x1a: stts424e02
>> sdtemp3 at iic0 addr 0x1b: stts2002
>> spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM registered ECC PC3-10600
>> with thermal sensor
>> spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM registered ECC PC3-10600
>> with thermal sensor
>> spdmem2 at iic0 addr 0x52: 4GB DDR3 SDRAM registered ECC PC3-10600
>> with thermal sensor
>> spdmem3 at iic0 addr 0x53: 4GB DDR3 SDRAM registered ECC PC3-10600
>> with thermal sensor
>> isa0 at pcib0
>> isadma0 at isa0
>> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
>> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
>> pckbd0 at pckbc0 (kbd slot)
>> wskbd0 at pckbd0: console keyboard
>> pcppi0 at isa0 port 0x61
>> spkr0 at pcppi0
>> lm0 at isa0 port 0x290/8: NCT6776F
>> vmm0 at mainbus0: VMX/EPT
>> uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching
>> Hub" rev 2.00/0.00 addr 2
>> uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching
>> Hub" rev 2.00/0.00 addr 2
>> umass0 at uhub3 port 1 configuration 1 interface 0 "Generic Mass
>> Storage" rev 2.00/1.03 addr 3
>> umass0: using SCSI over Bulk-Only
>> scsibus2 at umass0: 2 targets, initiator 0
>> sd4 at scsibus2 targ 1 lun 0: <Generic, Flash Disk, 8.07> SCSI2
>> 0/direct removable
>> sd4: 15978MB, 512 bytes/sector, 32722944 sectors
>> uhidev0 at uhub3 port 2 configuration 1 interface 0 "Logitech Optical
>> USB Mouse" rev 2.00/3.40 addr 4
>> uhidev0: iclass 3/1
>> ums0 at uhidev0: 3 buttons, Z dir
>> wsmouse0 at ums0 mux 0
>> umass1 at uhub3 port 4 configuration 1 interface 0 "Generic Mass
>> Storage Device" rev 2.00/1.00 addr 5
>> umass1: using SCSI over Bulk-Only
>> scsibus3 at umass1: 2 targets, initiator 0
>> sd5 at scsibus3 targ 1 lun 0: <Generic-, SD/MMC, 1.00> SCSI0 0/direct
>> removable
>> sd6 at scsibus3 targ 1 lun 1: <Generic-, Compact Flash, 1.01> SCSI0
>> 0/direct removable
>> sd7 at scsibus3 targ 1 lun 2: <Generic-, SM/xD-Picture, 1.02> SCSI0
>> 0/direct removable
>> sd8 at scsibus3 targ 1 lun 3: <Generic-, MS/MS-Pro, 1.03> SCSI0
>> 0/direct removable
>> uhidev1 at uhub3 port 4 configuration 1 interface 1 "Generic Mass
>> Storage Device" rev 2.00/1.00 addr 5
>> uhidev1: iclass 3/0, 4 report ids
>> uhid0 at uhidev1 reportid 4: input=7, output=0, feature=0
>> uftdi0 at uhub3 port 5 configuration 1 interface 0 "FTDI FT232R USB
>> UART" rev 2.00/6.00 addr 6
>> ucom0 at uftdi0 portno 1
>> uftdi1 at uhub3 port 6 configuration 1 interface 0 "FTDI FT232R USB
>> UART" rev 2.00/6.00 addr 7
>> ucom1 at uftdi1 portno 1
>> vscsi0 at root
>> scsibus4 at vscsi0: 256 targets
>> softraid0 at root
>> scsibus5 at softraid0: 256 targets
>> root on sd0a (78faa8282eb6f8fa.a) swap on sd0b dump on sd0b
>> radeondrm0: 1600x1200, 32bpp
>> wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
>> wsdisplay0: screen 1-5 added (std, vt100 emulation)
>> hw.sensors.cpu0.temp0=30.00 degC
>> hw.sensors.sdtemp0.temp0=36.50 degC
>> hw.sensors.sdtemp1.temp0=34.50 degC
>> hw.sensors.sdtemp2.temp0=35.50 degC
>> hw.sensors.sdtemp3.temp0=36.75 degC
>> hw.sensors.lm0.temp0=28.00 degC
>> hw.sensors.lm0.temp1=28.50 degC
>> hw.sensors.lm0.temp2=29.00 degC
>> hw.sensors.lm0.fan0=1467 RPM
>> hw.sensors.lm0.fan1=1350 RPM
>> hw.sensors.lm0.fan2=1454 RPM
>> hw.sensors.lm0.fan3=0 RPM
>> hw.sensors.lm0.fan4=0 RPM
>> hw.sensors.lm0.volt0=0.90 VDC (VCore)
>> hw.sensors.lm0.volt1=11.40 VDC (+12V)
>> hw.sensors.lm0.volt2=3.36 VDC (+3.3V)
>> hw.sensors.lm0.volt3=3.36 VDC (+3.3V)
>> hw.sensors.lm0.volt4=-6.66 VDC (-12V)
>> hw.sensors.lm0.volt5=1.66 VDC
>> hw.sensors.lm0.volt6=1.49 VDC
>> hw.sensors.lm0.volt7=3.33 VDC (3.3VSB)
>> hw.sensors.lm0.volt8=1.61 VDC (VBAT)
>>
>> With best regards,
>> Jens
>>
No comments:
Post a Comment