cxl: Background commands and device Sanitation
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 7 repliesIn review
- v13 patches 13 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | cxl/mbox: Add support for background operationshw/ hw/ hw/ +1 more | +107 | 1 reply | |
| 2/5 | cxl/mbox: Wire up interrupts for background completionhw/ hw/ hw/ +1 more | +22 | 1 reply | |
| 3/5 | cxl/device: Handle Media Disabled statehw/ hw/ include/ | +58 | 3 replies | |
| 4/5 | hw/cxl: Add support for device sanitationhw/ | +124 | 1 reply | |
| 5/5 | cxl/type3: Remove superfluous statementshw/ | +0 | 1 reply |
Reviews trailers per patch
2 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Jonathan Cameron |
|---|---|
| 1/5 | |
| 2/5 | R-b |
| 3/5 | |
| 4/5 | |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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