Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp684344ybl; Wed, 28 Aug 2019 03:55:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeCfJ1Dj/hc1WiAo27fYqtZzqdafgp2qlSXZY7q7K/VdqM8DueGd60VVOuq+uuS1YOIUc7 X-Received: by 2002:a17:902:d717:: with SMTP id w23mr3711253ply.321.1566989732776; Wed, 28 Aug 2019 03:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566989732; cv=none; d=google.com; s=arc-20160816; b=MI3ik0NIucOYw9wPik/izP825six5fVv1nsPzFLTn3uEWVpgrJHUSeS8HnuJFOAStp BGTdY2QTjdJMuscW3li/fR5dkl4j23Dl5W3BaKoEoiKPWlt+ndPdoWfR2POvwKdMioIq BzMRzRDgGssTQ3Y4SqKUQeUd8bkpsJtBIlRWVlSZQzmWJ6OAqimIYhiXjKafm6xY9shp 1OCBaXs7OWk+x608PV8n2oPu6dwnFlQGAFobOOZmobfl3tYuRBwVQ6G35WAM+uiATPQ3 3vMqcDADkujlrgKGGOa/p+HAs6JzzAafJuZeViV6N9nDNSZQO/799LBmdPYVl1tbhNsi frnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=3bmOMK5FL6zFob4mCFt8AttEsF6S4HMbVALEegM1I+c=; b=sc/cMyVfMu2SCssk+jOD2vKpgxx/mPSQOliKxzMaU8rFmad8beeGkQWYSeeYkwjSEV AOwAgWhG2FTTk+pJTfSk/5dMNOcrmhRG/6J5Axt94dmZhZknWQsfsRZyNkzF/6Ru+Tc6 Pd7pR1BVzbViiYVSKt4mRrZIm9/ZWcDGehvkcsPB71KJGrwToSacqoKsNm8oWE/RH3N6 em3I1MekJa1rurU4boQpUCQkmK7369VfKgooiZn6SpEvCR54oHLZE1V4Jutow1lgCpuE xghruH/PDGp72tcI/dc/othRszJIuI++/OAJwGzFEUrbP8lIY4VGR+3fgiYbxNQABUDp 8VoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A9uRkJiA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k12si1659797plt.92.2019.08.28.03.55.15; Wed, 28 Aug 2019 03:55:32 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A9uRkJiA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726370AbfH1Kw5 (ORCPT + 99 others); Wed, 28 Aug 2019 06:52:57 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51002 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726246AbfH1Kw5 (ORCPT ); Wed, 28 Aug 2019 06:52:57 -0400 Received: by mail-wm1-f67.google.com with SMTP id v15so2285449wml.0; Wed, 28 Aug 2019 03:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3bmOMK5FL6zFob4mCFt8AttEsF6S4HMbVALEegM1I+c=; b=A9uRkJiAkBq18NwoLSOtlupjAW8mlK4uc/rtPAqgyQui+yv3DyUIIZ8JmZSJ280TLo ZU9Muw7jMpo85ullp6/IwQcPsJ0QQZLlKhFsHJb8Po9a0cIKIrtkz8HOjnpW0ofnUQ+N x/HRL/Ho/OONbsmetTHZ/9BgBDT8kWKrS1+Tn7iD6AHPmjPvrkZXuKjJW75y827eg6EA GCfOSOeKYJ3l+WCmQpyHeG13iIWimS6/NeViIcpT/O5qJ2OOthpcye0F+j4g/125cmOG JbniZIVXg9gJSVCN3A8Q4sYgDOf9K/fAqbstKmwsIPLIBbtZM9I/u/JI3TgpY2OSCZBn EFtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3bmOMK5FL6zFob4mCFt8AttEsF6S4HMbVALEegM1I+c=; b=Q2a63ciSns7ym08gkzorV5NtyluGbH23vKUZEwQFQfAcHSESjCfPOaeQ1E45WO3dow 13MR2+xXtL9F9raYGj7/fcVOZA5SQm2TQ1mt+4cLL07WaSMCZsNQ+rKVrF56edwKZxLO fI+66Y2c/BfiP9oiqzWYLzTk049v7autsLH2tN7ljG+Dz3ye2icA2FE4BGG2CBf9OXYG w1E7OInWYEW/WE+e2mI9lCSZJV7fNIOPinK1WYAK/UnflrJI6ESrU261h9tFePshPdnN CrtHdcLdOATNHQ3aiLBGc3s4ZznQAHrmyn18eOfRr0/rOoOPS3Qicnguwt8A7pEhYZeV xFnA== X-Gm-Message-State: APjAAAWjDcqOYIVcCvMBBh/zjTZQa3rYMPzryyRX10W5LB+Vf5Yoy5iq 7axHO6F13S7ACir6pIsGdDlQJ2LA+2NMcQ== X-Received: by 2002:a1c:f016:: with SMTP id a22mr4146777wmb.170.1566989574337; Wed, 28 Aug 2019 03:52:54 -0700 (PDT) Received: from [192.168.0.8] (57.166.117.91.dynamic.reverse-mundo-r.com. [91.117.166.57]) by smtp.gmail.com with ESMTPSA id g13sm2903957wrw.87.2019.08.28.03.52.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Aug 2019 03:52:53 -0700 (PDT) Subject: Re: [PATCH] mmc: sunxi: fix unusuable eMMC on some H6 boards by disabling DDR To: Ulf Hansson , Maxime Ripard Cc: Chen-Yu Tsai , Linus Walleij , Greg Kroah-Hartman , Thomas Gleixner , "linux-mmc@vger.kernel.org" , Linux ARM , Linux Kernel Mailing List , linux-sunxi References: <20190825150558.15173-1-alejandro.gonzalez.correo@gmail.com> From: =?UTF-8?Q?Alejandro_Gonz=c3=a1lez?= Message-ID: Date: Wed, 28 Aug 2019 12:52:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: es-ES Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org El 27/8/19 a las 15:24, Ulf Hansson escribió:> Assuming this should go stable as well? Perhaps you can find a > relevant commit that we can put as a fixes tag as well? > > Kind regards > Uffe The most relevant commit I've found that is related to enabling DDR speeds on H6 boards is this one: https://github.com/torvalds/linux/commit/07bafc1e3536a4e3c422dbd13341688b54f159bb . But it doesn't address the H6 SoC specifically, so I doubted whether it would be appropiate to mark this patch as fixing it, and opted to not do it. I don't mind adding that tag if it's appropiate, though :-) On the other hand, I'm not sure that I understood correctly what do you mean by this patch going stable, but I might say the changes themselves are stable and work. The only downside I can think of to them is that they are a kind of workaround that reduces performance on H6 boards and/or eMMC not affected by this problem (are there any?), unless device trees are changed. El 27/8/19 a las 15:32, Maxime Ripard escribió: > On Sun, Aug 25, 2019 at 05:05:58PM +0200, Alejandro González 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), while >> 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 Thank you for your review. I'll mention that briefly in a comment in the code for the next revision of this patch. Regards.