On Tue, Jul 29, 2014 at 10:14:40AM -0400, Elijah Buck wrote:
> I have a whitebox desktop with a Biostar TH55B HD motherboard.  Hibernate
> (via ZZZ) works great, as does resume. However, when hibernating, the
> system briefly powers off and then immediately starts back up. The issue
> occurs both on 5.5 amd64 and 5.6-beta (Jul 27) amd64. I tried setting the
> BIOS to use ACPI v1.0, v2.0, v3.0 with no effect. I tried removing usb
> devices, in case they were waking the system. Hibernate in Windows 8.1
> works.
> 
> What might the problem be?

I've got a machine with the same symptoms with very similar hardware.
It doesn't fire any GPEs on resume, and the fixed function buttons aren't
set either. So the reason for resume is still a mystery. 

1. Please send an acpidump.

2. In dev/acpi/acpi.c, try commenting out the following line:

acpi_enable_wakegpes(sc, state);

... in my tree that's on line 2157. Note there are two occurrences of that
line of code, you want to comment out the one in acpi_sleep_state and not
acpi_powerdown. Then rebuild/reinstall the kernel and see if ZZZ works -
that change will disable the wake devices

-ml

> 
> Thanks, Elijah
> 
> dmesg below (for the snapshot I am now running):
> 
> OpenBSD 5.6-beta (GENERIC.MP) #305: Sun Jul 27 19:02:25 MDT 2014
>     dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 8530690048 (8135MB)
> avail mem = 8294817792 (7910MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xfc620 (66 entries)
> bios0: vendor American Megatrends Inc. version "080015" date 10/15/2010
> bios0: BIOSTAR Group TH55B HD
> acpi0 at bios0: rev 0
> acpi0: sleep states S0 S1 S4 S5
> acpi0: tables DSDT FACP APIC MCFG OEMB SSDT
> acpi0: wakeup devices P0P1(S4) P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4) BR1E(S4) 
> UAR1(S4) PS2K(S4) PS2M(S4) EUSB(S4) USB0(S4) USB1(S4) USB2(S4) USB3(S4) 
> USBE(S4) USB4(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) Core(TM) i5 CPU 750 @ 2.67GHz, 2745.42 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,LONG,LAHF,PERF,ITSC
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 137MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.1.0, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz, 2745.04 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,LONG,LAHF,PERF,ITSC
> 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) Core(TM) i5 CPU 750 @ 2.67GHz, 2745.04 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,LONG,LAHF,PERF,ITSC
> 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) Core(TM) i5 CPU 750 @ 2.67GHz, 2745.04 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,LONG,LAHF,PERF,ITSC
> 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
> ioapic0: misconfigured as apic 1, remapped to apid 7
> acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (P0P4)
> acpiprt2 at acpi0: bus 5 (BR1E)
> acpiprt3 at acpi0: bus 2 (BR20)
> acpiprt4 at acpi0: bus -1 (BR22)
> acpiprt5 at acpi0: bus -1 (BR23)
> acpiprt6 at acpi0: bus 3 (BR24)
> acpiprt7 at acpi0: bus 4 (BR25)
> acpiprt8 at acpi0: bus -1 (BR26)
> acpiprt9 at acpi0: bus -1 (BR27)
> acpicpu0 at acpi0: C3, C2, C1, PSS
> acpicpu1 at acpi0: C3, C2, C1, PSS
> acpicpu2 at acpi0: C3, C2, C1, PSS
> acpicpu3 at acpi0: C3, C2, C1, PSS
> acpitz0 at acpi0: critical temperature is 85 degC
> acpibtn0 at acpi0: SLPB
> acpibtn1 at acpi0: PWRB
> cpu0: Enhanced SpeedStep 2745 MHz: speeds: 2668, 2667, 2533, 2400, 2267, 
> 2133, 2000, 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
> pci1 at ppb0 bus 1
> radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 5750" rev 0x00
> drm0 at radeondrm0
> radeondrm0: msi
> azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 5700 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 0x06: apic 7 int 16
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> azalia1 at pci0 dev 27 function 0 "Intel 3400 HD Audio" rev 0x06: msi
> azalia1: codecs: Realtek ALC662
> audio0 at azalia1
> ppb1 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x06: msi
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 28 function 4 "Intel 3400 PCIE" rev 0x06: msi
> pci3 at ppb2 bus 3
> re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D 
> (0x2800), msi, address 00:30:67:6d:45:bd
> rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
> ppb3 at pci0 dev 28 function 5 "Intel 3400 PCIE" rev 0x06: msi
> pci4 at ppb3 bus 4
> jmb0 at pci4 dev 0 function 0 "JMicron JMB368 IDE" rev 0x00
> pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to 
> native-PCI
> pciide0: using apic 7 int 17 for native-PCI interrupt
> pciide0: channel 0 disabled (no drives)
> pciide0: channel 1 disabled (no drives)
> ehci1 at pci0 dev 29 function 0 "Intel 3400 USB" rev 0x06: apic 7 int 23
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa6
> pci5 at ppb4 bus 5
> ral0 at pci5 dev 6 function 0 "Ralink RT2561S" rev 0x00: apic 7 int 17, 
> address 00:18:f8:28:d5:88
> ral0: MAC/BBP RT2561C, RF RT2527
> pcib0 at pci0 dev 31 function 0 "Intel H55 LPC" rev 0x06
> ahci0 at pci0 dev 31 function 2 "Intel 3400 AHCI" rev 0x06: msi, AHCI 1.3
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, OCZ-VERTEX2, 1.11> SCSI3 0/direct fixed 
> naa.5e83a97f72f83172
> sd0: 57241MB, 512 bytes/sector, 117231408 sectors, thin
> cd0 at scsibus1 targ 1 lun 0: <ASUS, DVD-E818A6T, 1.03> ATAPI 5/cdrom 
> removable
> sd1 at scsibus1 targ 2 lun 0: <ATA, ST1000DM003-1CH1, CC49> SCSI3 0/direct 
> fixed naa.5000c5006dd6f4aa
> sd1: 953869MB, 512 bytes/sector, 1953525168 sectors
> ichiic0 at pci0 dev 31 function 3 "Intel 3400 SMBus" rev 0x06: apic 7 int 18
> iic0 at ichiic0
> spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-8500
> spdmem1 at iic0 addr 0x51: 2GB DDR3 SDRAM PC3-8500
> spdmem2 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-8500
> spdmem3 at iic0 addr 0x53: 2GB DDR3 SDRAM PC3-8500
> itherm0 at pci0 dev 31 function 6 "Intel 3400 Thermal" rev 0x06
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: 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
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> it0 at isa0 port 0x2e/2: IT8721F rev 1, EC port 0xa10
> uhub2 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
> uhidev0 at uhub2 port 1 configuration 1 interface 0 "Chicony Electronics USB 
> Optical Mouse" rev 2.00/2.00 addr 3
> uhidev0: iclass 3/1
> ums0 at uhidev0: 3 buttons, Z dir
> wsmouse0 at ums0 mux 0
> uhidev1 at uhub2 port 2 configuration 1 interface 0 "Microsoft Natural\M-. 
> Ergonomic Keyboard 4000" rev 2.00/1.73 addr 4
> uhidev1: iclass 3/1
> ukbd0 at uhidev1: 8 variable keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> uhidev2 at uhub2 port 2 configuration 1 interface 1 "Microsoft Natural\M-. 
> Ergonomic Keyboard 4000" rev 2.00/1.73 addr 4
> uhidev2: iclass 3/0, 1 report id
> uhid0 at uhidev2 reportid 1: input=7, output=0, feature=0
> 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 sd1a (3829b45f9f513226.a) swap on sd1b dump on sd1b
> drm: initializing kernel modesetting (JUNIPER 0x1002:0x68BE 0x1787:0x200A).
> radeondrm0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
> radeondrm0: GTT: 512M 0x0000000040000000 - 0x000000005FFFFFFF
> drm: probing gen 2 caps for device 0x8086:0xd138 = 2/0
> drm: enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0
> drm: PCIE GART of 512M enabled (table at 0x0000000000040000).
> drm: Internal thermal controller with fan control
> radeondrm0: 1920x1080
> wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
> wskbd1: connecting to wsdisplay0
> wsdisplay0: screen 1-5 added (std, vt100 emulation)

Reply via email to