From owner-freebsd-bugs@freebsd.org Fri Aug 17 23:50:40 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C1CD7107EFBA for ; Fri, 17 Aug 2018 23:50:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 5F4AB77DEF for ; Fri, 17 Aug 2018 23:50:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 20993107EFB9; Fri, 17 Aug 2018 23:50:40 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8EC9107EFB8 for ; Fri, 17 Aug 2018 23:50:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 75FF977DE6 for ; Fri, 17 Aug 2018 23:50:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id C4016239EE for ; Fri, 17 Aug 2018 23:50:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7HNocQg059891 for ; Fri, 17 Aug 2018 23:50:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7HNoc5g059890 for bugs@FreeBSD.org; Fri, 17 Aug 2018 23:50:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 230722] [nvme][resume] Delay and possible deadlock after resume Date: Fri, 17 Aug 2018 23:50:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gonzo@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2018 23:50:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230722 Bug ID: 230722 Summary: [nvme][resume] Delay and possible deadlock after resume Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: gonzo@FreeBSD.org CC: imp@FreeBSD.org, jimharris@FreeBSD.org When resuming from S3 sleep any disk activity stops for around 30 seconds a= nd kernel prints a bunch of error messages from NVME. Eventually, the system resumes normal operations. I also saw this scenario resulting in deadlock although can't reproduce it reliably anymore. Error messages printed by the kernel: nvme0: Resetting controller due to a timeout. nvme0: resetting controller nvme0: aborting outstanding i/o nvme0: READ sqid:1 cid:111 nsid:1 lba:98381272 len:8 nvme0: ABORTED - BY REQUEST (00/07) sqid:1 cid:111 cdw0:0 nvme0: aborting outstanding i/o nvme0: READ sqid:1 cid:124 nsid:1 lba:626180072 len:8 nvme0: ABORTED - BY REQUEST (00/07) sqid:1 cid:124 cdw0:0 nvme0: aborting outstanding i/o nvme0: READ sqid:2 cid:121 nsid:1 lba:617174512 len:40 nvme0: ABORTED - BY REQUEST (00/07) sqid:2 cid:121 cdw0:0 nvme0: aborting outstanding i/o nvme0: DATASET MANAGEMENT sqid:4 cid:94 nsid:1 nvme0: ABORTED - BY REQUEST (00/07) sqid:4 cid:94 cdw0:0 nvme0: aborting outstanding i/o nvme0: WRITE sqid:4 cid:93 nsid:1 lba:46557808 len:16 nvme0: ABORTED - BY REQUEST (00/07) sqid:4 cid:93 cdw0:0 nvme0: Missing interrupt Controller information: Controller Capabilities/Features =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Vendor ID: 17aa Subsystem Vendor ID: 17aa Serial Number: 1150592304774 Model Number: LENSE20512GMSP34MEAT2TA Firmware Version: 1.9.8341 Recommended Arb Burst: 2 IEEE OUI Identifier: 99 32 a0 Multi-Path I/O Capabilities: Not Supported Max Data Transfer Size: 131072 Controller ID: 0x01 Version: 0.0.0 Admin Command Set Attributes =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D Security Send/Receive: Supported Format NVM: Supported Firmware Activate/Download: Supported Namespace Managment: Not Supported Device Self-test: Not Supported Directives: Not Supported NVMe-MI Send/Receive: Not Supported Virtualization Management: Not Supported Doorbell Buffer Config Not Supported Abort Command Limit: 4 Async Event Request Limit: 4 Number of Firmware Slots: 1 Firmware Slot 1 Read-Only: No Per-Namespace SMART Log: No Error Log Page Entries: 4 Number of Power States: 5 NVM Command Set Attributes =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Submission Queue Entry Size Max: 64 Min: 64 Completion Queue Entry Size Max: 16 Min: 16 Number of Namespaces: 1 Compare Command: Not Supported Write Uncorrectable Command: Supported Dataset Management Command: Supported Write Zeroes Command: Not Supported Save Features: Supported Reservations: Not Supported Timestamp feature: Not Supported Fused Operation Support: Not Supported Format NVM Attributes: Crypto Erase, Per-NS Erase, Per-NS Format Volatile Write Cache: Present --=20 You are receiving this mail because: You are the assignee for the bug.=