RFC cxl: Media Operations
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest1 patch 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | cxl/mbox: Support Media OperationDocumentation/ drivers/ drivers/ +2 more | +369 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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