public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Linus Walleij <linus.walleij@linaro.org>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	linux-block@vger.kernel.org,
	Chunyan Zhang <zhang.chunyan@linaro.org>,
	Baolin Wang <baolin.wang@linaro.org>,
	Paolo Valente <paolo.valente@linaro.org>
Subject: Re: [PATCH 0/6] mmc: block: command issue cleanups
Date: Fri, 27 Jan 2017 10:46:36 +0100	[thread overview]
Message-ID: <20170127094635.uxuhh5vcexdx4i5h@lukather> (raw)
In-Reply-To: <CAPDyKFq6wzw=_6oc=hyW3B_tBAGfqzrixoy-gr=ki=M2wyhiNg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2933 bytes --]

Hi Ulf,

On Fri, Jan 27, 2017 at 08:58:16AM +0100, Ulf Hansson wrote:
> On 26 January 2017 at 09:07, Ulf Hansson <ulf.hansson@linaro.org> wrote:
> > On 24 January 2017 at 11:17, Linus Walleij <linus.walleij@linaro.org> wrote:
> >> The function mmc_blk_issue_rw_rq() is hopelessly convoluted and
> >> need to be refactored to it can be understood by humans.
> >>
> >> In the process I found some weird magic return values passed
> >> around for no good reason.
> >>
> >> Things are more readable after this.
> >>
> >> This work is done towards the goal of breaking the function in
> >> two parts: one just submitting the requests and one checking the
> >> result and possibly resubmitting the command on error, so we
> >> can make the usual path (non-errorpath) smooth and quick, and
> >> be called directly when the driver completes a request.
> >>
> >> That in turn is a prerequisite for proper blk-mq integration
> >> with the MMC/SD stack.
> >>
> >> All that comes later.
> >>
> >> Linus Walleij (6):
> >>   mmc: block: break out mmc_blk_rw_cmd_abort()
> >>   mmc: block: break out mmc_blk_rw_start_new()
> >>   mmc: block: do not assign mq_rq when aborting command
> >>   mmc: block: inline command abortions
> >>   mmc: block: introduce new_areq and old_areq
> >>   mmc: block: stop passing around pointless return values
> >>
> >>  drivers/mmc/core/block.c | 108 ++++++++++++++++++++++++++---------------------
> >>  drivers/mmc/core/block.h |   2 +-
> >>  2 files changed, 60 insertions(+), 50 deletions(-)
> >>
> >> --
> >> 2.9.3
> >>
> >
> > Thanks, applied for next!
> 
> Linus,
> 
> Seems like this series may have issues. I have looked at boot reports
> from kernelci, and particular the reports for
> https://kernelci.org/boot/sun7i-a20-bananapi/job/ulfh/ are
> interesting.
> 
> Apparently, this board has an SD card attached. There have been errors
> reported in the log for a while when doing data transfers, although
> none of these errors have triggered the kernelci to report a boot
> error.
> 
> However, I suspect that some of the changes in this series make it
> worse. Perhaps because of a changed error handling the mmc block
> layer!?
> 
> Particular, look at the difference between these [1] boot logs, it
> might give you some hints. I have also added Maxime to this thread,
> perhaps he can help out with the sunxi mmc driver.

We also had a patch on the pinctrl side in 4.10, whose side effects
would be to disable the pull ups on some boards that have not been
configuring their pins properly (while the previous behaviour was to
keep what the bootloader set).

That board seems to fall in that category.

That behaviour has been reverted, and Linus merged it already, so it
might be entirely unrelated to that serie.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2017-01-27  9:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-24 10:17 [PATCH 0/6] mmc: block: command issue cleanups Linus Walleij
2017-01-24 10:17 ` [PATCH 1/6] mmc: block: break out mmc_blk_rw_cmd_abort() Linus Walleij
2017-01-25  9:23   ` Mateusz Nowak
2017-01-26 15:01     ` Linus Walleij
2017-01-24 10:17 ` [PATCH 2/6] mmc: block: break out mmc_blk_rw_start_new() Linus Walleij
2017-01-24 10:17 ` [PATCH 3/6] mmc: block: do not assign mq_rq when aborting command Linus Walleij
2017-01-24 10:17 ` [PATCH 4/6] mmc: block: inline command abortions Linus Walleij
2017-01-24 10:17 ` [PATCH 5/6] mmc: block: introduce new_areq and old_areq Linus Walleij
2017-01-24 10:17 ` [PATCH 6/6] mmc: block: stop passing around pointless return values Linus Walleij
2017-01-26  8:07 ` [PATCH 0/6] mmc: block: command issue cleanups Ulf Hansson
2017-01-27  7:58   ` Ulf Hansson
2017-01-27  9:46     ` Maxime Ripard [this message]
2017-01-30 13:05     ` Linus Walleij
2017-01-30 13:30       ` Linus Walleij

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=20170127094635.uxuhh5vcexdx4i5h@lukather \
    --to=maxime.ripard@free-electrons.com \
    --cc=baolin.wang@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=paolo.valente@linaro.org \
    --cc=ulf.hansson@linaro.org \
    --cc=zhang.chunyan@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox