From: "Yaniv Gardi" <ygardi@codeaurora.org>
To: "'S, Venkatraman'" <svenkatr@ti.com>
Cc: linux-mmc@vger.kernel.org, merez@codeaurora.org
Subject: RE: [PATCH v6 0/2] *** adding and exposing SANITIZE capability to the user space via a unique IOCTL ***
Date: Sun, 10 Jun 2012 16:49:26 +0300 [thread overview]
Message-ID: <000b01cd470f$daef74a0$90ce5de0$@codeaurora.org> (raw)
In-Reply-To: <CANfBPZ9ab=x=gbYHH_Zj7mjO+zP4diuAvT+t8CamnQh3qZN8Vg@mail.gmail.com>
First, the REQ_SECURE + REQ_DISCARD are used for specific sector/s. SANITIZE
is a generic command that erase all unmapped sectors.
Second, secure erase for a specific sector (SECURE TRIM) is no longer
supported.
Anyhow, SANITIZE replaces the need to issue REQ_SECURE as part of the
REQ_DISCARD request. In this way DISCARD request finishes much faster (order
of magnitude) and thus improves system performance. When the NVM content
must be erased, the user may use SANITIZE to erase all unmapped sectors.
An example of usage is refurbished devices in which the carrier wants to
erase NVM content (since the user used only DISCARDs), in this case the a
SANITIZE operation will be triggered in the carrier labs from a dedicated
application through IOCTL that goes directly to the device. Note that no
change to the FS is required for such operation.
Thanks,
Yaniv
= > -----Original Message-----
= > From: S, Venkatraman [mailto:svenkatr@ti.com]
= > Sent: Friday, June 08, 2012 2:30 PM
= > To: Yaniv Gardi
= > Cc: linux-mmc@vger.kernel.org; merez@codeaurora.org
= > Subject: Re: [PATCH v6 0/2] *** adding and exposing SANITIZE capability
to
= > the user space via a unique IOCTL ***
= >
= > On Thu, Jun 7, 2012 at 8:08 PM, Yaniv Gardi <ygardi@codeaurora.org>
= > wrote:
= > > *** adding and exposing SANITIZE capability to the user space via a
= > > unique IOCTL ***
= >
= > Well, is this really needed ? As I understand, SANITIZE is identical to
= > REQ_SECURE + REQ_DISCARD.
= > Mapping the device function to an existing attribute is more easy that
= > creating the whole plumbing around SANITIZE, just because it exists.
= > Apart from the IOCTL, it would be useful to find if any file systems
want to
= > use this, and it is any way more friendly than SECURE + DISCARD.
= >
= > >
= > > changes patch v6:
= > > fixed some code review comments
= > > added timeout dependency for CMD6 when issueing the sanitize
= > command.
= > >
= > > changes patch v5:
= > > added BUG_ON() where needed
= > >
= > > changes patch v4:
= > > removed a few debug printouts
= > >
= > > changes patch v3:
= > > split the patch into 2 commits - block and mmc/card added capability
= > > MMC_CAP2_SANITIZE to mmc controller
= > >
= > > Yaniv Gardi (2):
= > > block: ioctl support for sanitize in eMMC 4.5
= > > mmc: card: Adding support for sanitize in eMMC 4.5
= > >
= > > block/blk-core.c | 18 +++++++++--
= > > block/blk-lib.c | 51 +++++++++++++++++++++++++++++++
= > > block/blk-merge.c | 6 ++++
= > > block/elevator.c | 41 ++++++++++++++++++++++++-
= > > block/ioctl.c | 9 +++++
= > > drivers/mmc/card/block.c | 72
= > > ++++++++++++++++++++++++++++++++------------
= > > drivers/mmc/card/queue.c | 10 +++++-
= > > include/linux/blk_types.h | 5 ++-
= > > include/linux/blkdev.h | 3 ++
= > > include/linux/fs.h | 1 +
= > > include/linux/mmc/host.h | 1 +
= > > kernel/trace/blktrace.c | 2 +
= > > 12 files changed, 191 insertions(+), 28 deletions(-)
= > >
= > > --
= > > 1.7.6
= > > --
= > > Sent by a consultant of the Qualcomm Innovation Center, Inc.
= > > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora
= > > Forum
= > > --
= > > To unsubscribe from this list: send the line "unsubscribe linux-mmc"
= > > in the body of a message to majordomo@vger.kernel.org More
= > majordomo
= > > info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-06-10 13:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-07 14:38 [PATCH v6 0/2] *** adding and exposing SANITIZE capability to the user space via a unique IOCTL *** Yaniv Gardi
2012-06-07 14:39 ` [PATCH v6 1/2] block: ioctl support for sanitize in eMMC 4.5 Yaniv Gardi
2012-06-07 14:39 ` [PATCH v6 2/2] mmc: card: Adding " Yaniv Gardi
2012-06-08 11:29 ` [PATCH v6 0/2] *** adding and exposing SANITIZE capability to the user space via a unique IOCTL *** S, Venkatraman
2012-06-10 13:49 ` Yaniv Gardi [this message]
2012-06-11 3:03 ` Dong, Chuanxiao
2012-06-12 16:19 ` Yaniv Gardi
2012-06-13 20:43 ` S, Venkatraman
2012-06-14 3:22 ` Dong, Chuanxiao
2012-06-11 14:55 ` S, Venkatraman
-- strict thread matches above, loose matches on Subject: below --
2012-06-07 14:17 Yaniv Gardi
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='000b01cd470f$daef74a0$90ce5de0$@codeaurora.org' \
--to=ygardi@codeaurora.org \
--cc=linux-mmc@vger.kernel.org \
--cc=merez@codeaurora.org \
--cc=svenkatr@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).