All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
To: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>
Subject: Re: eMMC performance regression caused by 427b6514d0953bf
Date: Wed, 14 Oct 2020 18:42:31 +0800	[thread overview]
Message-ID: <20201014184231.7f4872ef@xhacker.debian> (raw)
In-Reply-To: <87a39115-5843-a6a3-7564-e36ae1f16903@intel.com>

On Tue, 13 Oct 2020 16:23:36 +0300 Adrian Hunter wrote:

> 
> On 13/10/20 3:32 pm, Ulf Hansson wrote:
> > + Adrian
> >
> > On Tue, 13 Oct 2020 at 13:09, Jisheng Zhang <Jisheng.Zhang@synaptics.com> wrote:  
> >>
> >> Hi,
> >>
> >> I found an emmc performance regression with below simple benchmark cmd:
> >>
> >> dd if=/dev/mmcblk0 of=/dev/null bs=8192 count=100000
> >>
> >> This regression has been bisected to commit
> >> 427b6514d0953bf (“mmc: sdhci: Add Auto CMD Auto Select support”)
> >>
> >> If I revert this commit, the performance is good now.
> >>
> >> I’m not sure whether this is common issue or not.  
> >
> > Can you provide some data, like how much is the regression and how
> > many tests did you run?

before the commit, 120MB/s
after the commit, 51.3MB/s

tested 10 times

> >
> > Did you try different block sizes of the dd command?  
> 
> Also what is the SDHCI version?  The patch in question is for version >= 4.1

V4.2

> 
> What driver?

sdhci-of-dwcmshc.c, but some phy tuning code isn't mainlined yet.

> 
> Can you tell if the patch changed which auto command is used?

autocmd23

Now I have a fix, the Auto CMD auto Select can only be used when v4 mode
is enabled. Although the HW supports v4.1, but drivers may haven't enabled
it due to various reasons. I just sent out the fix a few minutes ago.


Thanks

      parent reply	other threads:[~2020-10-14 10:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-13 11:08 eMMC performance regression caused by 427b6514d0953bf Jisheng Zhang
2020-10-13 12:32 ` Ulf Hansson
2020-10-13 13:23   ` Adrian Hunter
2020-10-14 10:32     ` [PATCH] mmc: sdhci: Use Auto CMD Auto Select only when v4_mode is true Jisheng Zhang
2020-10-14 19:44       ` Adrian Hunter
2020-10-15  2:12         ` Jisheng Zhang
2020-10-15  2:38           ` Jisheng Zhang
2020-10-15  5:57             ` Adrian Hunter
2020-10-15  6:24               ` Jisheng Zhang
2020-10-15  8:50                 ` Adrian Hunter
2020-10-14 10:42     ` Jisheng Zhang [this message]

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=20201014184231.7f4872ef@xhacker.debian \
    --to=jisheng.zhang@synaptics.com \
    --cc=adrian.hunter@intel.com \
    --cc=linux-mmc@vger.kernel.org \
    --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.