From nobody Fri Dec 10 22:05:01 2021 X-Original-To: freebsd-hackers@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 BF57918DBE8F for ; Fri, 10 Dec 2021 22:05:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-20.consmr.mail.gq1.yahoo.com (sonic314-20.consmr.mail.gq1.yahoo.com [98.137.69.83]) (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 4J9lMG4q5Dz4vgB for ; Fri, 10 Dec 2021 22:05:14 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639173907; bh=7UH4bynHEijqj22fi4vaAhU3fvfQNI4L1SHXMH++3SU=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=G1mYk4D/hGMpu+FDLt0P9ckYtCDNh7eJwUNkByCVipUgH0SExxC11HV6HvHqCHlbUm2QtM0nQw/DC/zn7P9+TdlWFSiJT6qIbmdQ08YdV12X7v7fJSA58qEuZPpXlZADQCqKYHhlxkZR4knIL8k2Ijka0p2cBfrCtXWLqh2XoW8i9Hj5QefdlyAB4LY8fGqJ3ie17kMge0Ujeat9E9J/ymYTC+dEucUVm2LrplVGdC8qbX93bNi0RPSU/X2S6PYeWXOQ3TnNZRT/niOcIOwnmgoEOaR/PWfE+Pkzn4pSj92pWNjMxANbFbvIwgWV2xDv+nrqckTUTJZWMn6eLLd+fw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639173907; bh=n2/K/88vykyppmOQlgQTM8NBUfayic8YcSVmUWUqLcW=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=Bd6DodKx6ReuCDGHbupcwg3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Fo_F72pDxpw.ZYimbGCsQvATossEMpqW3x.BNODzVgrpTU8QZqQqiqjyrV G.TIhfqzTAEL4McQm7D1Rp_IJ.uPln8xnxj5CO6zdlE7utpCCiyckBSh9uMpvSOJJumu2ExniI5A mrd3EgyOWl.puI_jsB7RHtjWHuIeJ4VOvPpmfBN1FB4vOF7YXMuAPc_7hkcqAmg8EEEBbqcZhhCK RHHG9YSqkK3o_1kjb96dJvS8FwwE2zHpCZqKl5QySZAKIKsxM5fSpncR9h3y42iAA_4MPLI4ZmVG .QO9kVLy5h1sM5HZdeNyqKGpwUAxdzaDT9AsTvHD2BsN0E4C4bMiJoiQBpZhd1FatxfOkM50VDoC FgDCbEO.MFsUAe5NkryLVTqmFbKULC890X0XlRyUKigalJKQAZLmRUkKxCeeFX5PfVnjobKeIDCf z1bXX88OO0BghVYT6An.V1Ds5EZw4ju3d0J45cUEmhO_yfC3elxBnPVXe6Qa1sjsCDyRL_ReS0G0 w2Q8- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Fri, 10 Dec 2021 22:05:07 +0000 Received: by kubenode533.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 16731730d86b240b17333165f07d997b; Fri, 10 Dec 2021 22:05:02 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: e.MMC HS400 mode and FreeBSD's retune_ticks for its MMC_SEND_TUNING_BLOCK_HS200 activity when Enhanced Strobe is disabled Message-Id: Date: Fri, 10 Dec 2021 14:05:01 -0800 To: FreeBSD Hackers X-Mailer: Apple Mail (2.3654.120.0.1.13) References: X-Rspamd-Queue-Id: 4J9lMG4q5Dz4vgB X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b="G1mYk4D/"; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.83 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [2.30 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.83:from]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(1.00)[0.999]; NEURAL_SPAM_MEDIUM(0.85)[0.849]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.83:from]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; NEURAL_SPAM_LONG(0.95)[0.954]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-hackers X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N In reading to learn some about why recent changes broke booting the Rock64 via the e.MMC that I have involved, I ran into the following (that is not the cause of the boot issue but my reading overlapped with the area before figuring that out): . . . int sdhci_generic_tune(device_t brdev __unused, device_t reqdev, bool hs400) { . . . case bus_timing_mmc_hs200: /* * In HS400 mode, controllers use the data strobe line to * latch data from the devices so periodic re-tuning isn't * expected to be required. */ if (hs400) slot->retune_ticks = 0; opcode = MMC_SEND_TUNING_BLOCK_HS200; break; . . . I expect that the above comment is wrong about the reason for needing MMC_SEND_TUNING_BLOCK_HS200 use for HS400 support. So I also expect that the conclusion is wrong when Enhanced Strobe is disabled. Quoting something I wrote elsewhere: QUOTE 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). END QUOTE But there is more context that I should have referenced: For HS400, when Enhanced Strobe is disabled, the CMD-out line (from device to host) has no matching strobe to go with it in any fixed signal-timing relationship from what I've read. So I expect that the comment is also wrong about needing the CMD-out line to be periodically retuned vs. not --when Enhanced Strobe is disabled. (Data Out and CRC Response always are synced to the Strobe.) === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)