On 2014 Jul 29 (Tue) at 00:19:43 +0200 (+0200), Alexander Bluhm wrote: :On Sun, Jul 13, 2014 at 04:05:41PM +0200, Mark Kettenis wrote: :> Some people have reported that apmd -A makes their machines hang. :> Could those people try the diff below and see whether it helps? : :I am running this diff and apmd -A on a thinkpad T430s. The machine :is idle, the X11 blank screen saver is on. When I type something, :it hangs. The fan gets loud after I type, it sounds like the cpu :starts spinning when I want to work again. : :It happens with this diff and apmd -A. :It happens without this diff and with apmd -A or apmd -C. : :I did not see the crash without this diff and without running apmd. :But this test was not long enough to be reliable. : :Next I will try with this diff and without running apmd. : :It crashes about once a week so testing will take a while. : :bluhm :
I've been running with this diff (apmd -C) on a T430s since the diff was mailed out, and have had no such problems. So, wtf. :> :> Index: acpicpu.c :> =================================================================== :> RCS file: /home/cvs/src/sys/dev/acpi/acpicpu.c,v :> retrieving revision 1.60 :> diff -u -p -r1.60 acpicpu.c :> --- acpicpu.c 12 Jul 2014 18:48:17 -0000 1.60 :> +++ acpicpu.c 13 Jul 2014 14:00:03 -0000 :> @@ -202,9 +202,7 @@ acpicpu_set_pdc(struct acpicpu_softc *sc :> static uint8_t cpu_oscuuid[16] = { 0x16, 0xA6, 0x77, 0x40, 0x0C, 0x29, :> 0xBE, 0x47, 0x9E, 0xBD, 0xD8, 0x70, :> 0x58, 0x71, 0x39, 0x53 }; :> - cap = ACPI_PDC_C_C1_HALT | ACPI_PDC_P_FFH | ACPI_PDC_C_C1_FFH :> - | ACPI_PDC_C_C2C3_FFH | ACPI_PDC_SMP_P_SWCOORD | ACPI_PDC_SMP_C2C3 :> - | ACPI_PDC_SMP_C1PT; :> + cap = ACPI_PDC_P_FFH | ACPI_PDC_C_C1_FFH; :> :> if (aml_searchname(sc->sc_devnode, "_OSC")) { :> /* Query _OSC */ : :OpenBSD 5.6-beta (GENERIC.MP) #87: Fri Jul 25 18:23:23 CEST 2014 : bluhm@t430s.bluhm.invalid:/usr/src/sys/arch/amd64/compile/GENERIC.MP :real mem = 16845570048 (16065MB) :avail mem = 16388358144 (15629MB) :mpath0 at root :scsibus0 at mpath0: 256 targets :mainbus0 at root :bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xbae9d000 (68 entries) :bios0: vendor LENOVO version "G7ET94WW (2.54 )" date 04/30/2013 :bios0: LENOVO 2355CTO :acpi0 at bios0: rev 2 :acpi0: sleep states S0 S3 S4 S5 :acpi0: tables DSDT FACP TCPA SSDT SSDT SSDT HPET APIC MCFG ECDT FPDT ASF! UEFI UEFI MSDM SSDT SSDT UEFI DBG2 :acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP3(S4) XHCI(S3) EHC1(S3) EHC2(S3) HDEF(S4) :acpitimer0 at acpi0: 3579545 Hz, 24 bits :acpihpet0 at acpi0: 14318179 Hz :acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat :cpu0 at mainbus0: apid 0 (boot processor) :cpu0: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz, 2893.82 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS :cpu0: 256KB 64b/line 8-way L2 cache :cpu0: smt 0, core 0, package 0 :mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges :cpu0: apic clock running at 99MHz :cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE :cpu1 at mainbus0: apid 1 (application processor) :cpu1: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz, 2893.43 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS :cpu1: 256KB 64b/line 8-way L2 cache :cpu1: smt 1, core 0, package 0 :cpu2 at mainbus0: apid 2 (application processor) :cpu2: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz, 2893.43 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS :cpu2: 256KB 64b/line 8-way L2 cache :cpu2: smt 0, core 1, package 0 :cpu3 at mainbus0: apid 3 (application processor) :cpu3: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz, 2893.43 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS :cpu3: 256KB 64b/line 8-way L2 cache :cpu3: smt 1, core 1, package 0 :ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins :acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63 :acpiec0 at acpi0 :acpiprt0 at acpi0: bus 0 (PCI0) :acpiprt1 at acpi0: bus -1 (PEG_) :acpiprt2 at acpi0: bus 2 (EXP1) :acpiprt3 at acpi0: bus 3 (EXP2) :acpiprt4 at acpi0: bus 4 (EXP3) :acpiprt5 at acpi0: bus 12 (EXP5) :acpiprt6 at acpi0: bus -1 (EXP6) :acpiprt7 at acpi0: bus -1 (EXP7) :acpiprt8 at acpi0: bus -1 (EXP8) :acpicpu0 at acpi0: C3, PSS :acpicpu1 at acpi0: C3 :acpicpu2 at acpi0: C3 :acpicpu3 at acpi0: C3 :acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1, EHC2 :acpitz0 at acpi0: critical temperature is 103 degC :acpibtn0 at acpi0: LID_ :acpibtn1 at acpi0: SLPB :acpibat0 at acpi0: BAT0 model "45N1143" serial 663 type LION oem "Panasonic" :acpibat1 at acpi0: BAT1 not present :acpiac0 at acpi0: AC unit online :acpithinkpad0 at acpi0 :cpu0: Enhanced SpeedStep 2893 MHz: speeds: 2901, 2900, 2800, 2700, 2500, 2400, 2300, 2200, 2000, 1900, 1800, 1700, 1600, 1400, 1300, 1200 MHz :pci0 at mainbus0 bus 0 :0:28:4: bridge mem address conflict 0xe0000000/0x8000000 :0:28:4: bridge mem address conflict 0xe8000000/0x10000000 :pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09 :vga1 at pci0 dev 2 function 0 "Intel HD Graphics 4000" rev 0x09 :intagp at vga1 not configured :inteldrm0 at vga1 :drm0 at inteldrm0 :drm: Memory usable by graphics device = 2048M :inteldrm0: 1600x900 :wsdisplay0 at vga1 mux 1: console (std, vt100 emulation) :wsdisplay0: screen 1-5 added (std, vt100 emulation) :"Intel 7 Series xHCI" rev 0x04 at pci0 dev 20 function 0 not configured :"Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured :em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address 3c:97:0e:a7:09:b2 :ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 16 :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 7 Series HD Audio" rev 0x04: msi :azalia0: codecs: Realtek ALC269, Intel/0x2806, using Realtek ALC269 :audio0 at azalia0 :ppb0 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: msi :pci1 at ppb0 bus 2 :ppb1 at pci0 dev 28 function 1 "Intel 7 Series PCIE" rev 0xc4: msi :pci2 at ppb1 bus 3 :iwn0 at pci2 dev 0 function 0 "Intel Centrino Ultimate-N 6300" rev 0x3e: msi, MIMO 3T3R, MoW, address 3c:a9:f4:35:02:ec :ppb2 at pci0 dev 28 function 2 "Intel 7 Series PCIE" rev 0xc4: msi :pci3 at ppb2 bus 4 :sdhc0 at pci3 dev 0 function 0 "Ricoh 5U823 SD/MMC" rev 0x04: apic 2 int 18 :sdmmc0 at sdhc0 :ppb3 at pci0 dev 28 function 4 "Intel 7 Series PCIE" rev 0xc4: msi :pci4 at ppb3 bus 12 :ehci1 at pci0 dev 29 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 23 :usb1 at ehci1: USB revision 2.0 :uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1 :pcib0 at pci0 dev 31 function 0 "Intel QM77 LPC" rev 0x04 :ahci0 at pci0 dev 31 function 2 "Intel 7 Series AHCI" rev 0x04: msi, AHCI 1.3 :scsibus1 at ahci0: 32 targets :sd0 at scsibus1 targ 0 lun 0: <ATA, SAMSUNG MZ7TD256, DXT0> SCSI3 0/direct fixed naa.5002538500000000 :sd0: 244198MB, 512 bytes/sector, 500118192 sectors, thin :cd0 at scsibus1 targ 1 lun 0: <MATSHITA, DVD-RAM UJ8C2, SB01> ATAPI 5/cdrom removable :ichiic0 at pci0 dev 31 function 3 "Intel 7 Series SMBus" rev 0x04: apic 2 int 18 :iic0 at ichiic0 :spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-12800 SO-DIMM :spdmem1 at iic0 addr 0x51: 8GB DDR3 SDRAM PC3-12800 SO-DIMM :isa0 at pcib0 :isadma0 at isa0 :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 :wsmouse1 at pms0 mux 0 :pms0: Synaptics touchpad, firmware 7.2 :pcppi0 at isa0 port 0x61 :spkr0 at pcppi0 :uhub2 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2 :ugen0 at uhub2 port 1 "Lenovo Integrated Smart Card Reader" rev 2.00/1.00 addr 3 :uhub3 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2 :vscsi0 at root :scsibus2 at vscsi0: 256 targets :softraid0 at root :scsibus3 at softraid0: 256 targets :root on sd0a (25943b55cd50dee5.a) swap on sd0b dump on sd0b :WARNING: / was not properly unmounted :softraid0: sd1 was not shutdown properly :softraid0: sd1 was not shutdown properly :softraid0: incorrect key or passphrase :softraid0: sd1 was not shutdown properly :softraid0: sd1 was not shutdown properly :sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 005> SCSI2 0/direct fixed :sd1: 47582MB, 512 bytes/sector, 97449770 sectors -- Even though they raised the rate for first class mail in the United States we really shouldn't complain -- it's still only two cents a day.