Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2031392rdb; Sun, 19 Nov 2023 22:49:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGaVKeNtD3dXGlbkP7iWe4y/9PJyjJEIsAsmvwf6tdx8MGN70VSshhFjEIONzzYp1h2h8QP X-Received: by 2002:a17:90b:4c92:b0:27d:375a:e322 with SMTP id my18-20020a17090b4c9200b0027d375ae322mr4438961pjb.31.1700462979350; Sun, 19 Nov 2023 22:49:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700462979; cv=none; d=google.com; s=arc-20160816; b=D6gtRNqZwOkVDuuXLAB/czSLAnRjq2mDCC0BSqQ1QxqAFPtGYCMaNt3v8GEGFcoL0k pQhz9vescQwwj2IGGCWqGUI1nbNNNmSdtruPEWxAd1Nmg+OJbvElF4HexasOgLPQ5M+V 58xstA4HsMO4P3i84fYSD735mZn1NgrIJjIa9CZydl+ZXarXU58OpI8jDALQuMizYD1M TfXlWjFpEZDxiEypkSw/KyssTOfaQa4XUxgEa0eKTzRf3hKHUeY+XWE/0dSEtj4eS8mN myH5cYtoDvtKcCRJfW4ohL4zqalCndFjnxnjJmA7DQAV885MSFErBu4ja3UdJnR8cSKP U7Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=6b0a/d0qhxnHS9tRZ8Jo1TXoLETq0ZHYdK5X+FBi57o=; fh=clhe9TPzW7sjeBIJzNvgXlB/Lz7OD0gZ/KVOaqRpUu0=; b=hn7bf4StMjtxiMy4KwUr1mcaZ3F7/t0s+Y2VPDLxhLiRnaFCjvhVGMXFuD5YWkI4Cf h9BAfD+X0pof84Hw19QpMN6TQYeX+Ep/02l0FUTRCc4sOU6CCVTlxz3efANAsu4J6Mha NuklMyqq26U5pNq2EVbRlErIaRpcmKJr0j4yIjd84unpUmUgiNhKC+dIYN3EDIbNLaJd 3Bd3OYo5RTX3LrkjB8FsvQ+D9X/aLvytOJbBgoErgFTQuL0NhQzB9UNDcqexorPetxAG Yjo65RIv8wUe8BV8eDBvmVaDh1TDPvhcdWAr/I9Fe9Ob9Ue32snMW4Z/hrn9TQ2Fgfl2 6gMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HvSLQTUg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id bj22-20020a17090b089600b002764fc15dd3si7536508pjb.37.2023.11.19.22.49.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 22:49:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HvSLQTUg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 94D858087DF7; Sun, 19 Nov 2023 22:49:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229688AbjKTGtY (ORCPT + 99 others); Mon, 20 Nov 2023 01:49:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjKTGtX (ORCPT ); Mon, 20 Nov 2023 01:49:23 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5963293; Sun, 19 Nov 2023 22:49:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700462960; x=1731998960; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=UHO3wfmlSf1E4uPDGAZd4a2QtXkOq00AuYR77gFl4qs=; b=HvSLQTUgKd9oOTyCT/0IUn4b7KhgNuZwXZiZICvL6U1dSCWM8WqEHz3V nsWYTYhIAEMzJsihtX1YBLFkm1jOTomGLo8Au3azH8D2G8QiF8nlPuMn1 lJaytpe+GNK2SVBgHepS8AUCoFVFzU0aQk8i7DNe5w6IuSDHLYfekoVaB U1GER+80VtNkEIgJiYcEBaQ9y5AseC5TAcapWIBpL5amftNo2fpfmsbC3 7cW4MpBsToYQ3ToVjMK9WdxpdwDnOYHWxiGT3VhLIU32wfE1hu10WEfYZ KHn1QUiSLumt2wFn76NYEsM5L7gc6YhkpKp95moZt07D5Ngil2AFMaPsr Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10899"; a="381952770" X-IronPort-AV: E=Sophos;i="6.04,213,1695711600"; d="scan'208";a="381952770" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2023 22:49:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10899"; a="795374748" X-IronPort-AV: E=Sophos;i="6.04,213,1695711600"; d="scan'208";a="795374748" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.251.219.253]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2023 22:49:18 -0800 Message-ID: <47367cdc-f512-4f0d-958f-2d8fbe450cbf@intel.com> Date: Mon, 20 Nov 2023 08:49:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/1] mmc: sdhci-of-dwcmshc: Enable timeout quirk for BlueField-3 SoC To: Liming Sun , Ulf Hansson , David Thompson Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org References: <6082b74cbc681e8c24354828941361f4f4294242.1700315051.git.limings@nvidia.com> Content-Language: en-US From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <6082b74cbc681e8c24354828941361f4f4294242.1700315051.git.limings@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 19 Nov 2023 22:49:34 -0800 (PST) On 18/11/23 15:46, Liming Sun wrote: > This commit enables SDHCI_QUIRK_BROKEN_TIMEOUT_VAL to solve the > intermittent eMMC timeout issue reported on some cards under eMMC > stress test. > > Reported error message: > dwcmshc MLNXBF30:00: __mmc_blk_ioctl_cmd: data error -110 Were you able to determine the root cause? For example, is the host controller timeout correct, is the eMMC providing correct timeout values, is the mmc subsystem calculating a correct value, is sdhci programming a correct value? If there are problems outside the host controller then we need to address them also. > > Signed-off-by: Liming Sun Fixes tag? > --- > drivers/mmc/host/sdhci-of-dwcmshc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c > index 3a3bae6948a8..3c8fe8aec558 100644 > --- a/drivers/mmc/host/sdhci-of-dwcmshc.c > +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c > @@ -365,7 +365,8 @@ static const struct sdhci_pltfm_data sdhci_dwcmshc_pdata = { > #ifdef CONFIG_ACPI > static const struct sdhci_pltfm_data sdhci_dwcmshc_bf3_pdata = { > .ops = &sdhci_dwcmshc_ops, > - .quirks = SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN, > + .quirks = SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN | > + SDHCI_QUIRK_BROKEN_TIMEOUT_VAL, > .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN | > SDHCI_QUIRK2_ACMD23_BROKEN, > };