NetBSD Problem Report #53658
From www@NetBSD.org Sun Oct 7 19:13:04 2018
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 "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 584027A110
for <gnats-bugs@gnats.NetBSD.org>; Sun, 7 Oct 2018 19:13:04 +0000 (UTC)
Message-Id: <20181007191303.24FB07A202@mollari.NetBSD.org>
Date: Sun, 7 Oct 2018 19:13:03 +0000 (UTC)
From: coypu@sdf.org
Reply-To: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Subject: suspend from USB installer doesn't work if / is mounted read-write
X-Send-Pr-Version: www-1.0
>Number: 53658
>Category: kern
>Synopsis: suspend from USB installer doesn't work if / is mounted read-write
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 07 19:15:00 +0000 2018
>Last-Modified: Mon Oct 29 02:30:00 +0000 2018
>Originator: coypu
>Release: NetBSD 8.99.25
>Organization:
>Environment:
NetBSD 8.99.25
>Description:
uefi booting, hand transcription:
acpi0: entering state S3
Flushing disk caches: 20 20 19 19 19 19 19 done
sd0(umass0:0:0:0): generic HBA error
sd0: cache synchronization failed
fatal page fault in supervisor mode
from ddb:
Stopped in pid 0.6 (system) at netbsd:db_disasm+0xec: movq 0(%rdx,%rcx,8),%rcx
db{0}> bt
db_disasm
db_trap
kdb_trap
trap
--- trap (number 6) ---
?() at 0
xhci_softintr
usb_soft_intr
softint_dispatch
DDB lost frame for netbsd:Xsoftintr+0x4f, trying 0xffff....
Xsoftintr()
--- interrupt ---
840eb582d69a10ab:
>How-To-Repeat:
>Fix:
No idea, but I can work around it by dropping to boot prompt and using `boot -s`, which means that / stays a read only mount.
>Audit-Trail:
From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/53658: suspend from USB installer doesn't work if / is
mounted read-write
Date: Sun, 14 Oct 2018 19:00:13 -0400
I tried duplicating this with an 8.0_STABLE install kernel, and found
a different issue. In in order to trigger the panic, the kernel of
course has to support suspension on the particular hardware in
question, mine being a Lenovo T420, which instead yields:
acpilid0: lid closed.
acpivga0: unknown notify 0x00
acpivga0: bad notify
Or:
thinkpad0: sleep button pressed. (And then it doesn't suspend.)
A different bug entirely, which I suppose I should file.
Dave
From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/53658: suspend from USB installer doesn't work if / is
mounted read-write
Date: Sun, 28 Oct 2018 22:28:19 -0400
On Sun, 2018-10-14 at 19:00 -0400, David H. Gutteridge wrote:
> I tried duplicating this with an 8.0_STABLE install kernel, and found
> a different issue. In in order to trigger the panic, the kernel of
> course has to support suspension on the particular hardware in
> question, mine being a Lenovo T420, which instead yields:
Correction, I can get the T420 to suspend by writing to
hw.acpi.sleep.state. (I'd mistakenly assumed the "bad notify" message
meant that wouldn't work.) With an amd64 installer image, without
booting read-only, I get essentially the same backtrace. Booting
read-only, suspending and resuming works almost perfectly.
Here's the interesting thing: I also tried with an i386 installer
image (of 8.99.25, built yesterday), and I cannot duplicate this
issue with it. Booting with root mounted with write permissions,
suspending and resuming works perfectly. So something's different
between amd64 and i386 here.
Dave
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.