Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5560121ybl; Tue, 27 Aug 2019 06:34:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJ3UfVH0S2SwUOJ78lk+njtJmxMVnVWeDjxwMLTfGRt2mNnOCw6DycsLdHwyahYnQZvoPA X-Received: by 2002:a65:6458:: with SMTP id s24mr21045286pgv.158.1566912851071; Tue, 27 Aug 2019 06:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566912851; cv=none; d=google.com; s=arc-20160816; b=EKESsm3b0rGdcTsTOM4Ms4mXNRpnTYDhMDnnETB4ZXPvGCNiiasMU908S4qXHMvnuK 8M5ajA1iwInGkHYrD6Vao/t7y3nxu66UOcJC8DxwVTA/CuzmkJ/C+Qm8lhBIG6/vnNc7 QCVT+f+h9dgzNdkfQZe6Q8o4qNbXwo4+4SBEIXFufd3ave2hIy29c7mNntRIhVKw5UZh abGuzblkUvQX7jYfl83xCyEDsApqEDQu5Ksxrai4a4clhVoN1uzMRI3jE2Aded9cNmJ6 GIVY3afzJUloBzJ1BJ7rLWuc30oSgDnhhfRsMifLAjUMoeJcCBiOsuk1fbx4muOa55Dx cmxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=WXf7QjlZmVy0FhLYm4e/fEgYDSCRViJROV8ZfQbVPP0=; b=UqPoWxCMy+vRDTfOgk5JkWD3KO08OL+rZn+4I79sZZEoZ6nDhPkjaNUANxD+ZVsh2J Hz7nVltC+leXhKBgHiZ2/4KBBJui/KkVX/k7DLM1j2cyVRLC5AvFrVnCpcSZs1B0YFvO +9fwtApTadnUZPhrbOT6ygEM/iKAwmcGcrF1HhqaPZj487854ATQMzHkTfy8kiH+1C5c jJuSMfL8NwtORHpvLj/2nxDYaxkPDixNZ9Mmet4CQeonOQTN5+ZXVqk/Rz9hxT+Glfmv rZgJUhH5IRLY7Uk4vQO1ViT53F8uexU6ArXN4GLYYlL/HE8WU2ihqmx9oQHNbb9iMFbD xcoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si1257623pjs.13.2019.08.27.06.33.53; Tue, 27 Aug 2019 06:34:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729128AbfH0NcO (ORCPT + 99 others); Tue, 27 Aug 2019 09:32:14 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:57219 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726441AbfH0NcO (ORCPT ); Tue, 27 Aug 2019 09:32:14 -0400 X-Originating-IP: 86.250.200.211 Received: from localhost (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (Authenticated sender: maxime.ripard@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id B3E201C0010; Tue, 27 Aug 2019 13:32:11 +0000 (UTC) Date: Tue, 27 Aug 2019 15:32:11 +0200 From: Maxime Ripard To: Alejandro =?utf-8?B?R29uesOhbGV6?= Cc: ulf.hansson@linaro.org, wens@csie.org, linus.walleij@linaro.org, gregkh@linuxfoundation.org, tglx@linutronix.de, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH] mmc: sunxi: fix unusuable eMMC on some H6 boards by disabling DDR Message-ID: <20190827133211.g5n4uasyz2yvjpjr@flea> References: <20190825150558.15173-1-alejandro.gonzalez.correo@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lkjtz2d6pscj5wie" Content-Disposition: inline In-Reply-To: <20190825150558.15173-1-alejandro.gonzalez.correo@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --lkjtz2d6pscj5wie Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 25, 2019 at 05:05:58PM +0200, Alejandro Gonz=E1lez wrote: > Some Allwinner H6 boards have timing problems when dealing with > DDR-capable eMMC cards. These boards include the Pine H64 and Tanix TX6. > > These timing problems result in out of sync communication between the > driver and the eMMC, which renders the memory unsuable for every > operation but some basic commmands, like reading the status register. > > The cause of these timing problems is not yet well known, but they go > away by disabling DDR mode operation in the driver. Like on some H5 > boards, it might be that the traces are not precise enough to support > these speeds. However, Jernej Skrabec compared the BSP driver with this > driver, and found that the BSP driver configures pinctrl to operate at > 1.8 V when entering DDR mode (although 3.3 V operation is supported), whi= le > the mainline kernel lacks any mechanism to switch voltages dynamically. > Finally, other possible cause might be some timing parameter that is > different on the H6 with respect to other SoCs. This should be a comment in the driver where this is disabled. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --lkjtz2d6pscj5wie Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXWUw2wAKCRDj7w1vZxhR xYt3AP4+3qKwy0ckh4dZ7jCoxIsKTjo6Lg7T9mmsX0KTdpD3uAD/UnDk8+qHwDox MZfS8s6gYu/gIOndKMAIAGQBPJh+bgU= =Cii8 -----END PGP SIGNATURE----- --lkjtz2d6pscj5wie--