From owner-freebsd-arm@freebsd.org Sat Nov 10 14:46:45 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 D428B1100CF7 for ; Sat, 10 Nov 2018 14:46:44 +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 E143D6EC6F for ; Sat, 10 Nov 2018 14:46:43 +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 ef223917; Sat, 10 Nov 2018 15:46:41 +0100 (CET) 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=egSbLsuFWPVQg34/yvEpaT9d2pE=; b=WFNl2MZcChlcvG/vsaqhiT5rLR14 ftQLdtryPgE8v4CNstaSQ8d4VhOsqBy+pZfqDSv9e8QJGgyWuE9m2lKxRY9E2D4t BKkY/MaQ+A9BXPVmF90BiSRccHWsjZx6irgI9y7EwiuXk4LJmHOgCuwUIImD1gUW 7h+WTguWaW3MS/w= 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=ihGmJcC9Vd1jtZdjReVIA8saG/1eTL/icWPH7QgDrSVA7jVSZQXABfw1 R9SO94Z09TKM4NpqNLEzMMGSPwdpp8LZ/PEVpTGfGPNd8+R2YlqO49u6RYubO6U2 RxTknuAoO13+HfCrAzXijvzZOjuXyaplV5xRN/WUBILn9aY3qzc= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 926a4f9f TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sat, 10 Nov 2018 15:46:41 +0100 (CET) Date: Sat, 10 Nov 2018 15:46:41 +0100 From: Emmanuel Vadot To: Jookia <166291@gmail.com> Cc: freebsd-arm@freebsd.org Subject: Re: eMMC issues on Allwiner A20-OLinuXino-LIME2-eMMC Message-Id: <20181110154641.6823913580760d95d9ff8b9f@bidouilliste.com> In-Reply-To: <20181110135903.GB1747@novena-choice-citizen-recovery.gateway> References: <20181108063915.GA1747@novena-choice-citizen-recovery.gateway> <20181110135903.GB1747@novena-choice-citizen-recovery.gateway> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: E143D6EC6F X-Spamd-Result: default: False [-2.11 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com]; NEURAL_HAM_MEDIUM(-0.99)[-0.986,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.99)[-0.992,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mx-backup.blih.net]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.14)[-0.143,0]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-0.08)[asn: 12876(-0.37), country: FR(-0.02)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2018 14:46:45 -0000 On Sun, 11 Nov 2018 00:59:03 +1100 Jookia <166291@gmail.com> wrote: > As an update on this, it seems to be that the issue stops when DDR52 > capability is disabled. Someone else had a similiar issue with the Pine64: > https://forum.pine64.org/archive/index.php?thread-6339.html Different issue. After re-reading your log it fails when we update the mmc module clock, maybe the clock isn't correct after switching to clkng and the main clock isn't set correctly. > > * eMMC crashes on a protocol issue; > > Allwinner datasheet; > > * "SMHC Controller support up to MMC5.0" > > -- 52 is activated in the features. > > Apparently the A20 doesn't support HS200: > https://www.olimex.com/forum/index.php?topic=6653.0 DDR52 != HS200 We currently don't support >= HS200 for Allwinner, I never could make it work. > > A20 do not support HS200 > > > > we have two versions one is with Micron eMMC ver. 4.51 which makes about 12-13MB/s transfer > > we have now new boards with eMMC v5.0 where same A20 processor due to the improved timing in v5.x improve the transfer up to 18-20MB/s > > > > A64 has eMMC v5.x support and multispeed mode and achieve up to 40MB/s transfers > > This kernel thread alludes to the Pine64 issue: > https://groups.google.com/forum/?_escaped_fragment_=topic/linux.kernel/L9lXBGYgvXk > > > mmc2 works fine for either 4 bit SDR/DDR or 8 bit SDR only. It does > > not work for 8 bit DDR. I actually tested all the above combinations. > > Regardless I'm stumped since the FreeBSD driver code and Linux driver > code don't have any obvious differences with handling DDR52 in them that > I can see. > _______________________________________________ > 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" -- Emmanuel Vadot