NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-amd64/51134: Random shutdown (power button pressed) inside VirtualBox 5 on Windows 7



The following reply was made to PR port-amd64/51134; it has been noted by GNATS.

From: Rin Okuyama <rokuyama%rk.phys.keio.ac.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: port-amd64/51134: Random shutdown (power button pressed) inside
 VirtualBox 5 on Windows 7
Date: Sat, 14 May 2016 02:17:20 +0900

 At least until a few months ago, this problem did not occur with
 NetBSD/amd64-current and VirtualBox 5. But today, I also observed
 random shutdown with VirtualBox 5.0.20 on OS X 10.8.5.
 
 By applying the following patch to the power button script, I
 avoided shutdown and examined what happens.
 
 ====
 --- ./etc/powerd/scripts/power_button.orig	2016-05-13 22:38:51.967515703 +0900
 +++ ./etc/powerd/scripts/power_button	2016-05-13 21:26:20.321151355 +0900
 @@ -12,7 +12,8 @@
   
   case "${2}" in
   pressed)
 -	/sbin/shutdown -p now "power button pressed"
 +	logger -p warning "power button pressed" >&1
 +#	/sbin/shutdown -p now "power button pressed"
   	exit 0
   	;;
   
 ====
 
 Then, I found that all (?) kinds of ACPI events are randomly detected
 at the same time; the following messages repeatedly appear in
 /var/log/message.
 
 ====
 May 14 01:50:56 XXX /netbsd: ACPI Error: No installed handler for fixed event - PM_Timer (0), disabling (20160422/evevent-325)
 May 14 01:50:56 XXX /netbsd: ACPI Error: No installed handler for fixed event - RealTimeClock (4), disabling (20160422/evevent-325)
 May 14 01:50:56 XXX /netbsd: ACPI Error: No handler or method for GPE 01, disabling event (20160422/evgpe-836)
 May 14 01:50:56 XXX /netbsd: ACPI Error: No handler or method for GPE 03, disabling event (20160422/evgpe-836)
 May 14 01:50:56 XXX /netbsd: ACPI Error: No handler or method for GPE 04, disabling event (20160422/evgpe-836)
 May 14 01:50:56 XXX /netbsd: ACPI Error: No handler or method for GPE 05, disabling event (20160422/evgpe-836)
 May 14 01:50:56 XXX /netbsd: ACPI Error: No handler or method for GPE 06, disabling event (20160422/evgpe-836)
 May 14 01:50:56 XXX /netbsd: ACPI Error: No handler or method for GPE 07, disabling event (20160422/evgpe-836)
 May 14 01:50:56 XXX /netbsd: acpivga0: connected output devices:
 May 14 01:50:56 XXX /netbsd: acpivga0:   0x0100 (acpiout0): VGA Analog Monitor, index 0, port 0, head 0
 May 14 01:50:56 XXX root: power button pressed
 May 14 01:50:56 XXX /netbsd: acpi0: entering state S3
 May 14 01:50:56 XXX /netbsd: acpi0: sleep state S3 is not available
 May 14 01:50:56 XXX powerd[431]: /etc/powerd/scripts/sleep_button exited with status 1
 ====
 
 Here, I attached dmesg of GENERIC kernel with options ACPI_DEBUG and
 ACPIVERBOSE enabled. Any ideas?
 
 Thanks,
 Rin
 
 ====
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
      2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
      The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.
 
 NetBSD 7.99.29 (ACPI_DEBUG) #0: Fri May 13 23:59:26 JST 2016
 	rin@XXX:/var/build/obj/amd64/sys/arch/amd64/compile/ACPI_DEBUG
 total memory = 1023 MB
 avail memory = 972 MB
 cpu_rng: RDRAND
 timecounter: Timecounters tick every 10.000 msec
 Kernelized RAIDframe activated
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 innotek GmbH VirtualBox (1.2)
 mainbus0 (root)
 ACPI: RSDP 0x00000000000E0000 000024 (v02 VBOX  )
 ACPI: XSDT 0x000000003FFF0030 00003C (v01 VBOX   VBOXXSDT 00000001 ASL  00000061)
 ACPI: FACP 0x000000003FFF00F0 0000F4 (v04 VBOX   VBOXFACP 00000001 ASL  00000061)
 ACPI: DSDT 0x000000003FFF0470 002106 (v01 VBOX   VBOXBIOS 00000002 INTL 20100528)
 ACPI: FACS 0x000000003FFF0200 000040
 ACPI: FACS 0x000000003FFF0200 000040
 ACPI: APIC 0x000000003FFF0240 00005C (v02 VBOX   VBOXAPIC 00000001 ASL  00000061)
 ACPI: SSDT 0x000000003FFF02A0 0001CC (v01 VBOX   VBOXCPUT 00000002 INTL 20100528)
 
 Initializing Namespace objects:
 Table [DSDT: VBOXBIOS] (id 01) -  249 Objects with  28 Devices,   4 Regions,   80 Methods (11/69/9 Serial/Non/Cvt)
 ACPI: Executed 1 blocks of module-level executable AML code
 Table [SSDT: VBOXCPUT] (id 02) -    2 Objects with   0 Devices,   0 Regions,    0 Methods (0/0/0 Serial/Non/Cvt)
 ACPI: 2 ACPI AML tables successfully acquired and loaded
 
 Completing Region/Field/Buffer/Package initialization:
      Initialized 3/4 Regions 1/1 Fields 23/23 Buffers 7/7 Packages (260 nodes)
   evxfevnt-0110 Enable                : Transition to ACPI mode successful
 ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x11, 24 pins
 cpu0 at mainbus0 apid 0
 cpu0: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz, id 0x40651
 cpu1 at mainbus0 apid 1
 cpu1: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz, id 0x40651
 acpi0 at mainbus0: Intel ACPICA 20160422
 acpi0: X/RSDT: OemId <VBOX  ,VBOXXSDT,00000001>, AslId <ASL ,00000061>
   evxfevnt-0096 Enable                : System is already in ACPI mode
 Initializing General Purpose Events (GPEs):
      Initialized GPE 00 to 07 [_GPE] 1 regs on interrupt 0x9 (SCI)
 Initializing Device/Processor/Thermal objects and executing _INI/_STA methods:
      Executed 1 _INI methods requiring 0 _STA executions (examined 32 objects)
 acpi0: SCI interrupting at int 9
 timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
 pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
 pckbc2 at acpi0 (PS2M, PNP0F03) (aux port): irq 12
 attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53
 acpivga0 at acpi0 (GFX0): ACPI Display Adapter
 acpiout0 at acpivga0 (VGA, 0x0100): ACPI Display Output Device
 acpivga0: connected output devices:
 acpivga0:   0x0100 (acpiout0): VGA Analog Monitor, index 0, port 0, head 0
 acpibat0 at acpi0 (BAT0, PNP0C0A-0): ACPI Battery
 acpibat0: innotek VBOX rechargeable battery
 acpibat0: granularity: low->warn 0.001 Wh, warn->full 0.001 Wh
 acpiacad0 at acpi0 (AC, ACPI0003-0): ACPI AC Adapter
 ACPI: Enabled 2 GPEs in block 00 to 07
 acpi0: [MADT] INTR OVERRIDE  : BUS 0, IRQ 0, GSI 2, FLAGS 0x00
 acpi0: [MADT] INTR OVERRIDE  : BUS 0, IRQ 9, GSI 9, FLAGS 0x0D
 acpi0: [MADT] LAPIC          : CPU ID 0, LAPIC ID 0, FLAGS 0x01
 acpi0: [MADT] LAPIC          : CPU ID 1, LAPIC ID 1, FLAGS 0x01
 acpi0: [MADT] I/O APIC       : ID 2, GSI 0, ADDR 0xFEC00000
 acpi0: [FADT] FACS           : 0x000000003FFF0200
 acpi0: [FADT] DSDT           : 0x000000003FFF0470
 acpi0: [FADT] INT_MODEL      : 0x0000000000000000
 acpi0: [FADT] PM_PROFILE     : 0x0000000000000000
 acpi0: [FADT] SCI_INT        : 0x0000000000000009
 acpi0: [FADT] SMI_CMD        : 0x000000000000442E
 acpi0: [FADT] ACPI_ENABLE    : 0x00000000000000A1
 acpi0: [FADT] ACPI_DISABLE   : 0x00000000000000A0
 acpi0: [FADT] S4BIOS_REQ     : 0x0000000000000000
 acpi0: [FADT] PSTATE_CNT     : 0x0000000000000000
 acpi0: [FADT] PM1a_EVT_BLK   : 0x0000000000004000
 acpi0: [FADT] PM1b_EVT_BLK   : 0x0000000000000000
 acpi0: [FADT] PM1a_CNT_BLK   : 0x0000000000004004
 acpi0: [FADT] PM1b_CNT_BLK   : 0x0000000000000000
 acpi0: [FADT] PM2_CNT_BLK    : 0x0000000000000000
 acpi0: [FADT] PM_TMR_BLK     : 0x0000000000004008
 acpi0: [FADT] GPE0_BLK       : 0x0000000000004020
 acpi0: [FADT] GPE1_BLK       : 0x0000000000000000
 acpi0: [FADT] PM1_EVT_LEN    : 0x0000000000000004
 acpi0: [FADT] PM1_CNT_LEN    : 0x0000000000000002
 acpi0: [FADT] PM2_CNT_LEN    : 0x0000000000000000
 acpi0: [FADT] PM_TMR_LEN     : 0x0000000000000004
 acpi0: [FADT] GPE0_BLK_LEN   : 0x0000000000000002
 acpi0: [FADT] GPE1_BLK_LEN   : 0x0000000000000000
 acpi0: [FADT] GPE1_BASE      : 0x0000000000000000
 acpi0: [FADT] CST_CNT        : 0x0000000000000000
 acpi0: [FADT] P_LVL2_LAT     : 0x0000000000000065
 acpi0: [FADT] P_LVL3_LAT     : 0x00000000000003E9
 acpi0: [FADT] FLUSH_SIZE     : 0x0000000000000000
 acpi0: [FADT] FLUSH_STRIDE   : 0x0000000000000000
 acpi0: [FADT] DUTY_OFFSET    : 0x0000000000000000
 acpi0: [FADT] DUTY_WIDTH     : 0x0000000000000000
 acpi0: [FADT] DAY_ALRM       : 0x0000000000000000
 acpi0: [FADT] MON_ALRM       : 0x0000000000000000
 acpi0: [FADT] CENTURY        : 0x0000000000000000
 acpi0: [FADT] IAPC_BOOT_ARCH : 0x0000000000000003
 acpi0: [FADT] RESET_VALUE    : 0x0000000000000010
 acpi0: [FADT] WBINVD         : 0x0000000000000001
 acpi0: [FADT] WBINVD_FLUSH   : 0x0000000000000000
 acpi0: [FADT] PROC_C1        : 0x0000000000000000
 acpi0: [FADT] P_LVL2_UP      : 0x0000000000000000
 acpi0: [FADT] PWR_BUTTON     : 0x0000000000000000
 acpi0: [FADT] SLP_BUTTON     : 0x0000000000000000
 acpi0: [FADT] FIX_RTC        : 0x0000000000000040
 acpi0: [FADT] RTC_S4         : 0x0000000000000000
 acpi0: [FADT] TMR_VAL_EXT    : 0x0000000000000100
 acpi0: [FADT] DCK_CAP        : 0x0000000000000000
 acpi0: [FADT] RESET_REG_SUP  : 0x0000000000000400
 acpi0: [FADT] SEALED_CASE    : 0x0000000000000000
 acpi0: [FADT] HEADLESS       : 0x0000000000000000
 acpi0: [FADT] CPU_SW_SLP     : 0x0000000000000000
 acpi0: [FADT] PCI_EXP_WAK    : 0x0000000000000000
 acpi0: [FADT] PLATFORM_CLK   : 0x0000000000000000
 acpi0: [FADT] S4_RTC_STS     : 0x0000000000000000
 acpi0: [FADT] REMOTE_POWER   : 0x0000000000000000
 acpi0: [FADT] APIC_CLUSTER   : 0x0000000000000000
 acpi0: [FADT] APIC_PHYSICAL  : 0x0000000000000000
 acpi0: [\   ] HID -          UID -    STA 0xFFFFFFFF ADR -
 acpi0: [CPU0] HID -          UID -    STA 0xFFFFFFFF ADR -
 acpi0: [CPU1] HID -          UID -    STA 0xFFFFFFFF ADR -
 acpi0: [_SB ] HID -          UID -    STA 0xFFFFFFFF ADR -
 acpi0: [PCI0] HID PNP0A03    UID 0    STA 0xFFFFFFFF ADR 0x0000000000000000
 acpi0: [SBRG] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000010000
 acpi0: [PS2K] HID PNP0303    UID -    STA 0x0000000F ADR -
 acpi0: [DMAC] HID PNP0200    UID -    STA 0xFFFFFFFF ADR -
 acpi0: [FDC0] HID PNP0700    UID -    STA 0x00000000 ADR -
 acpi0: [PS2M] HID PNP0F03    UID -    STA 0x0000000F ADR -
 acpi0: [TIMR] HID PNP0100    UID -    STA 0xFFFFFFFF ADR -
 acpi0: [PIC ] HID PNP0000    UID -    STA 0xFFFFFFFF ADR -
 acpi0: [RTC ] HID PNP0B00    UID -    STA 0x00000000 ADR -
 acpi0: [HPET] HID PNP0103    UID 0    STA 0x00000000 ADR -
 acpi0: [SMC ] HID APP0001    UID -    STA 0x00000000 ADR -
 acpi0: [PCIE] HID PNP0C02    UID 17   STA 0x00000000 ADR -
 acpi0: [LPT0] HID PNP0400    UID 1    STA 0x00000000 ADR -
 acpi0: [LPT1] HID PNP0400    UID 2    STA 0x00000000 ADR -
 acpi0: [SRL0] HID PNP0501    UID 1    STA 0x00000000 ADR -
 acpi0: [SRL1] HID PNP0501    UID 2    STA 0x00000000 ADR -
 acpi0: [SRL2] HID PNP0501    UID 3    STA 0x00000000 ADR -
 acpi0: [SRL3] HID PNP0501    UID 4    STA 0x00000000 ADR -
 acpi0: [GIGE] HID PNP8390    UID -    STA 0x00000000 ADR 0x0000000000000000
 acpi0: [GFX0] HID -          UID -    STA 0x0000000F ADR 0x0000000000020000
 acpi0: [VGA ] HID -          UID -    STA 0xFFFFFFFF ADR 0x0000000000000100
 acpi0: [HDEF] HID -          UID -    STA 0x00000000 ADR 0x0000000000000000
 acpi0: [BAT0] HID PNP0C0A    UID 0    STA 0x0000001F ADR -
 acpi0: [AC  ] HID ACPI0003   UID 0    STA 0x0000000F ADR -
 acpi0: [LNKA] HID PNP0C0F    UID 1    STA 0x0000000B ADR -
 acpi0: [LNKB] HID PNP0C0F    UID 2    STA 0x0000000B ADR -
 acpi0: [LNKC] HID PNP0C0F    UID 3    STA 0x0000000B ADR -
 acpi0: [LNKD] HID PNP0C0F    UID 4    STA 0x0000000B ADR -
 acpi0: [_TZ ] HID -          UID -    STA 0xFFFFFFFF ADR -
 
 \     [06] []
      CPU0  [12] []
      CPU1  [12] []
      _SB   [06] []
          PCI0  [06] [] (PCI) @ 0x00:0x00:0x00:0x00 [R] [B] -> 0x00:0x00
              SBRG  [06] [] (PCI) @ 0x00:0x00:0x01:0x00
                  PS2K  [06] [] <pckbc1>
                  DMAC  [06] []
                  FDC0  [06] []
                  PS2M  [06] [] <pckbc2>
                  TIMR  [06] [] <attimer1>
                  PIC   [06] []
                  RTC   [06] []
                  HPET  [06] []
                  SMC   [06] []
              PCIE  [06] []
              LPT0  [06] []
              LPT1  [06] []
              SRL0  [06] []
              SRL1  [06] []
              SRL2  [06] []
              SRL3  [06] []
              GIGE  [06] []
              GFX0  [06] [] <acpivga0> (PCI) @ 0x00:0x00:0x02:0x00
                  VGA   [06] [] <acpiout0>
              HDEF  [06] []
              BAT0  [06] [] <acpibat0>
              AC    [06] [] <acpiacad0>
          LNKA  [06] []
          LNKB  [06] []
          LNKC  [06] []
          LNKD  [06] []
      _TZ   [06] []
 pckbd0 at pckbc1 (kbd slot)
 pckbc1: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 pms0 at pckbc1 (aux slot)
 pckbc1: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 pci0 at mainbus0 bus 0: configuration mode 1pci0: This pci host supports neither MSI nor MSI-X.
 
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0: vendor 8086 product 1237 (rev. 0x02)
 pcib0 at pci0 dev 1 function 0: vendor 8086 product 7000 (rev. 0x00)
 piixide0 at pci0 dev 1 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
 piixide0: bus-master DMA support present
 piixide0: primary channel configured to compatibility mode
 piixide0: primary channel interrupting at ioapic0 pin 14
 atabus0 at piixide0 channel 0
 piixide0: secondary channel configured to compatibility mode
 piixide0: secondary channel interrupting at ioapic0 pin 15
 atabus1 at piixide0 channel 1
 vga0 at pci0 dev 2 function 0: vendor 80ee product beef (rev. 0x00)
 wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
 wsmux1: connecting to wsdisplay0
 drm at vga0 not configured
 wm0 at pci0 dev 3 function 0: Intel i82540EM 1000BASE-T Ethernet (rev. 0x02)
 wm0: interrupting at ioapic0 pin 19
 wm0: 32-bit 33MHz PCI bus
 wm0: 64 words (6 address bits) MicroWire EEPROM
 wm0: Ethernet address 08:00:27:be:ab:2f
 makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 4
 makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 vendor 80ee product cafe (miscellaneous system) at pci0 dev 4 function 0 not configured
 auich0 at pci0 dev 5 function 0: i82801AA (ICH) AC-97 Audio
 auich0: interrupting at ioapic0 pin 21
 auich0: ac97: SigmaTel STAC9700 codec; no 3D stereo
 auich0: ac97: ext id 0x809<AC97_23,VRM,VRA>
 piixpm0 at pci0 dev 7 function 0: vendor 8086 product 7113 (rev. 0x08)
 piixpm0: SMBus disabled
 xhci0 at pci0 dev 12 function 0: vendor 8086 product 1e31 (rev. 0x00)
 xhci0: interrupting at ioapic0 pin 20
 xhci0: xHCI version 1.0
 usb0 at xhci0: USB revision 3.0
 isa0 at pcib0
 pcppi0 at isa0 port 0x61
 midi0 at pcppi0: PC speaker
 sysbeep0 at pcppi0
 attimer1: attached to pcppi0
 acpicpu0 at cpu0: ACPI CPU
 acpicpu0: C1: HLT, lat   0 us, pow     0 mW
 acpicpu1 at cpu1: ACPI CPU
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 timecounter: Timecounter "TSC" frequency 2300392200 Hz quality 3000
 acpiacad0: AC adapter online.
 auich0: measured ac97 link rate at 46745 Hz, will use 48000 Hz
 audio0 at auich0: full duplex, playback, capture, mmap, independent
 uhub0 at usb0: vendor 8086 xHCI Root Hub, class 9/0, rev 1.00/1.00, addr 0
 uhub0: 14 ports with 14 removable, self powered
 IPsec: Initialized Security Association Processing.
 wd0 at atabus0 drive 0
 wd0: <VBOX HARDDISK>
 wd0: drive supports 128-sector PIO transfers, LBA addressing
 wd0: 2048 MB, 4161 cyl, 16 head, 63 sec, 512 bytes/sect x 4194304 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 atapibus0 at atabus1: 2 targets
 cd0 at atapibus0 drive 0: <VBOX CD-ROM, VB2-01700376, 1.0> cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 pad0: outputs: 44100Hz, 16-bit, stereo
 audio1 at pad0: half duplex, playback, capture
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 kern.module.path=/stand/amd64/7.99.29/modules
 wsdisplay0: screen 1 added (80x25, vt100 emulation)
 wsdisplay0: screen 2 added (80x25, vt100 emulation)
 wsdisplay0: screen 3 added (80x25, vt100 emulation)
 wsdisplay0: screen 4 added (80x25, vt100 emulation)
 


Home | Main Index | Thread Index | Old Index