All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Fritz <chf.fritz@googlemail.com>
To: Shawn Lin <shawn.lin@rock-chips.com>,
	Ulf Hansson <ulf.hansson@linaro.org>
Cc: linux-mmc <linux-mmc@vger.kernel.org>, info@atpinc.com
Subject: Re: [PATCH v2] mmc: core: apply NO_CMD23 quirk to an ATP card
Date: Mon, 25 Sep 2017 13:23:03 +0200	[thread overview]
Message-ID: <1506338583.2143.5.camel@googlemail.com> (raw)
In-Reply-To: <10a81e7b-fe56-be68-dc46-4cf2870fd7a2@rock-chips.com>

On Mon, 2017-09-25 at 11:33 +0800, Shawn Lin wrote:
> >> I'm just curious about if these ATP cards could work for ACMD23?
> >>
> >> Could you kindly try this patch?
> >>
> >> |https://patchwork.kernel.org/patch/9887651/
> > 
> > By looking at your patch I can see that bool variable 'need_acmd23' is
> > only set when card does not support CMD23. But here this card (falsely)
> > claims to support CMD23, which is the whole point of the NO_CMD23 quirk.
> > 
> > So testing your patch would not make any difference, because its
> 
> yup, sorry fot that. I mean you could hack it a little to mask
> CMD23 support and let ACMD23 take effect, and see how it would
> go?

forcing ACMD23 instead of CMD23 works fine:

dd if=/dev/urandom of=/mnt/test bs=1M count=100 conv=fsync
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 9.9496 s, 10.5 MB/s

It's as fast as using my NO_CMD23 quirk.

> >>>>           /*
> >>>> +        * Some SD cards lockup while using CMD23 multiblock transfers.
> >>>> +        */
> >>>> +       MMC_FIXUP("AF SD", CID_MANFID_ATP, CID_OEMID_ANY, add_quirk_sd,
> >>>> +                 MMC_QUIRK_BLK_NO_CMD23),
> >>>
> >>> Is really all ATP cards having this problem? Perhaps we should
> >>> consider making this a bit more fine grained?
> >>>
> >>> On the other hand, this may be the safest way to do it...
> > 
> > I also thought about this and set CID_OEMID_ANY because I wanted to be
> > on the safe side. Maybe ATP can comment on this (in CC)?

Thanks
 -- Christoph


  reply	other threads:[~2017-09-25 11:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-09 23:12 [PATCH] mmc: block: apply NO_CMD32 quirk to an ATP card Christoph Fritz
2017-09-09 23:44 ` [PATCH v2] mmc: core: apply NO_CMD23 " Christoph Fritz
2017-09-22  8:42   ` Ulf Hansson
2017-09-22  9:26     ` Shawn Lin
2017-09-23 19:51       ` Christoph Fritz
2017-09-25  3:33         ` Shawn Lin
2017-09-25 11:23           ` Christoph Fritz [this message]
2017-09-26  0:56             ` Shawn Lin
2017-12-04 13:38               ` Christoph Fritz
2017-12-09 22:44                 ` Christoph Fritz
2017-12-09 22:47                   ` [PATCH v3] mmc: core: apply NO_CMD23 quirk to some specific cards Christoph Fritz
2017-12-11 13:00                     ` Ulf Hansson
2017-12-11 20:19                       ` Christoph Fritz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1506338583.2143.5.camel@googlemail.com \
    --to=chf.fritz@googlemail.com \
    --cc=info@atpinc.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=shawn.lin@rock-chips.com \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.