Re: HP notebook and wired temperatures

2013-06-08 Thread Sven Gaerner
On Fri, Jun 07, 2013 at 05:39:03PM +0200, Sven Gaerner wrote:
  A recent snapshot would probably fix this.
  
  http://openbsd.7691.n7.nabble.com/Somewhat-important-ACPI-diff-td228642.html
  (committed as rev. 1.201 of dsdt.c)
 
 Thanks for link. I will have a look.

I installed the snapshot that has been built on 6. June. This version
fixes all the issues. The system comes up without reporting any strange
temperatures.

sysctl hw.sensors shows expected values (around 55 C).

I attached the dmesg and the sysctl output.

Thanks a lot for your help and the great system.

Sven
1 at ppb0 bus 8
bge0 at pci1 dev 0 function 0 Broadcom BCM5753M rev 0x21, BCM5750 C1 
(0x4201): apic 1 int 16, address 00:16:d4:0d:67:3e
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: apic 1 int 17
pci2 at ppb1 bus 16
wpi0 at pci2 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: msi, MoW2, 
address 00:13:02:51:b4:19
ppb2 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01: apic 1 int 19
pci3 at ppb2 bus 32
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 1 int 20
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 1 int 22
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: apic 1 int 18
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x01: apic 1 int 19
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: apic 1 int 20
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe1
pci4 at ppb3 bus 2
cbb0 at pci4 dev 6 function 0 TI PCIXX12 CardBus rev 0x00: apic 1 int 18
TI PCIXX12 Multimedia Card Reader rev 0x00 at pci4 dev 6 function 2 not 
configured
sdhc0 at pci4 dev 6 function 3 TI PCIXX12 Secure Data rev 0x00: apic 1 int 22
sdmmc0 at sdhc0
TI PCIXX12 Smart Card rev 0x00 at pci4 dev 6 function 4 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x10, lattimer 0x20
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x01: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: MATSHITA, UJDA775 DVD/CDRW, 1.00 ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
ahci0 at pci0 dev 31 function 2 Intel 82801GBM AHCI rev 0x01: msi, AHCI 1.1
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: ATA, HTS541080G9SA00, MB4O SCSI3 0/direct fixed 
t10.ATA_HTS541080G9SA00_MPBDL0XKGUPHJM
sd0: 76319MB, 512 bytes/sector, 156301488 sectors
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
umass0 at uhub0 port 4 configuration 1 interface 0 SMI Corporation USB DISK 
rev 2.00/11.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: USB, Flash Disk, 1100 SCSI0 0/direct removable
sd1: 967MB, 512 bytes/sector, 1980416 sectors
ugen0 at uhub1 port 1 Broadcom Corp HP Integrated Module rev 2.00/1.00 addr 2
ugen1 at uhub2 port 1 AuthenTec Fingerprint Sensor rev 1.10/6.21 addr 2
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd1a (0ef2902f88d24fba.a) swap on sd1b dump on sd1b
syncing disks... done
rebooting...
OpenBSD 5.3-current (RAMDISK_CD) #136: Thu Jun  6 13:30:59 MDT 2013
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Genuine Intel(R) CPU T2400 @ 1.83GHz (GenuineIntel 686-class) 1.83 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF
real mem  = 3614830592 (3447MB)
avail mem = 3548520448 (3384MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/05/07, BIOS32 rev. 0 @ 0xf, SMBIOS 
rev. 2.4 @ 0xf398f (23 entries)
bios0: vendor Hewlett-Packard version 68YCU Ver. F.0B date 09/05/2007
bios0: Hewlett-Packard HP Compaq nc6400 (RA270AA#ABD)
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: 

HP notebook and wired temperatures

2013-06-07 Thread Sven Gaerner
Hi,

I installed OpenBSD 5.3 i386 on my HP nc6400 notebook. Now when booting
the system, the kernel prints
 acpitz3: critical temperate exceeded (3290 C): shutting down.

This temperature (3290 C) is shown after starting a system that was
powered off for several hours. After finishing the installation the
reported temperature was about 4180 C.

The other BSDs also report wired temperates but not that high. Some
years ago Linux reported about 55 C for the CPU which seems to be
a more realistic value.

Attached is a dmesg from the bsd.rd as this kernel does not immediately
shutdown the system.

Is there a way to disable this immediate shutdown of the system?
And how can I help to get sane values reported?

Thanks.

Sven
OpenBSD 5.3 (RAMDISK_CD) #49: Tue Mar 12 18:50:37 MDT 2013
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Genuine Intel(R) CPU T2400 @ 1.83GHz (GenuineIntel 686-class) 1.83 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF
real mem  = 3614830592 (3447MB)
avail mem = 3548024832 (3383MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/05/07, BIOS32 rev. 0 @ 0xf, SMBIOS 
rev. 2.4 @ 0xf398f (23 entries)
bios0: vendor Hewlett-Packard version 68YCU Ver. F.0B date 09/05/2007
bios0: Hewlett-Packard HP Compaq nc6400 (RA270AA#ABD)
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC HPET APIC MCFG TCPA SSDT SSDT SSDT SSDT SSDT
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpiprt0 at acpi0: bus 2 (C098)
acpiprt1 at acpi0: bus 8 (C101)
acpiprt2 at acpi0: bus 16 (C111)
acpiprt3 at acpi0: bus 32 (C117)
acpiprt4 at acpi0: bus 0 (C002)
bios0: ROM list: 0xc/0x1!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GM Video rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
Intel 82945GM Video rev 0x03 at pci0 dev 2 function 1 not configured
Intel 82801GB HD Audio rev 0x01 at pci0 dev 27 function 0 not configured
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 1 int 16
pci1 at ppb0 bus 8
bge0 at pci1 dev 0 function 0 Broadcom BCM5753M rev 0x21, BCM5750 C1 
(0x4201): apic 1 int 16, address 00:16:d4:0d:67:3e
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: apic 1 int 17
pci2 at ppb1 bus 16
wpi0 at pci2 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: msi, MoW2, 
address 00:13:02:51:b4:19
ppb2 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01: apic 1 int 19
pci3 at ppb2 bus 32
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 1 int 20
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 1 int 22
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: apic 1 int 18
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x01: apic 1 int 19
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: apic 1 int 20
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe1
pci4 at ppb3 bus 2
cbb0 at pci4 dev 6 function 0 TI PCIXX12 CardBus rev 0x00: apic 1 int 18
TI PCIXX12 Multimedia Card Reader rev 0x00 at pci4 dev 6 function 2 not 
configured
TI PCIXX12 Secure Data rev 0x00 at pci4 dev 6 function 3 not configured
TI PCIXX12 Smart Card rev 0x00 at pci4 dev 6 function 4 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x10, lattimer 0x20
pcmcia0 at cardslot0
pcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x01
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x01: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: MATSHITA, UJDA775 DVD/CDRW, 1.00 ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
ahci0 at pci0 dev 31 function 2 Intel 82801GBM AHCI rev 0x01: msi, AHCI 1.1
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: ATA, HTS541080G9SA00, MB4O SCSI3 0/direct fixed 
t10.ATA_HTS541080G9SA00_MPBDL0XKGUPHJM
sd0: 76319MB, 512 bytes/sector, 156301488 sectors
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at pcib0

Re: HP notebook and wired temperatures

2013-06-07 Thread Pawel Kraszewski
2013/6/7 Sven Gaerner sgaer...@gmx.net:

 I installed OpenBSD 5.3 i386 on my HP nc6400 notebook. Now when booting
 the system, the kernel prints
  acpitz3: critical temperate exceeded (3290 C): shutting down.

 This temperature (3290 C) is shown after starting a system that was
 powered off for several hours. After finishing the installation the
 reported temperature was about 4180 C.

 The other BSDs also report wired temperates but not that high. Some
 years ago Linux reported about 55 C for the CPU which seems to be
 a more realistic value.

This is just a next chapter of never-ending story of HP screwing up
ACPI tables. This is not OS's fault - it just shows what hardware
sends. Send an email to HP telling them to fix this crap (broken for
well over 10 years).

Greets,
 Paul.



Re: HP notebook and wired temperatures

2013-06-07 Thread Alexander Polakov
* Sven Gaerner sgaer...@gmx.net [130607 17:10]:
 Hi,
 
 I installed OpenBSD 5.3 i386 on my HP nc6400 notebook. Now when booting
 the system, the kernel prints
  acpitz3: critical temperate exceeded (3290 C): shutting down.
 
 This temperature (3290 C) is shown after starting a system that was
 powered off for several hours. After finishing the installation the
 reported temperature was about 4180 C.
 
 The other BSDs also report wired temperates but not that high. Some
 years ago Linux reported about 55 C for the CPU which seems to be
 a more realistic value.
 
 Attached is a dmesg from the bsd.rd as this kernel does not immediately
 shutdown the system.
 
 Is there a way to disable this immediate shutdown of the system?
 And how can I help to get sane values reported?

A recent snapshot would probably fix this.

http://openbsd.7691.n7.nabble.com/Somewhat-important-ACPI-diff-td228642.html
(committed as rev. 1.201 of dsdt.c)
-- 
Alexander Polakov | plhk.ru



Re: HP notebook and wired temperatures

2013-06-07 Thread Sven Gaerner
On Fri, Jun 07, 2013 at 02:38:27PM +0200, Pawel Kraszewski wrote:
 2013/6/7 Sven Gaerner sgaer...@gmx.net:
 
 This is just a next chapter of never-ending story of HP screwing up
 ACPI tables. This is not OS's fault - it just shows what hardware
 sends. Send an email to HP telling them to fix this crap (broken for
 well over 10 years).

Thanks,  I guessed it's an ACPI problem and not an OpenBSD one. But I
thought one can tell OpenBSD to ignore that useless values.

Telling HP that they implemented ACPI the wrong way is IMHO useless. They
just don't care. And the notebook is about 6.5 years old.

Sven



Re: HP notebook and wired temperatures

2013-06-07 Thread Sven Gaerner
On Fri, Jun 07, 2013 at 05:28:17PM +0400, Alexander Polakov wrote:
 * Sven Gaerner sgaer...@gmx.net [130607 17:10]:
  The other BSDs also report wired temperates but not that high. Some
  years ago Linux reported about 55 C for the CPU which seems to be
  a more realistic value.
  
  Is there a way to disable this immediate shutdown of the system?
  And how can I help to get sane values reported?
 
 A recent snapshot would probably fix this.
 
 http://openbsd.7691.n7.nabble.com/Somewhat-important-ACPI-diff-td228642.html
 (committed as rev. 1.201 of dsdt.c)

Thanks for link. I will have a look.

Sven



Re: HP notebook and wired temperatures

2013-06-07 Thread Theo de Raadt
  I installed OpenBSD 5.3 i386 on my HP nc6400 notebook. Now when booting
  the system, the kernel prints
   acpitz3: critical temperate exceeded (3290 C): shutting down.
 
  This temperature (3290 C) is shown after starting a system that was
  powered off for several hours. After finishing the installation the
  reported temperature was about 4180 C.
 
  The other BSDs also report wired temperates but not that high. Some
  years ago Linux reported about 55 C for the CPU which seems to be
  a more realistic value.
 
 This is just a next chapter of never-ending story of HP screwing up
 ACPI tables. This is not OS's fault - it just shows what hardware
 sends. Send an email to HP telling them to fix this crap (broken for
 well over 10 years).

It's funny that you are so sure.

I don't believe it is a bug in the HP ACPI tables.  I am certain it is
a bug in /sys/dev/acpi/*.c



Re: HP notebook and wired temperatures

2013-06-07 Thread Pawel Kraszewski
2013/6/7 Sven Gaerner sgaer...@gmx.net:

 Thanks,  I guessed it's an ACPI problem and not an OpenBSD one. But I
 thought one can tell OpenBSD to ignore that useless values.

I stuggle with HP crap at work - pretty recent and expensive one.
FreeBSD just hangs hard during bootup. There is an official solution
- disable ACPI part dealing with SMP and run OS single-core :) And
still BSD shows rather hellish temps. That's why I strongly discourage
co-workers, friends and family to buy _any_ HP devices.

 Telling HP that they implemented ACPI the wrong way is IMHO useless. They
 just don't care. And the notebook is about 6.5 years old.

Their standard answer is Yes, we know. All three users of BSD are indignant.

Paul



Re: HP notebook and wired temperatures

2013-06-07 Thread Theo de Raadt
  Thanks,  I guessed it's an ACPI problem and not an OpenBSD one. But I
  thought one can tell OpenBSD to ignore that useless values.
 
 I stuggle with HP crap at work - pretty recent and expensive one.
 FreeBSD just hangs hard during bootup. There is an official solution
 - disable ACPI part dealing with SMP and run OS single-core :) And
 still BSD shows rather hellish temps. That's why I strongly discourage
 co-workers, friends and family to buy _any_ HP devices.

That's a more factual note than your previous.

The HP machines tend to have very complicated AML with heavy SMI and
EC dependencies.  Another vendor which leans this way sometimes is
Sony.

Some machines do have AML bugs, and the Microsoft/Intel ACPI code
bases certainly have workarounds for those problems.

Some machines simply use corner areas of ACPI that we handle
incorrectly.  It takes a lot of effort to find these corner cases and
handle them correctly.



Re: HP notebook and wired temperatures

2013-06-07 Thread Pawel Kraszewski
 The HP machines tend to have very complicated AML with heavy SMI and
 EC dependencies.  Another vendor which leans this way sometimes is
 Sony.

 Some machines do have AML bugs, and the Microsoft/Intel ACPI code
 bases certainly have workarounds for those problems.

 Some machines simply use corner areas of ACPI that we handle
 incorrectly.  It takes a lot of effort to find these corner cases and
 handle them correctly.

I'm digging through Google to find exact error on FreeBSD I
enountered, exact walkaround that (sort of) helped and suspected
cause. I remember faintly it was AML construction that failed.
-[tick tock]-
Cant't find it, sorry. I don't remember exact panic data that helped
me find solution. But AFAIR cure was to disable acpica driver.

OTOH, It is BSD that is right. BSDs keep in line with standards. It is
HP that screws things up (for years). I understand - mountain won't
come to BSD, it is BSD that shall go to the the mountain. This is
politics. I hate politics. I have a dream: someone at HP would say We
are dumbasses. Let's fix BIOS and be such no more.

Paul
--
P.S. And as Theo  the crew is on thread: thanks for OpenBSD as a
whole. Thanks for keeping it small. Thanks for keeping it simple.
Thanks for keeping it powerful. Thanks for manual being so ingenious.