Linux CXL
 help / color / mirror / Atom feed
* [PATCH v2 -qemu 0/5] cxl: Background commands and device Sanitation
@ 2023-04-18 17:23 Davidlohr Bueso
  2023-04-18 17:23 ` [PATCH 1/5] cxl/mbox: Add support for background operations Davidlohr Bueso
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Davidlohr Bueso @ 2023-04-18 17:23 UTC (permalink / raw)
  To: Jonathan.Cameron
  Cc: dan.j.williams, fan.ni, a.manzanares, dave.jiang, dave, linux-cxl

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/20230224194443.1990440-1-dave@stgolabs.net/):

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-05-16  9:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-18 17:23 [PATCH v2 -qemu 0/5] cxl: Background commands and device Sanitation Davidlohr Bueso
2023-04-18 17:23 ` [PATCH 1/5] cxl/mbox: Add support for background operations Davidlohr Bueso
2023-05-15 12:32   ` Jonathan Cameron
2023-04-18 17:23 ` [PATCH 2/5] cxl/mbox: Wire up interrupts for background completion Davidlohr Bueso
2023-05-15 12:35   ` Jonathan Cameron
2023-04-18 17:23 ` [PATCH 3/5] cxl/device: Handle Media Disabled state Davidlohr Bueso
2023-05-15 12:39   ` Jonathan Cameron
2023-05-15 16:41     ` Davidlohr Bueso
2023-05-16  9:36       ` Jonathan Cameron
2023-04-18 17:23 ` [PATCH 4/5] hw/cxl: Add support for device sanitation Davidlohr Bueso
2023-05-15 12:51   ` Jonathan Cameron
2023-04-18 17:23 ` [PATCH 5/5] cxl/type3: Remove superfluous statements Davidlohr Bueso
2023-05-15 12:53   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox