Skip to content

RFC cxl: Media Operations

Davidlohr Bueso linux-cxl oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest1 patch 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1cxl/mbox: Support Media OperationDocumentation/ABI/testing/sysfs-bus-cxl drivers/cxl/core/mbox.c drivers/cxl/core/memdev.c +2 more+369 -52 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/1] cxl: Media Operations

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/[email protected]/)

Applies against latest 'next' from cxl.git.

[0] https://lore.kernel.org/all/[email protected]/

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