Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp930853pxp; Wed, 16 Mar 2022 21:42:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFEC9dUdZvVvQDT9zlP1s/6YQFSXZ5ihFBZNYmdLd259VR6QkQcacDvP9WPWYg+ptXFlnH X-Received: by 2002:a17:903:2448:b0:151:f899:9d81 with SMTP id l8-20020a170903244800b00151f8999d81mr2943649pls.38.1647492149686; Wed, 16 Mar 2022 21:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647492149; cv=none; d=google.com; s=arc-20160816; b=0buULddjbeZY79UuxS66BG8MNFvw+Eh4uLvTuf44tvvR2JASBX+2k86uWhD+mlT1Gz aocvu5KVdvZQV1cLXWyrYLthV0WG4EEiPXTJOoOIgi+UMYtiQP8vS1mAbJWJ0i7PozYW P9ttHTxGAp6Z4X6lObxO7ee5N8hHqxyvRR/msN92gW00gjsuhTcwJwvyj6mGuBLndHJ9 ty71LRNyvblAmOEBkhdgXFTCGbABn/408oQuP7UScrhPh32Ef8YrCBOIEa94FywwB0jm YdBPaMiRAlkkiIxxhvaAy+LEMBQsGnQNWxq2E24ZIMsM/hKXTrvzEd6jvCuVstP5t+vy Xk3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Sb104aj3tjLKyTTZ17U/Klg2aBSSJ2T/5c6D895wNBw=; b=AwUXOfKdl15NCo1tg0ecmTVVmH5/zHCENaX5zHVej9EBdBvKtPgSAChmcg2bHYO7zk n4ZdRFpT+Bz02VwYrVcMZJvhGpDlEZhy+tcf0BY4GMKaI/l+Oj9luDUP8EhbQEWRbR6Q mtKTUiiOXuSiiTjwNv1eUENGUE/rPcdM1YQGTshhauPpl7y78rBLhCjfvVm3DeczrLKy u/AUDdPYU/pwNjTuWG9YjjNSVJYtXtHSy6CoE9/mXg5LZ4tMPZR9HqjdarJ2ApjObQjH CJkOEhGO5surc14+zuQRVjqKFku+iOPo/e4bnsRIi+OLdL0dEjIi8i1MFrYBqlfR5Ccb juQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EKPJ4DTB; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j8-20020a056a00174800b004f771b48754si3644623pfc.368.2022.03.16.21.42.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 21:42:29 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EKPJ4DTB; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8A81899ED5; Wed, 16 Mar 2022 21:06:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347109AbiCOMYe (ORCPT + 99 others); Tue, 15 Mar 2022 08:24:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240193AbiCOMYc (ORCPT ); Tue, 15 Mar 2022 08:24:32 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7224763A6 for ; Tue, 15 Mar 2022 05:23:20 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id g17so32661126lfh.2 for ; Tue, 15 Mar 2022 05:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Sb104aj3tjLKyTTZ17U/Klg2aBSSJ2T/5c6D895wNBw=; b=EKPJ4DTBgq1DS2BRevHWl8q2iA30+g+EpaPb32GmUpkfz6F9SIgFvoxLwtDVSmVnc9 o4QCgNSFdCUehk+XZ06HqikO+9nVCx2GZ0p5otm+Zz/Jn1JCrgp9c4Oj8pASpU4tszeq U6bgOy/C/rTInOq21QMcQzfEkFSDw0PCOMXqmV1oNJEl2DNtoC9oVyIKO+mjsQBBcEbV mroOVOpOGvmGmenjIO233FBscoMB8PD9OTym9PsGjI3oGy7JrzoaEK6U3+bCt59XbHiv +QWeP8yTegN+YXO+E0WXIVXCXySLaiURu2jpPLeTmAAOXrHveXhYA1nYE9wDqcDypBRO rhlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Sb104aj3tjLKyTTZ17U/Klg2aBSSJ2T/5c6D895wNBw=; b=vZnx401SdIodvnYuemDdW7NAWzEbn4MfJg0iX7sJwz0vQ2QIYhIUC877JOCREbslp3 PLDsanwSbHmTh1hthjdlzndEKQd83TAabyiYS/ndikz6WK/97nDi5kSiQxOGfy9sj9Xl hcfEn9OGYJZERibQB3NJth7aQ29mjWkJpwsYDT6kX9n+gqBDXE1LWbwSd2YatMJoKE7J QlQNMBG5rTjXnfREo8KEgqj95LzG19APXJ/HAQAzXwdD2w3idisZRs0Fp9r6Ac8GAUI7 mzreC7x71RbjwCjeJciJF8m55gGzgnCimPwhyDC4WPBBP2ozrdrgZNGEokjfqHlon6bS lifg== X-Gm-Message-State: AOAM532x+4ZsQS/TEbXqrJxcQRxAPDyItBKfFXVq17V5VyDd250BDcBc hKOrfEr9QECcWCLRxT6FhhHgzvvIPPfAoaJsOYE0GA== X-Received: by 2002:a05:6512:3b07:b0:448:27ab:4a0f with SMTP id f7-20020a0565123b0700b0044827ab4a0fmr16658811lfv.373.1647346998734; Tue, 15 Mar 2022 05:23:18 -0700 (PDT) MIME-Version: 1.0 References: <20220303164522.129583-1-ulf.hansson@linaro.org> In-Reply-To: From: Ulf Hansson Date: Tue, 15 Mar 2022 13:22:42 +0100 Message-ID: Subject: Re: [PATCH] mmc: core: Improve fallback to speed modes if eMMC HS200 fails To: Heiner Kallweit Cc: linux-mmc@vger.kernel.org, Adrian Hunter , Wolfram Sang , Yann Gautier , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 14 Mar 2022 at 23:02, Heiner Kallweit wrote: > > On 14.03.2022 11:54, Ulf Hansson wrote: > > On Thu, 3 Mar 2022 at 17:45, Ulf Hansson wrote: > >> > >> In the error path of mmc_select_hs200() we are trying our best to restore > >> the card/host into a valid state. This makes sense, especially if we > >> encounter a simple switch error (-EBADMSG). However, rather than then > >> continue with using the legacy speed mode, let's try the other better speed > >> modes first. Additionally, let's update the card->mmc_avail_type to avoid > >> us from trying a broken HS200 mode again. > >> > >> In an Amlogic S905W based TV box where the switch to HS200 mode fails for > >> the eMMC, this allows us to use the eMMC in DDR mode in favor of the legacy > >> mode, which greatly improves the performance. > >> > >> Suggested-by: Heiner Kallweit > >> Signed-off-by: Ulf Hansson > > > > Heiner, does this solve your problems? Can you perhaps run some tests > > at your side to see how it works for you? > > > > Tested-by: Heiner Kallweit Thanks! Patch applied for next. [...] Kind regards Uffe