From owner-freebsd-arm@freebsd.org Sat Jun 9 17:31:21 2018 Return-Path: Delivered-To: freebsd-arm@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 53A811014E25 for ; Sat, 9 Jun 2018 17:31:21 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C7B828586C for ; Sat, 9 Jun 2018 17:31:20 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 0277ab33; Sat, 9 Jun 2018 19:31:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=be8I/SGKrlNTn3nunSwv8FpidX0=; b=k2DHHaAhtGfmijLoZxoMZly4jo7e qeo9BH5DloSJZBq3iWOEEFSp52FicK1EcZ59CeUpmk8GZQzNdus1CCCkEW+VyThb hYclo/j4FxVgMuGzsGUnMzp+oFhNC+9V3Onu+TxP8A/GHe8V7nlQo+BQcw3icnTJ ymUUvksVBNghLr8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=TPler6OdXG8Yn9/R3ZJSuYMD+wR84mV8SNvhUe+nzpEh5Kmh4T+xya+l DCsQpK4gNETNTWe/UsztEDbwyZOS2GkFIuPyJVg+Hfy889JxgicBsvTjBU80zyrt iNPVL5nuR3nlK86m6hwKmJ6d3YPzY1SPmcT9T7nhLmj52sMruLI= Received: from knuckles.blih.net (137.122.64.159 [137.122.64.159]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 5cb11b9e TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sat, 9 Jun 2018 19:31:12 +0200 (CEST) Date: Sat, 9 Jun 2018 19:31:07 +0200 From: Emmanuel Vadot To: "O. Hartmann" Cc: "freebsd-arm@freebsd.org" Subject: Re: PINE64: aw_mmc0: controller timeout aw_mmc0: timeout updating clock Message-Id: <20180609193107.077aa9342126f550a88d1f26@bidouilliste.com> In-Reply-To: <20180609180738.694fc3cf@thor.intern.walstatt.dynvpn.de> References: <20180609180738.694fc3cf@thor.intern.walstatt.dynvpn.de> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2018 17:31:21 -0000 Hi, On Sat, 9 Jun 2018 18:07:11 +0200 "O. Hartmann" wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 >=20 > 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.=20 >=20 > Downloading is a task I need a lot of patience even with the 1 GBit NIC o= f the Pine64, > but extracting turns out to be a slow as the movement of a glacier and mo= st of the time > my Pine64 crashes due to the error shown below. >=20 > The SD card is not the fastest one, dmesg reports >=20 > mmcsd0: 16GB at mmc0 > 50.0MHz/4bit/32768-block >=20 > but on other systems the performance is sufficient - but not on the Pine6= 4. I haven't > checked with other SD cards due to the lack of other types, so if the rea= son for the > timing problems is the SD card and not the driver, I'll check with anothe= r one.=20 >=20 > 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, >=20 > oh >=20 > [...] > 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.s20= 180609073121: > 89%aw_mmc0: controller timeout aw_mmc0: timeout updating clock > mmcsd0: Error indicated: 1 Timeout > g_vfs_done():ufs/rootfs[WRITE(offset=3D131072, length=3D32768)]error =3D 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=3D196608, length=3D32768)]error =3D 5 > aw_mmc0: controller timeout > aw_mmc0: timeout updating clock > mmcsd0: Error indicated: 1 Timeout > g_vfs_done():ufs/rootfs[WRITE(offset=3D425984, length=3D32768)]error =3D 5 > aw_mmc0: controller timeout > aw_mmc0: timeout updating clock > mmcsd0: Error indicated: 1 Timeout > g_vfs_done():ufs/rootfs[WRITE(offset=3D2195456, length=3D32768)]error =3D= 5 > aw_mmc0: controller timeout > aw_mmc0: timeout updating clock > mmcsd0: Error indicated: 1 Timeout > g_vfs_done():ufs/rootfs[WRITE(offset=3D2228224, length=3D32768)]error =3D= 5 >=20 > 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=3D22646784, length=3D4096)]error =3D= 5 > aw_mmc0: controller timeout > aw_mmc0: timeout updating clock > mmcsd0: Error indicated: 1 Timeout > g_vfs_done():ufs/rootfs[WRITE(offset=3D654704640, length=3D32768)]error = =3D 5 >=20 > aw_mmc0: controller timeout > aw_mmc0: timeout updating clock > mmcsd0: Error indicated: 1 Timeout > g_vfs_done():ufs/rootfs[WRITE(offset=3D1303248896, length=3D32768)]error = =3D 5 > aw_mmc0: controller timeout >=20 > [...] >=20 > 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: 0xffff00= 0043330000 > cpuid =3D 1 > time =3D 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 >=20 > U-Boot SPL 2018.03 (May 29 2018 - 17:22:25 +0000) > DRAM: 2048 MiB > Trying to boot from MMC1 >=20 >=20 > U-Boot 2018.03 (May 29 2018 - 17:22:25 +0000) Allwinner Technology >=20 > CPU: Allwinner A64 (SUN50I) > Model: Pine64+ > DRAM: 2 GiB > MMC: SUNXI SD/MMC: 0 > Loading Environment from FAT... *** Warning - bad CRC, using default envi= ronment >=20 > Failed (-5) > Loading Environment from MMC... *** Warning - bad CRC, using default envi= ronment >=20 > 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=20 >=20 > - --=20 > O. Hartmann >=20 > Ich widerspreche der Nutzung oder =DCbermittlung meiner Daten f=FCr > Werbezwecke oder f=FCr die Markt- oder Meinungsforschung (=A7 28 Abs. 4 B= DSG). > -----BEGIN PGP SIGNATURE----- >=20 > iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWxv7SgAKCRDS528fyFhY > lNncAf9ElDc9ZC9cSVJbq/LrFgC6xjLczcIDUBHNGgLTyVeYWiQvo3TN8SgCiTga > Fizga6dIHGrQ/RwmGtxeR8rfiUP2Af0Q8yVEI9vA7kX0niLn1G/IxaQXy8IFw7Wc > Fn94C0cJr/2iqEsgSLsrqfMfaVFHlwNCBzS5Wr+Di/9y8R8Z4Qbs > =3D3YP2 > -----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" --=20 Emmanuel Vadot