NetBSD Problem Report #52232

From www@NetBSD.org  Sat May 13 20:37:54 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C6C0E7A26C
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 13 May 2017 20:37:54 +0000 (UTC)
Message-Id: <20170513203752.D01E07A2AC@mollari.NetBSD.org>
Date: Sat, 13 May 2017 20:37:52 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: MacBook Air reboots upon waking from sleep
X-Send-Pr-Version: www-1.0

>Number:         52232
>Category:       kern
>Synopsis:       MacBook Air reboots upon waking from sleep
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 13 20:40:00 +0000 2017
>Closed-Date:    Thu Nov 05 13:22:37 +0000 2020
>Last-Modified:  Thu Nov 05 13:22:37 +0000 2020
>Originator:     Sevan Janiyan
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
On a mid-2012 MacBook Air, system reboots upon wake from sleep.

System is put to sleep with sysctl  -w hw.acpi.sleep.state=3

The crash is logged in /var/log/messages
May 13 11:55:42  root: /etc/powerd/scripts/sensor_battery: (charge state) capacity reached normal state [acpibat0]
May 13 11:59:21  syslogd[190]: restart
May 13 11:59:21  /netbsd: uvm_fault(0xfffffe82656d4178, 0x0, 1) -> e
May 13 11:59:21  /netbsd: fatal page fault in supervisor mode
May 13 11:59:21  /netbsd: trap type 6 code 0 rip 0xffffffff806316d1 cs 0x8 rflags 0x10202 cr2 0 ilevel 0 rsp 0xfffffe810f991aa0
May 13 11:59:21  /netbsd: curlwp 0xfffffe826c2188a0 pid 40.1 lowest kstack 0xfffffe810f98e2c0
May 13 11:59:21  /netbsd: panic: trap
May 13 11:59:21  /netbsd: cpu0: Begin traceback...
May 13 11:59:21  /netbsd: vpanic() at netbsd:vpanic+0x140
May 13 11:59:21  /netbsd: snprintf() at netbsd:snprintf
May 13 11:59:21  /netbsd: trap() at netbsd:trap+0xc6b
May 13 11:59:21  /netbsd: --- trap (number 6) ---
May 13 11:59:21  /netbsd: drm_pci_irq_install() at netbsd:drm_pci_irq_install+0x99
May 13 11:59:21  /netbsd: drm_irq_install() at netbsd:drm_irq_install+0xb7
May 13 11:59:21  /netbsd: __i915_drm_thaw() at netbsd:__i915_drm_thaw+0xc9
May 13 11:59:21  /netbsd: i915drmkms_resume() at netbsd:i915drmkms_resume+0x34
May 13 11:59:21  /netbsd: device_pmf_driver_resume() at netbsd:device_pmf_driver_resume+0x46
May 13 11:59:21  /netbsd: pmf_device_resume_locked() at netbsd:pmf_device_resume_locked+0xd3
May 13 11:59:21  /netbsd: pmf_device_resume() at netbsd:pmf_device_resume+0x41
May 13 11:59:21  /netbsd: pmf_system_resume() at netbsd:pmf_system_resume+0xc7
May 13 11:59:21  /netbsd: acpi_enter_sleep_state() at netbsd:acpi_enter_sleep_state+0x182
May 13 11:59:21  /netbsd: sysctl_hw_acpi_sleepstate() at netbsd:sysctl_hw_acpi_sleepstate+0xfe
May 13 11:59:21  /netbsd: sysctl_dispatch() at netbsd:sysctl_dispatch+0xc1
May 13 11:59:21  /netbsd: sys___sysctl() at netbsd:sys___sysctl+0xd8
May 13 11:59:21  /netbsd: syscall() at netbsd:syscall+0x1d8
May 13 11:59:21  /netbsd: --- syscall (number 202) ---
May 13 11:59:21  /netbsd: 76e0b4b0d03a:
May 13 11:59:21  /netbsd: cpu0: End traceback...
May 13 11:59:21  /netbsd: 
May 13 11:59:21  /netbsd: dumping to dev 0,1 (offset=1758, size=2073286):
May 13 11:59:21  /netbsd: dump ACPI Error: Mutex [0x1] is not acquired, cannot release (20170303/utmutex-368)
May 13 11:59:21  /netbsd: ACPI Error: Could not release AML Namespace mutex (20170303/exutils-152)
May 13 11:59:21  /netbsd: ACPI Error: Mutex [0x0] is not acquired, cannot release (20170303/utmutex-368)
May 13 11:59:21  /netbsd: ACPI Error: Could not release AML Interpreter mutex (20170303/exutils-157)
May 13 11:59:21  /netbsd: ahcisata0 channel 0: setting WDCTL_RST failed for drive 0
May 13 11:59:21  /netbsd: Skipping crash dump on recursive panic
May 13 11:59:21  /netbsd: panic: wddump: polled command has been queued
May 13 11:59:21  /netbsd: cpu0: Begin traceback...
May 13 11:59:21  /netbsd: vpanic() at netbsd:vpanic+0x140
May 13 11:59:21  /netbsd: snprintf() at netbsd:snprintf
May 13 11:59:21  /netbsd: wddump() at netbsd:wddump+0x295
May 13 11:59:21  /netbsd: dump_header_flush() at netbsd:dump_header_flush+0x53
May 13 11:59:21  /netbsd: dump_header_addbytes() at netbsd:dump_header_addbytes+0x40
May 13 11:59:21  /netbsd: dump_header_addseg() at netbsd:dump_header_addseg+0x1e
May 13 11:59:21  /netbsd: dump_seg_iter() at netbsd:dump_seg_iter+0xd2
May 13 11:59:21  /netbsd: cpu_dump() at netbsd:cpu_dump+0x6a
May 13 11:59:21  /netbsd: dodumpsys() at netbsd:dodumpsys+0xfb
May 13 11:59:21  /netbsd: dumpsys() at netbsd:dumpsys+0x1d
May 13 11:59:21  /netbsd: vpanic() at netbsd:vpanic+0x149
May 13 11:59:21  /netbsd: snprintf() at netbsd:snprintf
May 13 11:59:21  /netbsd: trap() at netbsd:trap+0xc6b
May 13 11:59:21  /netbsd: --- trap (number 6) ---
May 13 11:59:21  /netbsd: drm_pci_irq_install() at netbsd:drm_pci_irq_install+0x99
May 13 11:59:21  /netbsd: drm_irq_install() at netbsd:drm_irq_install+0xb7
May 13 11:59:21  /netbsd: __i915_drm_thaw() at netbsd:__i915_drm_thaw+0xc9
May 13 11:59:21  /netbsd: i915drmkms_resume() at netbsd:i915drmkms_resume+0x34
May 13 11:59:21  /netbsd: device_pmf_driver_resume() at netbsd:device_pmf_driver_resume+0x46
May 13 11:59:21  /netbsd: pmf_device_resume_locked() at netbsd:pmf_device_resume_locked+0xd3
May 13 11:59:21  /netbsd: pmf_device_resume() at netbsd:pmf_device_resume+0x41
May 13 11:59:21  /netbsd: pmf_system_resume() at netbsd:pmf_system_resume+0xc7
May 13 11:59:21  /netbsd: acpi_enter_sleep_state() at netbsd:acpi_enter_sleep_state+0x182
May 13 11:59:21  /netbsd: sysctl_hw_acpi_sleepstate() at netbsd:sysctl_hw_acpi_sleepstate+0xfe
May 13 11:59:21  /netbsd: sysctl_dispatch() at netbsd:sysctl_dispatch+0xc1
May 13 11:59:21  /netbsd: sys___sysctl() at netbsd:sys___sysctl+0xd8
May 13 11:59:21  /netbsd: syscall() at netbsd:syscall+0x1d8
May 13 11:59:21  /netbsd: --- syscall (number 202) ---
May 13 11:59:21  /netbsd: 76e0b4b0d03a:
May 13 11:59:21  /netbsd: cpu0: End traceback...
May 13 11:59:21  /netbsd: rebooting...
>How-To-Repeat:
1) run sysctl  -w hw.acpi.sleep.state=3
2) Press power button to wake
>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 18 Aug 2019 06:03:00 +0000
State-Changed-Why:
Please re-test


From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/52232: MacBook Air reboots upon waking from sleep
Date: Thu, 5 Nov 2020 13:12:26 +0000

 Please close this PR.


 Sevan

State-Changed-From-To: feedback->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Thu, 05 Nov 2020 13:22:37 +0000
State-Changed-Why:
Closing on submitters request



>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.