All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Porzio <porzio@gmail.com>
To: linux-mmc@vger.kernel.org
Cc: Zhan Liu <zliua@micron.com>, Luca Porzio <lporzio@micron.com>
Subject: [RFC PATCH 0/2] Support temporarily disable of the CMDQ mode
Date: Mon, 15 Feb 2021 01:31:52 +0100	[thread overview]
Message-ID: <20210215003150.GA12202@lupo-laptop> (raw)

eMMC protocol was born as single threaded and many use cases still
expect single thread operation mode. Through time the Command Queue
was developed and supported but many legacy operation are still
performed using single thread mode.

An example is FFU operation performed by using mmc-utils which is
currently broken for devices supporting CMDQ mode.

In order to enable legacy command sequences, we make cmdq_en sysfs
parameter writeable: setting this parameter to zero will temporarily
disable CMDQ mode and let legacy command sequence be supported.

Setting the cmdq_en parameter to one, will enable CMDQ mode back on.

Luca Porzio (2):
  Remove unnecessary usage of use_cqe parameter in mmc_queue and use
    more appropriate mmc_host->cqe_enabled
  Make cmdq_en attribute in sysfs, writeable. When 0 is written:     -
    CMDQ is disabled and kept disabled across device reboots. When 1 is
    written:     - CMDQ mode is instantly reneabled (if supported).

 drivers/mmc/core/block.c |   7 +-
 drivers/mmc/core/mmc.c   | 152 ++++++++++++++++++++++++++++++---------
 drivers/mmc/core/queue.c |  11 ++-
 drivers/mmc/core/queue.h |   1 -
 include/linux/mmc/card.h |   1 +
 5 files changed, 127 insertions(+), 45 deletions(-)

-- 
2.17.1


                 reply	other threads:[~2021-02-15  0:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20210215003150.GA12202@lupo-laptop \
    --to=porzio@gmail.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=lporzio@micron.com \
    --cc=zliua@micron.com \
    /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.