From: Davidlohr Bueso <dave@stgolabs.net>
To: Jonathan.Cameron@huawei.com
Cc: dan.j.williams@intel.com, fan.ni@samsung.com,
a.manzanares@samsung.com, dave.jiang@intel.com,
dave@stgolabs.net, linux-cxl@vger.kernel.org
Subject: [PATCH v2 -qemu 0/5] cxl: Background commands and device Sanitation
Date: Tue, 18 Apr 2023 10:23:32 -0700 [thread overview]
Message-ID: <20230418172337.19207-1-dave@stgolabs.net> (raw)
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
next reply other threads:[~2023-04-18 17:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-18 17:23 Davidlohr Bueso [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230418172337.19207-1-dave@stgolabs.net \
--to=dave@stgolabs.net \
--cc=Jonathan.Cameron@huawei.com \
--cc=a.manzanares@samsung.com \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=fan.ni@samsung.com \
--cc=linux-cxl@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox