public inbox for linux-cxl@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] cxl: Media Operations
@ 2026-03-23 20:40 Davidlohr Bueso
  2026-03-23 20:40 ` [PATCH 1/1] cxl/mbox: Support Media Operation Davidlohr Bueso
  2026-03-24 15:32 ` [RFC PATCH 0/1] cxl: Media Operations Jonathan Cameron
  0 siblings, 2 replies; 10+ messages in thread
From: Davidlohr Bueso @ 2026-03-23 20:40 UTC (permalink / raw)
  To: dave.jiang
  Cc: jonathan.cameron, alison.schofield, ira.weiny, dan.j.williams,
	dongjoo.seo1, anisa.su, linux-cxl, dave

Hello,

This implements support for Media Operation cmd. It is marked RFC because of these
noteworthy points:

 (i) Sysfs interfaces. These changes implement 'security/zero' and multiplex
     'security/sanitize' to allow dpa, len pairs for the range (no impact for
     current usage as whole-device). This breaks the 1 value per file "rule",
     and would be a first for drivers/cxl/*, so am I open to suggestions.     
  
 (ii) Background cmd handling semantics. Media operations are synchronous,
      which for raged zeroing operations makes sense and for range sanitize
      differs from the current async handling for whole-device, so user response
      differs significantly, something I am not crazy about. Another downside
      of this is that it exposes lock hold times to be user-controllable, but is
      no different than what we do for fw. Fundamentally, users have the
      responsibility to break up the work into sane ranges. Further, this is
      without considering abortable bg cmds[0], which, per-spec, are unsupported
      today for media operations.

Tested with qemu + fixlets (https://lore.kernel.org/all/20260319184256.3762391-1-dave@stgolabs.net/)

Applies against latest 'next' from cxl.git.

[0] https://lore.kernel.org/all/20250617193611.564668-1-dave@stgolabs.net/

Thanks!

Davidlohr Bueso (1):
  cxl/mbox: Support Media Operation

 Documentation/ABI/testing/sysfs-bus-cxl |  31 +++-
 drivers/cxl/core/mbox.c                 | 235 ++++++++++++++++++++++++
 drivers/cxl/core/memdev.c               |  45 ++++-
 drivers/cxl/cxlmem.h                    |  59 ++++++
 drivers/cxl/pci.c                       |   4 +
 5 files changed, 369 insertions(+), 5 deletions(-)

--
2.39.5


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-03-27 15:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-23 20:40 [RFC PATCH 0/1] cxl: Media Operations Davidlohr Bueso
2026-03-23 20:40 ` [PATCH 1/1] cxl/mbox: Support Media Operation Davidlohr Bueso
2026-03-24 16:18   ` Jonathan Cameron
2026-03-24 18:40     ` Davidlohr Bueso
2026-03-25 13:47   ` kernel test robot
2026-03-25 15:55   ` kernel test robot
2026-03-24 15:32 ` [RFC PATCH 0/1] cxl: Media Operations Jonathan Cameron
2026-03-24 18:07   ` Davidlohr Bueso
2026-03-25 12:06     ` Jonathan Cameron
2026-03-27 15:17       ` John Groves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox