From patchwork Wed Feb 17 05:22:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DooHyun Hwang X-Patchwork-Id: 12090965 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F8B5C433E0 for ; Wed, 17 Feb 2021 05:36:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C255064DEC for ; Wed, 17 Feb 2021 05:36:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231278AbhBQFgJ (ORCPT ); Wed, 17 Feb 2021 00:36:09 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:22220 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231518AbhBQFgF (ORCPT ); Wed, 17 Feb 2021 00:36:05 -0500 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20210217053523epoutp04b4a33f0dcf29edff67f1ea99640aba0d~kcjGAerCJ0917209172epoutp04k for ; Wed, 17 Feb 2021 05:35:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20210217053523epoutp04b4a33f0dcf29edff67f1ea99640aba0d~kcjGAerCJ0917209172epoutp04k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1613540123; bh=0Qu3UhubXL/3n9cgBIbiKKoOt4KQtprWcRcKbSHb1jI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i9XpEqRpf4SC7y680AvtKcTyU9FFX8FytUEMF/268+MjlQYgJT7XNtWjgk2Ta3pEg vQgsjPErJ0uyFhOTFLCgBng5mNgsxoX6LdiHgj5lgMkzvO7dVBxSRaTtaW1kedtbyw 4NHZgin0niXpL8Jja9fowb03GVsLOAssVaQXdvxs= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20210217053522epcas1p2277b4987d186a818db68e9032f23c1f0~kcjFYxbyy1063410634epcas1p2i; Wed, 17 Feb 2021 05:35:22 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.40.162]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4DgRPj4ktjz4x9QH; Wed, 17 Feb 2021 05:35:21 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 5E.47.09582.91BAC206; Wed, 17 Feb 2021 14:35:21 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20210217053520epcas1p1af462836bd9fc690d99baed0b122d6fd~kcjDslF_B2540325403epcas1p1H; Wed, 17 Feb 2021 05:35:20 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210217053520epsmtrp283b15164a3d8c9dfad119b554063689e~kcjDrjTlA2012920129epsmtrp2A; Wed, 17 Feb 2021 05:35:20 +0000 (GMT) X-AuditID: b6c32a37-899ff7000000256e-0e-602cab1921b6 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D1.2F.13470.81BAC206; Wed, 17 Feb 2021 14:35:20 +0900 (KST) Received: from localhost.localdomain (unknown [10.253.101.61]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210217053520epsmtip2cb7aa129699810c62c57865eb1afb45d~kcjDXHSFu3250732507epsmtip2c; Wed, 17 Feb 2021 05:35:20 +0000 (GMT) From: DooHyun Hwang To: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, ulf.hansson@linaro.org, robh+dt@kernel.org, axboe@kernel.dk, adrian.hunter@intel.com, satyat@google.com, ebiggers@google.com, gustavoars@kernel.org Cc: grant.jung@samsung.com, jt77.jang@samsung.com, junwoo80.lee@samsung.com, jangsub.yi@samsung.com, sh043.lee@samsung.com, cw9316.lee@samsung.com, sh8267.baek@samsung.com, wkon.kim@samsung.com, DooHyun Hwang Subject: [PATCH 1/2] dt-bindings: mmc: Add no-single-read-retry property Date: Wed, 17 Feb 2021 14:22:38 +0900 Message-Id: <20210217052239.13780-2-dh0421.hwang@samsung.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210217052239.13780-1-dh0421.hwang@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA01TbUxbVRjO6W1vL2jNtaAeOsTuLrAMhbVrC2duJUtEvdG5YPyBmTPlSu8o rrS1lxI3/cHHBpMBZSxuo0OZsC3ajmCAYoGyRmADNoYDIiZVtqkQogsMaUDlY3jLZZF/78fz nOd93nMOgcnv4Aoi15LP2i2MmcIjxe29O5KTYjwvZan89yk0OHkVR54JJ47O3yyVoPq+YQm6 Nj4oRSOe4xK0tNosRUsjZyXopPeMCPmmh6Soc7VEhMY663DUt+YE6ER3nxQ5PRM4Kl65Jkbj QwMS1N+UiVpHF8X7ouiLLQ660f+HiB677aBb3J/h9C/jfpyuanMDOtQSlyE9aN5rYhkja1ey lmyrMdeSo6fefMfwikGXolInqXejVEppYfJYPZW+PyPptVwz74RSFjBmB1/KYDiO2pm21251 5LN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XHDaL I//7GS1a9x5ht+hffZfNounPPhaLa2dOsFocXxtusfnSNxYHYY8Fm0o9Fu95yeRx+Wypx6ZV nWwed67tYfPo27KK0ePzJrkA9igum5TUnMyy1CJ9uwSujDn7ZzEVfOCoWLJrP3MD4xr2LkZO DgkBE4lfe9qZuhi5OIQEdjNKbN3dywiRkJHovr8XqIgDyBaWOHy4GKLmI6PEu4nnWEFq2AT0 JPb0rmIFSYgI/GOU6Jy9iQ3EYRb4zSgx6Ucz2AphAQ+JlU+2gnWwCKhKnGj8ChbnFbCVOLl5 PhvENnmJP/d7mEFsTgE7ifeX+sFsIaCa2cd+MEHUC0qcnPmEBcRmBqpv3jqbeQKjwCwkqVlI UgsYmVYxSqYWFOem5xYbFhjmpZbrFSfmFpfmpesl5+duYgTHl5bmDsbtqz7oHWJk4mA8xCjB wawkwsv+WStBiDclsbIqtSg/vqg0J7X4EKM0B4uSOO+FrpPxQgLpiSWp2ampBalFMFkmDk6p BqbL87rXPGI7/nNBUCbbtcMlc+f2NIg0Pn/F+jpoWmuXuv9sNyZXVvmibF+TxtcnXNZ/+J3h c9nJrWuX2q9kLdZbk/9nME5/P3tvu/Jn9q4j/C7nPuj/cD694cIt164Gb0OG4r1B3F86934W nhAiGPy360/FNIkraZcCeizuzF9uHHo1rlhq27IjDO5iG59y/GMQ87DT+aDt+13wefBRk7OT pCot1D+l/XsTp3sntCcy15In9YXv34NCUxofyt0QVjo9q9anvbXK8uUBVrm2vCq5qvRZNy3E 8qQVz53V+fXdo/tFxI8as4PzeRbeviyskt/4VIdlYldD6vUzHuUexyWDpy2fFhM+859ia6rC bSWW4oxEQy3mouJEAEBwYo8eAwAA X-CMS-MailID: 20210217053520epcas1p1af462836bd9fc690d99baed0b122d6fd X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210217053520epcas1p1af462836bd9fc690d99baed0b122d6fd References: <20210217052239.13780-1-dh0421.hwang@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Add an optional property to not retry multiple block read error with several single block reads. This property makes to handle read errors faster by not retrying multiple block read errors with single block reads. Signed-off-by: DooHyun Hwang --- Documentation/devicetree/bindings/mmc/mmc-controller.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc-controller.yaml b/Documentation/devicetree/bindings/mmc/mmc-controller.yaml index e141330c1114..1eb3b73a164a 100644 --- a/Documentation/devicetree/bindings/mmc/mmc-controller.yaml +++ b/Documentation/devicetree/bindings/mmc/mmc-controller.yaml @@ -245,6 +245,12 @@ properties: Controller is limited to send MMC commands during initialization. + no-single-read-retry: + $ref: /schemas/types.yaml#/definitions/flag + description: + Single block read retrying is not supported + when multiple block read fails. + fixed-emmc-driver-type: description: For non-removable eMMC, enforce this driver type. The value is From patchwork Wed Feb 17 05:22:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DooHyun Hwang X-Patchwork-Id: 12090967 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21FA9C433DB for ; Wed, 17 Feb 2021 05:36:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E2B6A64DFF for ; Wed, 17 Feb 2021 05:36:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231515AbhBQFgN (ORCPT ); Wed, 17 Feb 2021 00:36:13 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:37686 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231526AbhBQFgI (ORCPT ); Wed, 17 Feb 2021 00:36:08 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20210217053525epoutp0185cc2cc7f62626c77ca95db4033e9e3d~kcjHkXHNG2344823448epoutp01U for ; Wed, 17 Feb 2021 05:35:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20210217053525epoutp0185cc2cc7f62626c77ca95db4033e9e3d~kcjHkXHNG2344823448epoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1613540125; bh=IhP01hyIOJgy9AB0COOkaGUvJuycWGdW5+g0OdIMY8o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jSYwAd2S58L70eKQRwNlsIZKAK6SURTyjOCeNZ6E7o+Rt/JAbIAMG/1Geau3MBV9p +jucgjmF8FxDQP7o4n6oHPtHNtyuM9sLyflYv6odbW5NZ2dpSOeW256NZPt7V+p3iP JQ2PSxfTayRFug3AkhEkTEG7Oj7TbCKUs6UcxDQ0= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20210217053523epcas1p3a6446e0bb75cf8a118a2ed57a4cf6497~kcjGVndX30867608676epcas1p3a; Wed, 17 Feb 2021 05:35:23 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.40.159]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4DgRPk0C3tz4x9Pr; Wed, 17 Feb 2021 05:35:22 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 53.B5.02418.91BAC206; Wed, 17 Feb 2021 14:35:21 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20210217053521epcas1p2aa80cae5d52f30c8c8882f44abe8045c~kcjEPNufT1063410634epcas1p2d; Wed, 17 Feb 2021 05:35:21 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210217053521epsmtrp27d56e76c29d24f91f154f478718d9418~kcjEOGwsB2012920129epsmtrp2B; Wed, 17 Feb 2021 05:35:21 +0000 (GMT) X-AuditID: b6c32a35-c23ff70000010972-4b-602cab19ffc6 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 23.B1.08745.91BAC206; Wed, 17 Feb 2021 14:35:21 +0900 (KST) Received: from localhost.localdomain (unknown [10.253.101.61]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210217053521epsmtip279cb4cd4009f780691c08d108bc26bdb~kcjD68fVw0034600346epsmtip2T; Wed, 17 Feb 2021 05:35:21 +0000 (GMT) From: DooHyun Hwang To: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, ulf.hansson@linaro.org, robh+dt@kernel.org, axboe@kernel.dk, adrian.hunter@intel.com, satyat@google.com, ebiggers@google.com, gustavoars@kernel.org Cc: grant.jung@samsung.com, jt77.jang@samsung.com, junwoo80.lee@samsung.com, jangsub.yi@samsung.com, sh043.lee@samsung.com, cw9316.lee@samsung.com, sh8267.baek@samsung.com, wkon.kim@samsung.com, DooHyun Hwang Subject: [PATCH 2/2] mmc: core: Add no single read retries Date: Wed, 17 Feb 2021 14:22:39 +0900 Message-Id: <20210217052239.13780-3-dh0421.hwang@samsung.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <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xk39V4rJbk7eunFMp/un/Pf8/rGdPn6iI+Oz94Pq8sK+Wi7bumubz5f6zP0Ic0vs+3SiY Pan886s34dnyHt8WvTvbkMyvYKd4qYz77tbdM77Kuc2Im2i5xYfz+CJZ/Yv12xw0OW6WpM/t n1xqmyDBmCa4oevW6zLeeHO99i0CjCGr9Jysvxikxh4o3JbP9HVXQ1WAvkys+4KHaaq3DYNO 81tqmbsKznov0sv3RSH1qvav3xX2il2fnolvlrjZFfP61KQTxzZXZyTK5jdJ1tV/WquwLnWn 7P1PSizFGYmGWsxFxYkALRaToB0DAAA= X-CMS-MailID: 20210217053521epcas1p2aa80cae5d52f30c8c8882f44abe8045c X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210217053521epcas1p2aa80cae5d52f30c8c8882f44abe8045c References: <20210217052239.13780-1-dh0421.hwang@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org This makes to handle read errors faster by not retrying multiple block read(CMD18) errors with single block reads(CMD17). On some bad SD Cards that have problem with read operations, it is not helpful to retry multiple block read errors with several single block reads, and it is delayed to treat read operations as I/O error as much as retrying single block reads. Signed-off-by: DooHyun Hwang --- drivers/mmc/core/block.c | 3 ++- drivers/mmc/core/host.c | 6 ++++++ include/linux/mmc/host.h | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index d666e24fbe0e..e25aaf8fca34 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c @@ -1809,7 +1809,8 @@ static void mmc_blk_mq_rw_recovery(struct mmc_queue *mq, struct request *req) /* FIXME: Missing single sector read for large sector size */ if (!mmc_large_sector(card) && rq_data_dir(req) == READ && - brq->data.blocks > 1) { + brq->data.blocks > 1 && + !card->host->no_single_read_retry) { /* Read one sector at a time */ mmc_blk_read_single(mq, req); return; diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 9b89a91b6b47..3bf5b2fc111b 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -352,6 +352,12 @@ int mmc_of_parse(struct mmc_host *host) if (device_property_read_bool(dev, "no-mmc")) host->caps2 |= MMC_CAP2_NO_MMC; + if (device_property_read_bool(dev, "no-single-read-retry")) { + dev_info(host->parent, + "Single block read retrying is not supported\n"); + host->no_single_read_retry = true; + } + /* Must be after "non-removable" check */ if (device_property_read_u32(dev, "fixed-emmc-driver-type", &drv_type) == 0) { if (host->caps & MMC_CAP_NONREMOVABLE) diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 26a3c7bc29ae..faec55035a63 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -502,6 +502,9 @@ struct mmc_host { /* Host Software Queue support */ bool hsq_enabled; + /* Do not retry multi block read as single block read */ + bool no_single_read_retry; + unsigned long private[] ____cacheline_aligned; };