Skip to content

cxl: Background commands and device Sanitation

Davidlohr Bueso linux-cxl 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 7 repliesIn review
  2. v13 patches 13 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5cxl/mbox: Add support for background operationshw/cxl/cxl-device-utils.c hw/cxl/cxl-mailbox-utils.c hw/mem/cxl_type3.c +1 more+107 -51 reply
2/5cxl/mbox: Wire up interrupts for background completionhw/cxl/cxl-device-utils.c hw/cxl/cxl-mailbox-utils.c hw/mem/cxl_type3.c +1 more+22 -21 reply
3/5cxl/device: Handle Media Disabled statehw/cxl/cxl-mailbox-utils.c hw/mem/cxl_type3.c include/hw/cxl/cxl_device.h+58 -03 replies
4/5hw/cxl: Add support for device sanitationhw/cxl/cxl-mailbox-utils.c+124 -11 reply
5/5cxl/type3: Remove superfluous statementshw/mem/cxl_type3.c+0 -41 reply

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchJonathan Cameron
1/5
2/5R-b
3/5
4/5
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 -qemu 0/5] cxl: Background commands and device Sanitation

Hi,

This adds support for device Sanitation, per CXL 3.0 specs. While device sanitation makes little sense for virtual machines, I am posting this series as it was used to test the driver equivalent in a sane manner and might come in handy for others.

Furthermore this adds core functionality requirements for the actual command, the background mailbox handling (first two patches) will be needed anyway for other bg-capable commands when introduced (we already have a cmd_infostat_bg_op_sts(), which while updated, it is untested).

Changes from v1 (https://lore.kernel.org/all/[email protected]/):

o Patch 1: added missing timer_free() in ct3_exit.
removed define SECURITY_STATE_CHANGE (unused). simplified some of the register handling in cxl_process_mailbox(). removed superfluous qemu_log() debugging splats.

o Patch 2: increased msi_n + use PCI_DEV().

o Patch 3 is new, which makes the Media Disabled handling separate from the implementation of the Sanitation functionality. This also considers arm64 and uses little endian reads and writes (the mbox processing updates could follow this series).

o Patch 4: s/overwrite/sanitize.
__do_sanitization() rely on cmd effect (cel) for knowing bg effect. __do_sanitization() uses address_space destroy+init. remove sanitize_running() altogether, instead rely on media state. remove superfluous references to scan media.

o Patch 5 is a new cleanup patch.

Applies on top of branch 'cxl-2023-02-21' of Jonathan's tree:

	https://gitlab.com/jic23/qemu/-/tree/cxl-2023-02-21

Davidlohr Bueso (5):
cxl/mbox: Add support for background operations cxl/mbox: Wire up interrupts for background completion cxl/device: Handle Media Disabled state hw/cxl: Add support for device sanitation cxl/type3: Remove superfluous statements

 hw/cxl/cxl-device-utils.c   |  13 +-
 hw/cxl/cxl-mailbox-utils.c  | 244 +++++++++++++++++++++++++++++++++++-
 hw/mem/cxl_type3.c          |  18 ++-
 include/hw/cxl/cxl_device.h |  44 +++++++
 4 files changed, 309 insertions(+), 10 deletions(-)

--
2.40.0