Re: SpeedStep on Intel Core2Duo not detected anymore

2009-02-23 Thread Jonathan Gray
Using the information out of acpi for this on amd64 has
been disabled for now due to reliability issues:

http://marc.info/?l=openbsd-cvsm=123492694729019w=2


On Mon, Feb 23, 2009 at 09:32:24AM +0100, Robert wrote:
 Hi,
 
 perhaps i am totally missing something, but in the last snapshots
 speedstep isn't detected by the kernel anymore. (ergo no hw.setperf)
 
 I noticed this on my Thinkpad X200. [1]
 Tested the Feb 22 snapshots on another Core2Duo system [2] and there it
 doesn't work, too.
 It's the same with a kernel built from -current sources.
 
 I am sure it worked about 2 to 3 weeks ago. I might have missed to
 notice it since.
 
 Does anyone else see this behaviour?
 
 - Robert
 
 ---
 
 [1]
 OpenBSD 4.5-beta (GENERIC.MP) #2119: Sun Feb 22 20:27:00 MST 2009
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 2070614016 (1974MB)
 avail mem = 1998426112 (1905MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (62 entries)
 bios0: vendor LENOVO version 6DET28WW (1.05 ) date 07/30/2008
 bios0: LENOVO 74542GU
 acpi0 at bios0: rev 2
 acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA 
 SSDT SSDT SSDT
 acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4) 
 EXP3(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) EHC0(S3) 
 EHC1(S3) HDEF(S4)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.33 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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
 cpu0: 3MB 64b/line 8-way L2 cache
 cpu0: apic clock running at 266MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
 cpu1: 3MB 64b/line 8-way L2 cache
 ioapic0 at mainbus0 apid 1 pa 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as apic 2, remapped to apid 1
 acpihpet0 at acpi0: 14318179 Hz
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus -1 (AGP_)
 acpiprt2 at acpi0: bus 2 (EXP0)
 acpiprt3 at acpi0: bus 3 (EXP1)
 acpiprt4 at acpi0: bus -1 (EXP2)
 acpiprt5 at acpi0: bus 5 (EXP3)
 acpiec0 at acpi0
 acpicpu0 at acpi0: C3, C2
 acpicpu1 at acpi0: C3, C2
 acpitz0 at acpi0: critical temperature 127 degC
 acpitz1 at acpi0: critical temperature 104 degC
 acpibtn0 at acpi0: LID_
 acpibtn1 at acpi0: SLPB
 acpibat0 at acpi0: BAT0 model 42T4534 serial   116 type LION oem SANYO
 acpibat1 at acpi0: BAT1 not present
 acpiac0 at acpi0: AC unit online
 acpithinkpad0 at acpi0
 acpidock at acpi0 not configured
 acpivideo at acpi0 not configured
 acpivideo at acpi0 not configured
 pci0 at mainbus0 bus 0: configuration mode 1
 pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
 vga1 at pci0 dev 2 function 0 Intel GM45 Video rev 0x07
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 intagp0 at vga1
 agp0 at intagp0: aperture at 0xd000, size 0x1000
 inteldrm0 at vga1: apic 1 int 16 (irq 11)
 drm0 at inteldrm0
 Intel GM45 Video rev 0x07 at pci0 dev 2 function 1 not configured
 Intel GM45 HECI rev 0x07 at pci0 dev 3 function 0 not configured
 em0 at pci0 dev 25 function 0 Intel ICH9 IGP M AMT rev 0x03: apic 1 int 20 
 (irq 11), address 00:1f:16:02:12:34
 uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 1 int 20 
 (irq 11)
 uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 1 int 21 
 (irq 11)
 uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 1 int 22 
 (irq 11)
 ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 1 int 23 
 (irq 11)
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
 azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x03: apic 1 
 int 17 (irq 11)
 azalia0: codecs: Conexant CX20561
 audio0 at azalia0
 ppb0 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: apic 1 int 20 
 (irq 11)
 pci1 at ppb0 bus 2
 ppb1 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: apic 1 int 21 
 (irq 11)
 pci2 at ppb1 bus 3
 iwn0 at pci2 dev 0 function 0 Intel WiFi Link 5100AGN rev 0x00: apic 1 int 
 17 (irq 11), MIMO 1T2R, MoW, address 00:16:ea:bb:12:34
 ppb2 at pci0 dev 28 function 3 Intel 82801I PCIE rev 0x03: apic 1 int 23 
 (irq 11)
 pci3 at ppb2 bus 5
 uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x03: apic 1 int 16 
 (irq 11)
 uhci4 at pci0 dev 29 function 1 Intel 82801I USB rev 0x03: apic 1 int 17 
 (irq 11)
 uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x03: apic 1 int 18 
 (irq 11)
 ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x03: apic 1 int 19 
 

Re: SpeedStep on Intel Core2Duo not detected anymore

2009-02-23 Thread Dan Harnett
On Mon, Feb 23, 2009 at 09:32:24AM +0100, Robert wrote:
 Hi,
 
 perhaps i am totally missing something, but in the last snapshots
 speedstep isn't detected by the kernel anymore. (ergo no hw.setperf)
 
 I noticed this on my Thinkpad X200. [1]
 Tested the Feb 22 snapshots on another Core2Duo system [2] and there it
 doesn't work, too.
 It's the same with a kernel built from -current sources.
 
 I am sure it worked about 2 to 3 weeks ago. I might have missed to
 notice it since.
 
 Does anyone else see this behaviour?

Yep.  I believe this is the change you missed.

  Changes by: ma...@cvs.openbsd.org   2009/02/17 20:13:49

  Modified files:
  sys/dev/acpi   : acpicpu.c 

  Log message:
  Backout PDC  PPC changes because it hangs several laptops.



Re: SpeedStep on Intel Core2Duo not detected anymore

2009-02-23 Thread Robert
On Mon, 23 Feb 2009 20:59:22 +1100
Jonathan Gray j...@goblin.cx wrote:

 Using the information out of acpi for this on amd64 has
 been disabled for now due to reliability issues:
 
 http://marc.info/?l=openbsd-cvsm=123492694729019w=2

Aw crap, i liked having particle projectile cannons...
Classic case of ignorance for in that context unknown acronyms.

Thanks for pointing it out to me.

- Robert

--
OpenBSD 4.5-beta (GENERIC.MP) #0: Mon Feb 23 11:25:31 CET 2009
r...@x200:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2070614016 (1974MB)
avail mem = 1998422016 (1905MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (62 entries)
bios0: vendor LENOVO version 6DET28WW (1.05 ) date 07/30/2008
bios0: LENOVO 74542GU
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4) 
EXP3(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) EHC0(S3) 
EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.30 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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 265MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 3MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 104 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4534 serial   116 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 1600, 800 MHz
[snip]



Re: SpeedStep on Intel Core2Duo not detected anymore

2009-02-23 Thread Ted Unangst
On Mon, Feb 23, 2009 at 4:59 AM, Jonathan Gray j...@goblin.cx wrote:
 Using the information out of acpi for this on amd64 has
 been disabled for now due to reliability issues:

 http://marc.info/?l=openbsd-cvsm=123492694729019w=2

I don't know why est.c wasn't backed out to its old pre-acpi state
too, though.  If you check out the sources, and downrev amd64/est.c by
one, you will have basic speedstep support again.