Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2018 14:47:44 -0500
From:      Mike Tancsa <mike@sentex.net>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   mmcsd / sdhci_pci errors
Message-ID:  <fc627963-cce8-ddd6-4bea-648a0f44611d@sentex.net>

Next in thread | Raw E-Mail | Index | Archive | Help
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/



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?fc627963-cce8-ddd6-4bea-648a0f44611d>