From owner-freebsd-bugs@freebsd.org Sat Jun 15 17:34:00 2019 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 DD0EC15CC222 for ; Sat, 15 Jun 2019 17:33:59 +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 68D2485060 for ; Sat, 15 Jun 2019 17:33:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 1FEAD15CC221; Sat, 15 Jun 2019 17:33:59 +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 F191315CC220 for ; Sat, 15 Jun 2019 17:33:58 +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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8E57A8505D for ; Sat, 15 Jun 2019 17:33:58 +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 BB7E8E2A9 for ; Sat, 15 Jun 2019 17:33:57 +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 x5FHXvrK086188 for ; Sat, 15 Jun 2019 17:33:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5FHXvMA086187 for bugs@FreeBSD.org; Sat, 15 Jun 2019 17:33:57 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 238585] Intel Bay Trail/Braswell eMMC timeouts Date: Sat, 15 Jun 2019 17:33:57 +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: 12.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: paul.le.gauret@gmail.com 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 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.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jun 2019 17:34:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238585 Bug ID: 238585 Summary: Intel Bay Trail/Braswell eMMC timeouts Product: Base System Version: 12.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: paul.le.gauret@gmail.com Running latest FreeBSD 12.0-RELEASE on an "Atomic Pi" board (Atom x5-Z8350 based). System is installed on the internal eMMC, filesystem is ZFS. Every once in a while (sometimes hours, sometimes days) the system freezes = with no emmc disk IO possible. The system log shows the following happening. Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: mmcsd0: Got AutoCMD12 error 0x0001, but there is no active command. Jun 11 05:27:11 atomicbsd kernel: Issuing erase command failed Timeout Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: =3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D REGISTER DUMP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: Sys addr: 0x035e3000 | Version: 0x00001002 Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: Blk size: 0x00000200 |= Blk cnt: 0x00000000 Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: Argument: 0x00000001 |= Trn mode: 0x00000027 Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: Present: 0x1fef0000 | Host ctl: 0x00000025 Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: Power: 0x0000000b |= Blk gap: 0x00000080 Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007 Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: Timeout: 0x00000007 |= Int stat: 0x00000000 Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: Int enab: 0x05ff003b |= Sig enab: 0x05ff0033 Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: AC12 err: 0x00000000 | Host ctl2:0x0000008b Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: Caps: 0x446cc8b2 | Caps2: 0x00000807 Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000 Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000 Jun 11 05:27:11 atomicbsd kernel: sdhci_acpi0-slot0: =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Jun 11 05:27:11 atomicbsd kernel: mmcsd0: Error indicated: 1 Timeout Jun 11 05:27:11 atomicbsd kernel: mmcsd0: Setting erase start position fail= ed Timeout Jun 11 05:27:11 atomicbsd syslogd: last message repeated 3 times The issue always happens when issuing the erase command.=20 For reference, relevant messages from system boot related to sdhci and emmc: sdhci_acpi0: iomem 0x89533000-0x89533fff irq 45 on acpi0 mmc0: on sdhci_acpi0 mmcsd0: 16GB at mm= c0 50.0MHz/8bit/65535-block mmcsd0boot0: 4MB partion 1 at mmcsd0 mmcsd0boot1: 4MB partion 2 at mmcsd0 mmcsd0rpmb: 4MB partion 3 at mmcsd0 Once this happens only a reboot re-enables emmc disk IO.=20 I've tried to enable a few quirks based on the indications in bug 228340 without success. Not sure of what to try next, besides installing another OS to rule-out a hardware error.=20 Any ideas on how to troubleshoot this would be greatly appreciated. --=20 You are receiving this mail because: You are the assignee for the bug.=