[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-arm
Subject:    Re: PINE64:  aw_mmc0: controller timeout aw_mmc0: timeout updating clock
From:       "O. Hartmann" <ohartmann () walstatt ! org>
Date:       2018-06-10 13:24:33
Message-ID: 20180610152500.18567ade () thor ! intern ! walstatt ! dynvpn ! de
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Am Sat, 9 Jun 2018 19:31:07 +0200
Emmanuel Vadot <manu@bidouilliste.com> schrieb:

>  Hi,
> 
> On Sat, 9 Jun 2018 18:07:11 +0200
> "O. Hartmann" <ohartmann@walstatt.org> wrote:
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA512
> > 
> > Running a PINE64 with a recent CURRENT ( FreeBSD 12.0-CURRENT #27 r334874: Sat Jun  9
> > 09:31:07 CEST 2018 aarch64) and trying to update the system via "pkg Base" (self
> > compiled on a amd64 system), it turns out, that updating the Pine64 on such a way is
> > a ever lasting job. 
> > 
> > Downloading is a task I need a lot of patience even with the 1 GBit NIC of the Pine64,
> > but extracting turns out to be a slow as the movement of a glacier and most of the
> > time my Pine64 crashes due to the error shown below.
> > 
> > The SD card is not the fastest one, dmesg reports
> > 
> > mmcsd0: 16GB <SDHC SD16G 3.0 SN 01125EA3 MFG 06/2015 by 39 PH> at mmc0
> > 50.0MHz/4bit/32768-block
> > 
> > but on other systems the performance is sufficient - but not on the Pine64. I haven't
> > checked with other SD cards due to the lack of other types, so if the reason for the
> > timing problems is the SD card and not the driver, I'll check with another one. 
> > 
> > But could someone check?  
> 
>   I know there is still a bug somewhere in the driver that cause this,
> I use to be able to reproduce it with pkg install llvm50 but not
> anymore after my latest commits. I guess I have a new test case.
>  What's the size of the FreeBSD-runtime-debug-12.0.s20180609073121
> package ?
> 
> > What is about MMCCAM? Is it worth giving that a try or is its development state to
> > risky regarding the usage on a Pine64?  
> 
>  No support for MMCCAM in this driver, kibab@ is working on it.
> 
> > Thanks in advance,
> > 
> > oh
> > 
> > [...]
> > Proceed with this action? [y/N]: y
> > [1/379] Upgrading FreeBSD-runtime-debug from 12.0.s20180602132042 to
> > 12.0.s20180609073121... [1/379] Extracting FreeBSD-runtime-debug-12.0.s20180609073121:
> > 89%aw_mmc0: controller timeout aw_mmc0: timeout updating clock
> > mmcsd0: Error indicated: 1 Timeout
> > g_vfs_done():ufs/rootfs[WRITE(offset=131072, length=32768)]error = 5
> > softdep_update_inodeblock: bwrite: got error 5 while accessing filesystem
> > aw_mmc0: controller timeout
> > aw_mmc0: timeout updating clock
> > mmcsd0: Error indicated: 1 Timeout
> > g_vfs_done():ufs/rootfs[WRITE(offset=196608, length=32768)]error = 5
> > aw_mmc0: controller timeout
> > aw_mmc0: timeout updating clock
> > mmcsd0: Error indicated: 1 Timeout
> > g_vfs_done():ufs/rootfs[WRITE(offset=425984, length=32768)]error = 5
> > aw_mmc0: controller timeout
> > aw_mmc0: timeout updating clock
> > mmcsd0: Error indicated: 1 Timeout
> > g_vfs_done():ufs/rootfs[WRITE(offset=2195456, length=32768)]error = 5
> > aw_mmc0: controller timeout
> > aw_mmc0: timeout updating clock
> > mmcsd0: Error indicated: 1 Timeout
> > g_vfs_done():ufs/rootfs[WRITE(offset=2228224, length=32768)]error = 5
> > 
> > pkg: Fail to truncate
> > file: /usr/lib/debug/usr/sbin/.praliases.debug.RVoslDv5e7DD:Input/output error
> > aw_mmc0: controller timeout aw_mmc0: timeout updating clock
> > mmcsd0: Error indicated: 1 Timeout
> > g_vfs_done():ufs/rootfs[WRITE(offset=22646784, length=4096)]error = 5
> > aw_mmc0: controller timeout
> > aw_mmc0: timeout updating clock
> > mmcsd0: Error indicated: 1 Timeout
> > g_vfs_done():ufs/rootfs[WRITE(offset=654704640, length=32768)]error = 5
> > 
> > aw_mmc0: controller timeout
> > aw_mmc0: timeout updating clock
> > mmcsd0: Error indicated: 1 Timeout
> > g_vfs_done():ufs/rootfs[WRITE(offset=1303248896, length=32768)]error = 5
> > aw_mmc0: controller timeout
> > 
> > [...]
> > 
> > aw_mmc0: controller timeout
> > aw_mmc0: timeout updating clock
> > mmcsd0: Error indicated: 1 Timeout
> > g_vfs_done():panic: vm_fault_hold: fault on nofault entry, addr: 0xffff000043330000
> > cpuid = 1
> > time = 1262342837
> > KDB: stack backtrace:
> > #0 0xffff00000038b34c at kdb_backtrace+0x60
> > #1 0xffff00000034384c at vpanic+0x1a8
> > #2 0xffff0000003436a0 at panic+0x44
> > #3 0xffff00000060f650 at vm_fault_hold+0x20b4
> > #4 0xffff00000060d544 at vm_fault+0x60
> > #5 0xffff000000666154 at data_abort+0xa0
> > #6 0xffff000000665fb0 at do_el1h_sync+0x11c
> > #7 0xffff000000650874 at handle_el1h_sync+0x74
> > #8 0xffff00000064e8f8 at bounce_bus_dmamap_sync+0x258
> > #9 0xffff00000063c7a0 at aw_mmc_request+0x32c
> > #10 0xffff00000015a358 at mmc_wait_for_request+0x120
> > #11 0xffff00000016319c at mmcsd_rw+0x198
> > #12 0xffff000000161d98 at mmcsd_task+0x220
> > #13 0xffff000000306490 at fork_exit+0x90
> > Uptime: 20m2s
> > 
> > U-Boot SPL 2018.03 (May 29 2018 - 17:22:25 +0000)
> > DRAM: 2048 MiB
> > Trying to boot from MMC1
> > 
> > 
> > U-Boot 2018.03 (May 29 2018 - 17:22:25 +0000) Allwinner Technology
> > 
> > CPU:   Allwinner A64 (SUN50I)
> > Model: Pine64+
> > DRAM:  2 GiB
> > MMC:   SUNXI SD/MMC: 0
> > Loading Environment from FAT... *** Warning - bad CRC, using default environment
> > 
> > Failed (-5)
> > Loading Environment from MMC... *** Warning - bad CRC, using default environment
> > 
> > Failed (-5)
> > In:    serial
> > Out:   serial
> > Err:   serial
> > Net:   phy interface7
> > eth0: ethernet@01c30000
> > starting USB...
> > USB0:   USB EHCI 1.00
> > USB1:   USB OHCI 1.0
> > scanning bus 0 for devices... 1 USB Device(s) found
> >        scanning usb for storage devices... 0 Storage Device(s) found
> > Hit any key to stop autoboot:  2 
> > 
> > - -- 
> > O. Hartmann
> > 
> > Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
> > Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).
> > -----BEGIN PGP SIGNATURE-----
> > 
> > iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWxv7SgAKCRDS528fyFhY
> > lNncAf9ElDc9ZC9cSVJbq/LrFgC6xjLczcIDUBHNGgLTyVeYWiQvo3TN8SgCiTga
> > Fizga6dIHGrQ/RwmGtxeR8rfiUP2Af0Q8yVEI9vA7kX0niLn1G/IxaQXy8IFw7Wc
> > Fn94C0cJr/2iqEsgSLsrqfMfaVFHlwNCBzS5Wr+Di/9y8R8Z4Qbs
> > =3YP2
> > -----END PGP SIGNATURE-----
> > _______________________________________________
> > freebsd-arm@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"  
> 
> 

There occurs another problem from time to time:

[...]
[36/230] Extracting FreeBSD-libmemstat-development-12.0.s20180610064704:   0%lock order
reversal: 1st 0xfffffd00253a7068 ufs (ufs)
@ /pool/sources/CURRENT/src/sys/kern/vfs_subr.c:2572 2nd 0xffff000040d5d350 bufwait
(bufwait) @ /pool/sources/CURRENT/src/sys/ufs/ffs/ffs_vnops.c:282 3rd 0xfffffd00254827e8
ufs (ufs) @ /pool/sources/CURRENT/src/sys/kern/vfs_subr.c:2572 stack backtrace:
#0 0xffff0000003df300 at witness_debugger+0x64
#1 0xffff000000350080 at lockmgr_xlock_hard+0x6c
#2 0xffff0000003508fc at __lockmgr_args+0x4ac
#3 0xffff0000006007bc at ffs_lock+0x88
#4 0xffff0000006be484 at VOP_LOCK1_APV+0xac
#5 0xffff000000451af0 at _vn_lock+0x64
#6 0xffff000000442130 at vget+0x78
#7 0xffff000000434f24 at vfs_hash_get+0xec
#8 0xffff0000005fc7ec at ffs_vgetf+0x44
#9 0xffff0000005f342c at softdep_sync_buf+0x9f4
#10 0xffff0000006014f8 at ffs_syncvnode+0x26c
#11 0xffff0000005db4cc at ffs_truncate+0x6b4
#12 0xffff0000006080c4 at ufs_direnter+0x778
#13 0xffff0000006101d0 at ufs_makeinode+0x4b8
#14 0xffff00000060c8a8 at ufs_create+0x38
#15 0xffff0000006bb73c at VOP_CREATE_APV+0xac
#16 0xffff000000451464 at vn_open_cred+0x264
#17 0xffff00000044a878 at kern_openat+0x208


- -- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).
-----BEGIN PGP SIGNATURE-----

iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWx0mrAAKCRDS528fyFhY
lL3iAf4u2h9NOOPKhRP39dt1Rmjtrnje+EefeTRzb3+mqLQ2olEmwE0zl9UF6XHo
471PP+D6Kc556+nbJyb5n/CKjL0MAf9HOUyXCRz/FDGspSn34HyyQ6Veq+LmtvuD
zBHwqtfzp8v1TyTUCynhwVv0HPIm3mF0/Gj05UIDuPdsY5l4tpmn
=EaOk
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-arm@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic