Skip to content

RFC cxl: Support for mailbox background abort operation

Ravis OpenSrc linux-cxl 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest4 patches 7 repliesIn review
  2. v1 RFC4 patches 0 repliesSuperseded

Changes in v2 from the cover letter

* Added missing signature tags

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4cxl: Enable mailbox ops with background only if request abort operation is supported.drivers/cxl/core/mbox.c drivers/cxl/cxlmem.h+0 -01 reply
2/4cxl: Add default timeout for bg mailbox commandsdrivers/cxl/pci.c+0 -02 replies
3/4cxl: Abort background operation in case of timeoutdrivers/cxl/cxlmem.h drivers/cxl/pci.c+0 -03 replies
4/4cxl/mbox: Add Populate Log supportdrivers/cxl/core/mbox.c drivers/cxl/cxlmem.h include/uapi/linux/cxl_mem.h+0 -01 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [RFC v2 0/4] cxl: Support for mailbox background abort operation

This patchset introduces the Request Background Abort operation as outlined in CXL 3.1, section 8.2.9.1.5. It ensures that only background operations supporting request background abort are allowed. A default timeout of 5 seconds is specified for operations where a timeout is not explicitly defined. If this timeout expires, a Request Abort command is issued to terminate the ongoing background operation.

This patchset is based on suggestion from Dan Williams, as referenced here:
https://lore.kernel.org/linux-cxl/[email protected]/

(1) Patch 1: Enables only those background mailbox commands that also support request abort through their CEL.
(2) Patch 2: A default timeout of 5 secs for mailbox commands that do not have an explicitly mentioned timeout.
(3) Patch 3: Adds support for sending an abort when a mailbox background operation times out.
(4) Patch 4: Adds support for the Populate Log command, a background operation that can potentially support abort.

v2:
* Added missing signature tags

v1:
https://lore.kernel.org/linux-cxl/[email protected]/T/#t

Ravi Shankar (4):
  cxl: Enable mailbox ops with background only if request abort operation is supported.
  cxl: Add default timeout for bg mailbox commands
  cxl: Abort background operation in case of timeout cxl/mbox: Add Populate Log support

 drivers/cxl/core/mbox.c      | 13 +++++++++++-- drivers/cxl/cxlmem.h         | 18 ++++++++++++++++++ drivers/cxl/pci.c            | 24 ++++++++++++++++++++++++ include/uapi/linux/cxl_mem.h |  1 +

 4 files changed, 54 insertions(+), 2 deletions(-)
Signature · 1 line
2.43.0