From: Alison Schofield <alison.schofield@intel.com>
To: Davidlohr Bueso <dave@stgolabs.net>
Cc: vishal.l.verma@intel.com, dan.j.williams@intel.com,
dave.jiang@intel.com, fan.ni@samsung.com,
a.manzanares@samsung.com, linux-cxl@vger.kernel.org
Subject: Re: [PATCH 2/2] cxl/memdev: Introduce sanitize-memdev functionality
Date: Fri, 14 Jul 2023 11:35:09 -0700 [thread overview]
Message-ID: <ZLGVXQnn63mImOTY@aschofie-mobl2> (raw)
In-Reply-To: <72wb3boxuugrb35cz2riexiyfszzc4pc43v7i5ufct7kszjoso@x4gjsuohw4kc>
On Fri, Jul 14, 2023 at 08:00:43AM -0700, Davidlohr Bueso wrote:
> On Thu, 13 Jul 2023, Alison Schofield wrote:
>
> > On Thu, Jul 13, 2023 at 12:54:51PM -0700, Davidlohr Bueso wrote:
snip
> > > +
> > > + /* let Sanitize be the default */
> > > + if (!param.secure_erase && !param.sanitize)
> > > + param.sanitize = true;
> > > +
> > > + if (param.secure_erase)
> > > + rc = cxl_memdev_sanitize(memdev, "erase");
> > > + if (param.sanitize)
> > > + rc = cxl_memdev_sanitize(memdev, "sanitize");
> > > + else
> > > + rc = -EINVAL;
> >
> > What's the deal w supporting secure erase with sanitize?
> > Seems useless, but perhaps it's cheap.
>
> It is what it is. The secure erase option passed as a program
> parameter seemed a natural fit - in addition, both operations
> are logically grouped under the Sanitize category per specs.
>
> Vishal was fine with this, did you have anything in mind?
If the tool accepts both cmdline options at the same time, it's
implying that there is value in doing the secure-erase followed
by the sanitize.
Does the user get more value by doing both, or is secure-erase useless
when followed immediately by sanitize?
Alison
>
> Thanks,
> Davidlohr
next prev parent reply other threads:[~2023-07-14 18:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-13 19:54 [PATCH -ndctl v2 0/2] cxl: Support memdev sanitation Davidlohr Bueso
2023-07-13 19:54 ` [PATCH 1/2] cxl/memdev: Introduce wait-sanitize functionality Davidlohr Bueso
2023-07-13 19:54 ` [PATCH 2/2] cxl/memdev: Introduce sanitize-memdev functionality Davidlohr Bueso
2023-07-14 3:24 ` Alison Schofield
2023-07-14 15:00 ` Davidlohr Bueso
2023-07-14 18:35 ` Alison Schofield [this message]
2023-07-24 21:38 ` Verma, Vishal L
-- strict thread matches above, loose matches on Subject: below --
2023-04-23 1:59 [PATCH -ndctl 0/2] cxl: Support memdev sanitation Davidlohr Bueso
2023-04-23 1:59 ` [PATCH 2/2] cxl/memdev: Introduce sanitize-memdev functionality Davidlohr Bueso
2023-04-25 15:52 ` Davidlohr Bueso
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=ZLGVXQnn63mImOTY@aschofie-mobl2 \
--to=alison.schofield@intel.com \
--cc=a.manzanares@samsung.com \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=dave@stgolabs.net \
--cc=fan.ni@samsung.com \
--cc=linux-cxl@vger.kernel.org \
--cc=vishal.l.verma@intel.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