From nobody Fri Dec 10 11:46:39 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2454018E5639 for ; Fri, 10 Dec 2021 11:46:52 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-19.consmr.mail.gq1.yahoo.com (sonic314-19.consmr.mail.gq1.yahoo.com [98.137.69.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4J9Tdl3fNfz3j3C for ; Fri, 10 Dec 2021 11:46:51 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639136804; bh=gNcVXAQy+mrNK+XHMQQeVxsbmKHlFuRfvELnLzonMAE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=X3tk4jUExLAIX1XF/gSizxeQMlqKjqWoTl7HMvRxG+MU5RYT0/4bFwBErD6+qVRcBiqOU61JFPKehjPoIfHQWo2rz4wkVjp6pd9O/KI9aUoEQoq4pB65eEZxQiN4oJdZ91C24ibS/o9C+XzUt3cewCXkfRkAlAEPlVNqXJEKPDzdOJLWtCn+wnQ/aIMfCz0cEi7TqZjqrQng2DNho36ag4/bSUVbnnp3MgJ1kqhiHC25phRb2j9B0m6Kt6urAtpYwftgB8WQilmWQ0eiJ2goSBRO8XM47hmyMEIR76Byo9iV/9m/csK/B6iwjBY+1ZHR1UZuJARo1MXH8mSnE4XouQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639136804; bh=c23LjZI8qP9jx0QLOjkbwBzOAPYbi0352COAgafRLYA=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=tj7nrwRCdES06S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zHJ sbCwnILCQBXXv2xkoBW4iu4DUp4WzA_AHOy7Z66uhF_8KHzZI1dPhviIdi6j_EvgI6MstpFICcX4 Dp4j_ugz8A78BVMhep1Jy0fVbHptQfbuYGpyCJRBrDBOhoitUK.C9tzRQd_XgjlhJqo2mwtGHEOL GUxGrpW6BaLRjf1r3.gZ7DvHLvIxs8bVxh1UwNo99deZsohGNDRPn5olFuGnbwO6Tg.5s4CTeWFj bVGFocTAVvyAIlRw0rQSijXDGHYaeoOFGLeEtfVgUPQW_vlCz4pBXpT60dVqA7c.6K_OZjcKsvXN 3F4OqCvl.aP8xsg0aAIRyY50O80j_ITQSW9ckV5uu1yqowz8iEmmFVKdEGRY_Qw.SFLeuN_N6AIR FWREGvaQzrBOBJlr.D6_tkz1pyCqyyfbSm_uveqFKa_lSkyezPzrli6p0vrsyvG13UqyrkQZJMvY G5WIz9TS0hfq9tr7RSHYUcciV_XKqUKARn1mnbR.w2BLdS2rkfct5LWJEJP3x_fTPnvyFohoH6jh w33bTyNK_LocT3x1SJwAT27M- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Fri, 10 Dec 2021 11:46:44 +0000 Received: by kubenode516.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 65d08d09aca8dfceb06564a95ffea10b; Fri, 10 Dec 2021 11:46:42 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Rock64 configuration fails to boot for main 22c4ab6cb015 but worked for main 06bd74e1e39c (Nov 21): e.MMC mishandled? In-Reply-To: <5aea5440-2191-dd65-c2f1-2b4e1750e088@FreeBSD.org> Date: Fri, 10 Dec 2021 03:46:39 -0800 Cc: =?utf-8?Q?Kornel_Dul=C4=99ba?= , Emmanuel Vadot , Peter Jeremy , Free BSD , "wma@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <0CE1A670-FC3C-49F9-B1A0-9F2C1CCA368A@yahoo.com> References: <243CBFC7-DFB5-4F8B-A8A3-CFF78455148D.ref@yahoo.com> <243CBFC7-DFB5-4F8B-A8A3-CFF78455148D@yahoo.com> <20211209081930.7970b6995a8f7c5f7466227d@bidouilliste.com> <053617FD-AA34-4A3F-853A-4D2E44F8254B@yahoo.com> <43901D57-9C39-4FAC-A2BE-CCE642791705@yahoo.com> <8DAA50A1-3CF0-4AFA-9977-58FE15D4F171@yahoo.com> <5aea5440-2191-dd65-c2f1-2b4e1750e088@FreeBSD.org> To: Andriy Gapon X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4J9Tdl3fNfz3j3C X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-arm X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Dec-10, at 02:35, Andriy Gapon wrote: > On 10/12/2021 11:51, Kornel Dul=C4=99ba wrote: > > On Thu, Dec 9, 2021 at 11:54 PM Mark Millard = wrote: >>> Note the "tuned phase to 245" as part of that. >> Yep, it looks like in Linux they're doing some custom tuning logic >> specific to this controller. >> FreeBSD only executes generic tuning code, which apparently is not = enough. >=20 >=20 > AFAICS, we do not have any support for setting clock phases at all. >=20 Interesting, if true: =46rom what I've read MMC 4.5 added CMD21 (SEND_TUNING_BLOCK) for this tuning operation when it added HS200. CMD21 is also used in MMC 5.0 for its HS400 addition, from what I've read. As I understand it, tuning via CMD21 is expected to be required for HS200 mode read operations (and HS400?) to be well behaved: the clock vs. data directions of travel are opposite (instead of synchronous) and the specific timing is not mandated but must instead be measured/observed. HS200 does not have a data strobe traveling in the direction of the data. HS400 needs CMD21 use for synchronizing the command responses on the CMD line to the CLK (a temporary use of HS200 mode to do the tuning). (There is also a Drive Strength setting involved for HS200 --and HS400 has possibly one more Drive Strength alternative by count.) In other words, if you are correct, then it seems that FreeBSD simply does not support HS200 or HS400 (in a reliable manor, anyway). =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)