Skip to content

RFC cxl: Fix background operation handling

Jeongtae Park linux-cxl 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cxl: Modify background cmd handling for the othersdrivers/cxl/core/memdev.c drivers/cxl/cxlmem.h drivers/cxl/pci.c+64 -421 reply
2/3cxl/mbox: Update sanitize opcode supportdrivers/cxl/core/mbox.c+4 -10 replies
3/3cxl/memdev: Add background command sysfs fileDocumentation/ABI/testing/sysfs-bus-cxl drivers/cxl/core/memdev.c+73 -00 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/3] cxl: Fix background operation handling

Hello,

We are currently trying to add background commands like fw-related and sanitize operation. However, as we modified the code, we found that there was a lot of duplication of code, so we would like to modify the existing background command handling a little bit. We want to make the most of the existing background command handling so that we can easily add other background commands in the future.

The first patch modifies the existing sanitize operation handling to allow other background commands to be used with it, and the second patch modifies sanitize to work with the modified code. Finally, the third patch adds a sysfs file related to the background operation. This sysfs entry is select/poll capable from userspace to notify upon completion of a background operation.

Thanks,
/jtpark

Jeongtae Park (3):
cxl: Modify background cmd handling for the others cxl/mbox: Update sanitize opcode support cxl/memdev: Add background command sysfs file

 Documentation/ABI/testing/sysfs-bus-cxl | 10 ++++
 drivers/cxl/core/mbox.c                 |  5 +-
 drivers/cxl/core/memdev.c               | 71 +++++++++++++++++++++++--
 drivers/cxl/cxlmem.h                    | 33 ++++++++++--
 drivers/cxl/pci.c                       | 65 +++++++++++-----------
 5 files changed, 141 insertions(+), 43 deletions(-)

base-commit: fe77cc2e5a6a7c85f5c6ef8a39d7694ffc7f41c9

Signature · 1 line
2.34.1