Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1215023
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | LIYONG <sdliyong@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH] mmc: block: disable the reliable write If the card does not support CMD23 |
| Date | Fri, 28 Aug 2015 02:40:02 +0200 |
| Message-ID | <q2fS2-3R7-13@gated-at.bofh.it> (permalink) |
| References | <q2fS2-3R7-15@gated-at.bofh.it> <q25pD-5Hl-9@gated-at.bofh.it> |
| X-Original-To | Ulf Hansson <ulf.hansson@linaro.org> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:cc:subject:date:importance:in-reply-to :references:content-type:content-transfer-encoding:mime-version; bh=5M6kuLtRBi7Eq3sjTwJ/J01o1OW8tLm1ZXbkNsvFLgI=; b=rbIEIO7Fx4vb0fYe11hDC3Z/Anf0TJM0LCfZT3vTSzmiyQ9g2VYlwfmpEHzMxZT50v wDzf4tv6slVoPI9Yi4aaajlDnGFvk4eGnRMW7xmPVLeEntGaHRH7Wg9UtlCMVwhHaWwl sQIsUZhU7bzoiUOzBgxr5w9yFJBNMtusvrNPK/ha0Fq6rHVTRX/EclPRyFJMIdFCZIaW I47lyNXh6yJ9u7dyBT8zNtUhBQjWktStxYPSyKSuea7+z88z+W27b8Sh0+enY79hAZrn tuX8r4YxLstbzm+ffwgYvIFtaXJj4llDTMzA84duUQ9P4oZHHJ409VzQEkhR9YcTOPJW adVQ== |
| X-Received | by 10.68.65.77 with SMTP id v13mr10690839pbs.157.1440722306490; Thu, 27 Aug 2015 17:38:26 -0700 (PDT) |
| X-Tmn | [Kt1TF7spuLyYfi2DihmIx+ousevughy8] |
| Importance | Normal |
| Content-Type | text/plain; charset="iso-8859-1" |
| Content-Transfer-Encoding | 8BIT |
| MIME-Version | 1.0 |
| X-Originalarrivaltime | 28 Aug 2015 00:38:23.0004 (UTC) FILETIME=[D82645C0:01D0E129] |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 62 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Chris Ball <chris@printf.net>, linux-mmc <linux-mmc@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> |
| X-Original-Date | Fri, 28 Aug 2015 08:38:22 +0800 |
| X-Original-Message-ID | <BLU168-W13574B00F22F09F6F0E357FD66E0@phx.gbl> |
| X-Original-References | <1439537446-7713-1-git-send-email-sdliyong@gmail.com>,<CAPDyKFp51gzyNaGkGWDXs0ATX2hom2yfcLHXT4o=dzw2=AbWNw@mail.gmail.com>,<CAPDyKFpVN8aK6aF2Fk9UNgFfJU5W1CT4v4YBtJDF6t57cwXsKg@mail.gmail.com> <CAPDyKFpVN8aK6aF2Fk9UNgFfJU5W1CT4v4YBtJDF6t57cwXsKg@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1215023 |
Show key headers only | View raw
Hi Uffe, Since Reliable Write depends on the CMD23. I think we need to disable Reliable Write if the card does not support CMD23(due to performance impact issue), so I add this patch. Do you think we still need to enable Reliable Write even if the card does not support CMD23? Thanks, Yong Li ---------------------------------------- > Date: Thu, 27 Aug 2015 15:22:44 +0200 > Subject: Re: [PATCH] mmc: block: disable the reliable write If the card does not support CMD23 > From: ulf.hansson@linaro.org > To: sdliyong@gmail.com > CC: chris@printf.net; linux-mmc@vger.kernel.org; linux-kernel@vger.kernel.org > > On 25 August 2015 at 14:06, Ulf Hansson <ulf.hansson@linaro.org> wrote: >> On 14 August 2015 at 09:30, <sdliyong@gmail.com> wrote: >>> From: Yong Li <sdliyong@gmail.com> >>> >>> Signed-off-by: Yong Li <sdliyong@gmail.com> >>> --- >>> drivers/mmc/card/block.c | 3 ++- >>> 1 file changed, 2 insertions(+), 1 deletion(-) >>> >>> diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c >>> index 452782b..d9e3c45 100644 >>> --- a/drivers/mmc/card/block.c >>> +++ b/drivers/mmc/card/block.c >>> @@ -1366,7 +1366,8 @@ static void mmc_blk_rw_rq_prep(struct mmc_queue_req *mqrq, >>> bool do_rel_wr = ((req->cmd_flags & REQ_FUA) || >>> (req->cmd_flags & REQ_META)) && >>> (rq_data_dir(req) == WRITE) && >>> - (md->flags & MMC_BLK_REL_WR); >>> + (md->flags & MMC_BLK_REL_WR) && >>> + !(card->quirks & MMC_QUIRK_BLK_NO_CMD23); >> >> Further down in mmc_blk_rw_rq_prep() we check for >> MMC_QUIRK_BLK_NO_CMD23. That check becomes redundant after this >> change, please remove that check as a part of this patch as well. >> >>> >>> memset(brq, 0, sizeof(struct mmc_blk_request)); >>> brq->mrq.cmd = &brq->cmd; >>> -- >>> 2.1.0 >>> >> > > Please ignore my previous answer. MMC_QUIRK_BLK_NO_CMD23 is intended > to indicate to the mmc block layer whether using CMD23 for regular > block IO request could have a performance impact for some cards. If > that's the case we don't use it - except when using reliable write! > > So this patch is just plain wrong. > > Kind regards > Uffe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH] mmc: block: disable the reliable write If the card does not support CMD23 Ulf Hansson <ulf.hansson@linaro.org> - 2015-08-25 14:10 +0200
RE: [PATCH] mmc: block: disable the reliable write If the card does not support CMD23 LIYONG <sdliyong@gmail.com> - 2015-08-26 08:20 +0200
Re: [PATCH] mmc: block: disable the reliable write If the card does not support CMD23 Shawn Lin <shawn.lin@rock-chips.com> - 2015-08-26 09:30 +0200
RE: [PATCH] mmc: block: disable the reliable write If the card does not support CMD23 LIYONG <sdliyong@gmail.com> - 2015-08-26 14:40 +0200
Re: [PATCH] mmc: block: disable the reliable write If the card does not support CMD23 Ulf Hansson <ulf.hansson@linaro.org> - 2015-08-27 15:30 +0200
RE: [PATCH] mmc: block: disable the reliable write If the card does not support CMD23 LIYONG <sdliyong@gmail.com> - 2015-08-28 02:40 +0200
csiph-web