Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3051006rdh; Mon, 27 Nov 2023 05:36:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCpyVyPPC6f2CfVOHqid/Il9NceVX66S1uYEdY7RM05IP++jEUDiAedFxHMdP0eWmf7DuH X-Received: by 2002:a05:6a00:8083:b0:6cb:8abd:39ae with SMTP id eh3-20020a056a00808300b006cb8abd39aemr10614284pfb.30.1701092190439; Mon, 27 Nov 2023 05:36:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701092190; cv=none; d=google.com; s=arc-20160816; b=Phg1ULWyvWj4iUtnLEGpmwzse8NebGK5i2FtyQT8tzysxeKISR47ed30dWDzaBay+a 2CIaNgrkqmTWtCLCy5jr9qwJy82im0W295qcoFoBiZZ0Hycr8hpLPoLZY9YM74Q5WH9Q VzGZc9yzeLzqfXvllKAlyeY0G4d3m95or6sKrmjvxxGIQlwmTcPeBZvr7WB3L29UCl5h dgd0RrQTURBlA9OH8fdwghf7BGLVLQebCJIov/YGJ3QEkBIXHwxbJYRp4p2m6S41yBRz GYc2iCeRm4T9LwPl42/GQB6OKz4MrRtvInQfpZzUyIKjZfddJ8n9ckxtLt2Sl0Nv/5SP 77hA== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=NgvxrXqeTcy1MClbTltMD8dVc3n2mMJomni0b7GS1AE=; fh=m6YPsrEXPsJcsOU0bAs4FJ8TDtS+lKw3QchJviz6MYA=; b=sNix5CDSWbDrc/8w4XK2LIX+/weBBGwtUrUPrgaUG0cipV0BK4/zNVj7vBF2l9fvBQ eYz+UOH8OUj02jV6ABxSStWX5UYIMY5Kp7Oq1Hy+55Ynh4WctfJumvhpqfWEHTWDzaSC td6f7Ry+L2abcm3ww+RZM/54svauGwRB2PST/KxAqhEM6deJetkOm6igMyl4DSbDHzQr KRQ4sUXjgF3+VuwlqnBM6B0+8zwVdxe/95uVgxFcBE0PxovC82ONIUGDaE19p98Hi4zz 89+yzAWSeQp6O0OkylccmBdq7lszgYtJaYEEbMbufBOXj/TBrfHWc42aYzKd8FBNm8jt IKdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id x16-20020a62fb10000000b006cc01aa0480si5635201pfm.370.2023.11.27.05.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:36:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 168338026C31; Mon, 27 Nov 2023 05:36:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232941AbjK0NgE (ORCPT + 99 others); Mon, 27 Nov 2023 08:36:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232788AbjK0NgD (ORCPT ); Mon, 27 Nov 2023 08:36:03 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7AD1FB8; Mon, 27 Nov 2023 05:36:09 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DD0D12F4; Mon, 27 Nov 2023 05:36:56 -0800 (PST) Received: from [10.57.71.110] (unknown [10.57.71.110]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CBB583F5A1; Mon, 27 Nov 2023 05:36:07 -0800 (PST) Message-ID: <3912dd1e-b15b-49a9-9c91-88e00e986efd@arm.com> Date: Mon, 27 Nov 2023 13:36:05 +0000 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 Content-Language: en-US To: Liming Sun , Adrian Hunter , Ulf Hansson , David Thompson Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org References: <6082b74cbc681e8c24354828941361f4f4294242.1700315051.git.limings@nvidia.com> From: Christian Loehle 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.8 required=5.0 tests=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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 27 Nov 2023 05:36:28 -0800 (PST) On 18/11/2023 13: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 > > Signed-off-by: Liming Sun > --- > 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, > }; __mmc_blk_ioctl_cmd: data error ? What stresstest are you running that issues ioctl commands? On which commands does the timeout occur? Anyway you should be able to increase the timeout in ioctl structure directly, i.e. in userspace, or does that not work?