Re: Lost my Sensors (or should be senses!) with 4.2

2008-11-09 Thread Constantine A. Murenin
fixed, lm87.c#rev1.20. :)

The bug was caused by an ininitialised value, such that fan sensors in
certain chips (lm81, adm9240 and ds1780) might have pseudo-randomly
never appeared. Just to make it clear -- this was not a regression in
4.2, the fact that it was missing from 4.2 is simply a pseudo-random
occurrence. :)

In any case, the bug should be gone for good, thanks to LLVM/Clang
Static Analyser.

br,
cnst.su.

On 09/11/2007, Simon Slaytor <[EMAIL PROTECTED]> wrote:
> Hi Folks,
>
>  I've just been upgrading some of our old war horses (Nokia IP440) to 4.2.
> They run Intel made BX PIII chipset motherboards, dmesg below.
>
>  Whilst not extensive the boards do have some sensor data that we grab to
> check on the health of the old girls. After a fresh install of 4.2 I noticed
> we had lost the FAN readout from the list of sensors, see output below
> (taken from different boxes but I've confirmed the loss using the same box
> switching between 4.1 and 4.2).
>
>  Whilst this isn't critical for us on these units whatever is causing the
> omission may have bigger problems for other people so I thought I'd bring it
> to the lists attention.
>
>  Many thanks to all the developers for yet another excellence release in
> 4.2, the bulk CD order is going through soon!
>
>  Sensor Output from 4.1 i386 (sysctl -a hw)
>
>  hw.machine=i386
>  hw.model=Intel Pentium III ("GenuineIntel" 686-class)
>  hw.ncpu=1
>  hw.byteorder=1234
>  hw.physmem=267993088
>  hw.usermem=267988992
>  hw.pagesize=4096
>  hw.disknames=wd0,cd0,fd0
>  hw.diskcount=3
>  hw.sensors.lmenv0.temp1=23.00 degC (Internal)
>  *hw.sensors.lmenv0.fan0=2647 RPM *** MISSING ***
>  hw.sensors.lmenv0.fan1=3970 RPM * MISSING 
>  hw.sensors.lmenv0.volt0=1.52 VDC (+2.5Vin)
>  hw.sensors.lmenv0.volt1=1.66 VDC (Vccp)
>  hw.sensors.lmenv0.volt2=3.30 VDC (+Vcc)
>  hw.sensors.lmenv0.volt3=5.08 VDC (+5Vin/Vcc)
>  hw.sensors.lmenv0.volt4=12.38 VDC (+12Vin)
>  hw.sensors.lmenv0.volt5=2.43 VDC (Vccp)
>  hw.cpuspeed=599
>  hw.vendor=Intel Corporation
>  hw.product=SE440BX-2
>  hw.uuid=ebf758f0-b47b-11d4-af0d-0030d3006ea4
>
>  Sensor Output from 4.2 i386 (sysctl -a hw)
>
>  hw.machine=i386
>  hw.model=Intel Pentium III ("GenuineIntel" 686-class)
>  hw.ncpu=1
>  hw.byteorder=1234
>  hw.physmem=267993088
>  hw.usermem=267984896
>  hw.pagesize=4096
>  hw.disknames=wd0,cd0,fd0
>  hw.diskcount=3
>  hw.sensors.lmenv0.temp1=28.00 degC (Internal)
>  hw.sensors.lmenv0.volt0=1.50 VDC (+2.5Vin)
>  hw.sensors.lmenv0.volt1=1.69 VDC (Vccp)
>  hw.sensors.lmenv0.volt2=3.27 VDC (+Vcc)
>  hw.sensors.lmenv0.volt3=5.05 VDC (+5Vin/Vcc)
>  hw.sensors.lmenv0.volt4=12.00 VDC (+12Vin)
>  hw.sensors.lmenv0.volt5=2.40 VDC (Vccp)
>  hw.sensors.lmenv0.volt6=2.48 VDC (AIN1)
>  hw.sensors.lmenv0.volt7=1.66 VDC (AIN2)
>  hw.cpuspeed=599
>  hw.vendor=Intel Corporation
>  hw.product=SE440BX-2
>  hw.uuid=82947f19-b652-11d4-b074-0030d3001e5e
>
>  DMESG's
>
>  OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
>
> [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
>  cpu0: Intel Pentium III ("GenuineIntel" 686-class) 599 MHz
>  cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,SER,MMX,FXSR,SSE
>  real mem  = 267993088 (261712K)
>  avail mem = 236847104 (231296K)
>  using 3302 buffers containing 13524992 bytes (13208K) of memory
>  mainbus0 (root)
>  bios0 at mainbus0: AT/286+ BIOS, date 02/23/00, BIOS32 rev. 0 @ 0xfd7a0,
> SMBIOS rev. 2.1 @ 0xefbe0 (42 entries)
>  bios0: Intel Corporation SE440BX-2
>  pcibios0 at bios0: rev 2.1 @ 0xfd7a0/0x860
>  pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
>  pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
>  pcibios0: PCI bus #2 is the last bus
>  bios0: ROM list: 0xc/0x8000 0xe/0x4000! 0xe4000/0xc000
>  acpi at mainbus0 not configured
>  cpu0 at mainbus0
>  pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
>  pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
>  ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
>  pci1 at ppb0 bus 1
>  vga1 at pci1 dev 0 function 0 "ATI Mach64 GM" rev 0x27
>  wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
>  wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
>  pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
>  pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel
> 0 wired to compatibility, channel 1 wired to compatibility
>  wd0 at pciide0 channel 0 drive 0: 
>  wd0: 16-sector PIO, LBA, 19623MB, 40188960 sectors
>  wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
>  atapiscsi0 at pciide0 channel 1 drive 0
>  scsibus0 at atapiscsi0: 2 targets
>  cd0 at scsibus0 targ 0 lun 0:  SCSI0 5/cdrom removable
>  cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
>  uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 9
>  usb0 at uhci0: USB revision 1.0
>  uhub0 at usb0
>  uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
>  uhub0: 2 port

Lost my Sensors (or should be senses!) with 4.2

2007-11-09 Thread Simon Slaytor

Hi Folks,

I've just been upgrading some of our old war horses (Nokia IP440) to 
4.2. They run Intel made BX PIII chipset motherboards, dmesg below.


Whilst not extensive the boards do have some sensor data that we grab to 
check on the health of the old girls. After a fresh install of 4.2 I 
noticed we had lost the FAN readout from the list of sensors, see output 
below (taken from different boxes but I've confirmed the loss using the 
same box switching between 4.1 and 4.2).


Whilst this isn't critical for us on these units whatever is causing the 
omission may have bigger problems for other people so I thought I'd 
bring it to the lists attention.


Many thanks to all the developers for yet another excellence release in 
4.2, the bulk CD order is going through soon!


Sensor Output from 4.1 i386 (sysctl -a hw)

hw.machine=i386
hw.model=Intel Pentium III ("GenuineIntel" 686-class)
hw.ncpu=1
hw.byteorder=1234
hw.physmem=267993088
hw.usermem=267988992
hw.pagesize=4096
hw.disknames=wd0,cd0,fd0
hw.diskcount=3
hw.sensors.lmenv0.temp1=23.00 degC (Internal)
*hw.sensors.lmenv0.fan0=2647 RPM *** MISSING ***
hw.sensors.lmenv0.fan1=3970 RPM * MISSING 
hw.sensors.lmenv0.volt0=1.52 VDC (+2.5Vin)
hw.sensors.lmenv0.volt1=1.66 VDC (Vccp)
hw.sensors.lmenv0.volt2=3.30 VDC (+Vcc)
hw.sensors.lmenv0.volt3=5.08 VDC (+5Vin/Vcc)
hw.sensors.lmenv0.volt4=12.38 VDC (+12Vin)
hw.sensors.lmenv0.volt5=2.43 VDC (Vccp)
hw.cpuspeed=599
hw.vendor=Intel Corporation
hw.product=SE440BX-2
hw.uuid=ebf758f0-b47b-11d4-af0d-0030d3006ea4

Sensor Output from 4.2 i386 (sysctl -a hw)

hw.machine=i386
hw.model=Intel Pentium III ("GenuineIntel" 686-class)
hw.ncpu=1
hw.byteorder=1234
hw.physmem=267993088
hw.usermem=267984896
hw.pagesize=4096
hw.disknames=wd0,cd0,fd0
hw.diskcount=3
hw.sensors.lmenv0.temp1=28.00 degC (Internal)
hw.sensors.lmenv0.volt0=1.50 VDC (+2.5Vin)
hw.sensors.lmenv0.volt1=1.69 VDC (Vccp)
hw.sensors.lmenv0.volt2=3.27 VDC (+Vcc)
hw.sensors.lmenv0.volt3=5.05 VDC (+5Vin/Vcc)
hw.sensors.lmenv0.volt4=12.00 VDC (+12Vin)
hw.sensors.lmenv0.volt5=2.40 VDC (Vccp)
hw.sensors.lmenv0.volt6=2.48 VDC (AIN1)
hw.sensors.lmenv0.volt7=1.66 VDC (AIN2)
hw.cpuspeed=599
hw.vendor=Intel Corporation
hw.product=SE440BX-2
hw.uuid=82947f19-b652-11d4-b074-0030d3001e5e

DMESG's

OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 599 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,SER,MMX,FXSR,SSE

real mem  = 267993088 (261712K)
avail mem = 236847104 (231296K)
using 3302 buffers containing 13524992 bytes (13208K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 02/23/00, BIOS32 rev. 0 @ 0xfd7a0, 
SMBIOS rev. 2.1 @ 0xefbe0 (42 entries)

bios0: Intel Corporation SE440BX-2
pcibios0 at bios0: rev 2.1 @ 0xfd7a0/0x860
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc/0x8000 0xe/0x4000! 0xe4000/0xc000
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Mach64 GM" rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, 
channel 0 wired to compatibility, channel 1 wired to compatibility

wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 19623MB, 40188960 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
lmenv0 at iic0 addr 0x2d: adm9240 rev 2, starting scan
ppb1 at pci0 dev 13 function 0 "DEC 21152 PCI-PCI" rev 0x03
pci2 at ppb1 bus 2
dc0 at pci2 dev 4 function 0 "DEC 21142/3" rev 0x41: irq 11, address 
00:c0:95:e0:9d:1c

dcphy0 at dc0 phy 31: internal PHY
dc1 at pci2 dev 5 function 0 "DEC 21142/3" rev 0x41: irq 10, address 
00:c0:95:e0:9d:1d

dcphy1 at dc1 phy 31: internal PHY
dc2 at pci2 dev 6 function 0 "DEC 21142/3" rev 0x41: irq 7, address 
00:c0:95:e0:9d:1e

dcphy2 at dc2 phy 31: internal PHY
dc3 at pci2 dev 7 function 0 "DEC 21142/3" rev 0x41: irq 9, address 
00:c0:95:e0:9d:1f

dcphy3 at dc3 phy 31: internal PHY
isa0 at pc