From owner-freebsd-questions@freebsd.org Wed Jan 10 19:47:46 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01CEAE7287D for ; Wed, 10 Jan 2018 19:47:46 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [IPv6:2607:f3e0:80:80::2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D3CE76831A for ; Wed, 10 Jan 2018 19:47:45 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (lava.sentex.ca [IPv6:2607:f3e0:0:5::11]) by smarthost2.sentex.ca (8.15.2/8.15.2) with ESMTPS id w0AJliD1002641 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 10 Jan 2018 14:47:44 -0500 (EST) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.net [192.168.43.26]) by lava.sentex.ca (8.15.2/8.15.2) with ESMTP id w0AJlgUF070669 for ; Wed, 10 Jan 2018 14:47:42 -0500 (EST) (envelope-from mike@sentex.net) To: freebsd-questions From: Mike Tancsa Subject: mmcsd / sdhci_pci errors Organization: Sentex Communications Message-ID: Date: Wed, 10 Jan 2018 14:47:44 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2018 19:47:46 -0000 On a couple of PCEngines APU2 and APU3 boxes, I have been having errors on the SD cards when I try to write to them after about a day. If I reboot, mount the sd card rw, make some changes and then remount the card ro, all is fine. Then the next day if I try and do it again, I get errors of this sort below. Is that a bad card ? Bug ? sdhci_pci0-slot0: =========================================== g_vfs_done():mmcsd0s1a[READ(offset=994430976, length=4096)]error = 5 sdhci_pci0-slot0: Got AutoCMD12 error 0x0001, but there is no active command. sdhci_pci0-slot0: ============== REGISTER DUMP ============== sdhci_pci0-slot0: Sys addr: 0x050bd000 | Version: 0x00001001 sdhci_pci0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000008 sdhci_pci0-slot0: Argument: 0x001e085f | Trn mode: 0x00000037 sdhci_pci0-slot0: Present: 0x01ef0000 | Host ctl: 0x00000007 sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007 sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000000 sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00f3 sdhci_pci0-slot0: AC12 err: 0x00000001 | Host ctl2:0x00000080 sdhci_pci0-slot0: Caps: 0x21fe32b2 | Caps2: 0x00000070 sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000 sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x000000ff sdhci_pci0-slot0: =========================================== g_vfs_done():mmcsd0s1a[READ(offset=1007689728, length=4096)]error = 5 sdhci_pci0-slot0: Got AutoCMD12 error 0x0001, but there is no active command. sdhci_pci0-slot0: ============== REGISTER DUMP ============== sdhci_pci0-slot0: Sys addr: 0x050bd000 | Version: 0x00001001 sdhci_pci0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000008 sdhci_pci0-slot0: Argument: 0x001f37d7 | Trn mode: 0x00000037 sdhci_pci0-slot0: Present: 0x01ef0000 | Host ctl: 0x00000007 sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007 sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00608000 sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00f3 sdhci_pci0-slot0: AC12 err: 0x00000001 | Host ctl2:0x00000080 sdhci_pci0-slot0: Caps: 0x21fe32b2 | Caps2: 0x00000070 sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000 sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x000000ff sdhci_pci0-slot0: =========================================== sdhci_pci0-slot0: g_vfs_done():Got data interrupt 0x00600000, but there is no active command. sdhci_pci0-slot0: mmcsd0s1a[READ(offset=1047465984, length=4096)]error = 5 ============== REGISTER DUMP ============== sdhci_pci0-slot0: Sys addr: 0x050bd000 | Version: 0x00001001 sdhci_pci0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000008 sdhci_pci0-slot0: Argument: 0x001f37d7 | Trn mode: 0x00000037 sdhci_pci0-slot0: Present: 0x01ef0000 | Host ctl: 0x00000006 sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007 sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000000 sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00f3 sdhci_pci0-slot0: AC12 err: 0x00000001 | Host ctl2:0x00000080 sdhci_pci0-slot0: Caps: 0x21fe32b2 | Caps2: 0x00000070 sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000 sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x000000ff sdhci_pci0-slot0: =========================================== sdhci_pci0-slot0: mmcsd0: Got AutoCMD12 error 0x0001, but there is no active command. sdhci_pci0-slot0: ============== REGISTER DUMP ============== sdhci_pci0-slot0: Sys addr: 0x050bd000 | Version: 0x00001001 sdhci_pci0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000008 sdhci_pci0-slot0: Argument: 0x001f9cff | Trn mode: 0x00000037 sdhci_pci0-slot0: Present: 0x01ef0000 | Host ctl: 0x00000007 sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007 sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00608000 sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00f3 sdhci_pci0-slot0: AC12 err: 0x00000001 | Host ctl2:0x00000080 sdhci_pci0-slot0: Caps: 0x21fe32b2 | Caps2: 0x00000070 sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000 sdhci_pci0-slot0: Error indicated: 1 Timeout ADMA addr:0x00000000 | Slot int: 0x000000ff sdhci_pci0-slot0: =========================================== sdhci_pci0-slot0: Got data interrupt 0x00600000, but there is no active command. sdhci_pci0-slot0: ============== REGISTER DUMP ============== sdhci_pci0-slot0: Sys addr: 0x050bd000 | Version: 0x00001001 sdhci_pci0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000008 sdhci_pci0-slot0: Argument: 0x001f9cff | Trn mode: 0x00000037 sdhci_pci0-slot0: Present: 0x01ef0000 | Host ctl: 0x00000007 sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007 sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000000 sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00f3 sdhci_pci0-slot0: AC12 err: 0x00000001 | Host ctl2:0x00000080 sdhci_pci0-slot0: Caps: 0x21fe32b2 | Caps2: 0x00000070 sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000 sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x000000ff sdhci_pci0-slot0: =========================================== g_vfs_done():mmcsd0s1a[READ(offset=1060724736, length=4096)]error = 5 sdhci_pci0-slot0: mmcsd0: Got AutoCMD12 error 0x0001, but there is no active command. sdhci_pci0-slot0: ============== REGISTER DUMP ============== sdhci_pci0-slot0: Sys addr: 0x050bd000 | Version: 0x00001001 sdhci_pci0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000008 sdhci_pci0-slot0: Error indicated: 1 Timeout Argument: 0x00200227 | Trn mode: 0x00000037 sdhci_pci0-slot0: Present: 0x01ef0000 | Host ctl: 0x00000007 sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007 sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000000 sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00f3 sdhci_pci0-slot0: AC12 err: 0x00000001 | Host ctl2:0x00000080 sdhci_pci0-slot0: Caps: 0x21fe32b2 | Caps2: 0x00000070 sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000 sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x000000ff sdhci_pci0-slot0: =========================================== g_vfs_done():mmcsd0s1a[READ(offset=1073983488, length=4096)]error = 5 sdhci_pci0-slot0: mmcsd0: Got AutoCMD12 error 0x0001, but there is no active command. sdhci_pci0-slot0: Error indicated: 1 Timeout ============== REGISTER DUMP ============== sdhci_pci0-slot0: Sys addr: 0x050bd000 | Version: 0x00001001 sdhci_pci0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000008 sdhci_pci0-slot0: Argument: 0x0020674f | Trn mode: 0x00000037 sdhci_pci0-slot0: Present: 0x01ef0000 | Host ctl: 0x00000007 sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007 sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000000 sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00f3 sdhci_pci0-slot0: AC12 err: 0x00000001 | Host ctl2:0x00000080 sdhci_pci0-slot0: Caps: 0x21fe32b2 | Caps2: 0x00000070 sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000 sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x000000ff sdhci_pci0-slot0: =========================================== g_vfs_done():mmcsd0s1a[READ(offset=1087242240, length=4096)]error = 5 sdhci_pci0-slot0: mmcsd0: Got AutoCMD12 error 0x0001, but there is no active command. sdhci_pci0-slot0: ============== REGISTER DUMP ============== sdhci_pci0-slot0: Sys addr: 0x050bd000 | Version: 0x00001001 sdhci_pci0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000008 sdhci_pci0-slot0: Argument: 0x0020cc77 | Trn mode: 0x00000037 sdhci_pci0-slot0: Present: 0x01ef0000 | Host ctl: 0x00000007 sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007 sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000000 sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00f3 sdhci_pci0-slot0: AC12 err: 0x00000001 | Host ctl2:0x00000080 sdhci_pci0-slot0: Error indicated: 1 Timeout Caps: 0x21fe32b2 | Caps2: 0x00000070 sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000 sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x000000ff sdhci_pci0-slot0: =========================================== g_vfs_done():mmcsd0s1a[READ(offset=1100500992, length=4096)]error = 5 sdhci_pci0-slot0: mmcsd0: Got AutoCMD12 error 0x0001, but there is no active command. sdhci_pci0-slot0: Error indicated: 1 Timeout ============== REGISTER DUMP ============== sdhci_pci0-slot0: Sys addr: 0x050bd000 | Version: 0x00001001 sdhci_pci0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000008 sdhci_pci0-slot0: Argument: 0x0021319f | Trn mode: 0x00000037 sdhci_pci0-slot0: Present: 0x01ef0000 | Host ctl: 0x00000007 sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007 sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00608000 sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00f3 sdhci_pci0-slot0: AC12 err: 0x00000001 | Host ctl2:0x00000080 sdhci_pci0-slot0: Caps: 0x21fe32b2 | Caps2: 0x00000070 sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000 sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x000000ff sdhci_pci0-slot0: =========================================== sdhci_pci0-slot0: Got data interrupt 0x00600000, but there is no active command. sdhci_pci0-slot0: ============== REGISTER DUMP ============== sdhci_pci0-slot0: Sys addr: 0x050bd000 | Version: 0x00001001 sdhci_pci0-slot0: Blk size: 0x00000200 | Blk cnt: 0x00000008 sdhci_pci0-slot0: Argument: 0x0021319f | Trn mode: 0x00000037 sdhci_pci0-slot0: Present: 0x01ef0000 | Host ctl: 0x00000007 sdhci_pci0-slot0: Power: 0x0000000f | Blk gap: 0x00000000 sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x00000007 sdhci_pci0-slot0: Timeout: 0x0000000d | Int stat: 0x00000000 sdhci_pci0-slot0: Int enab: 0x01ff00fb | Sig enab: 0x01ff00f3 sdhci_pci0-slot0: AC12 err: 0x00000001 | Host ctl2:0x00000080 sdhci_pci0-slot0: Caps: 0x21fe32b2 | Caps2: 0x00000070 sdhci_pci0-slot0: Max curr: 0x00c80064 | ADMA err: 0x00000000 sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x000000ff sdhci_pci0-slot0: =========================================== -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/