All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/10] cxl: Userspace background commands
@ 2026-12-02 15:43 Davidlohr Bueso
  2026-12-02 15:43 ` [PATCH v2 01/10] cxl/pci: Reschedule the poller with the capped timeout Davidlohr Bueso
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: Davidlohr Bueso @ 2026-12-02 15:43 UTC (permalink / raw)
  To: dave.jiang
  Cc: jic23, alison.schofield, ming.li, icheng, benjamin.cheatham,
	unsung0317, linux-cxl, dave

Hi,

Changes from v1:
 o Dropped handling Activate FW asynchronously. Nothing bounds how long
   an activation may take, so there is no good answer to how long the
   firmware upload should wait for its result. Deferred until the spec
   has the device report it. Patch 4 is what is left of that patch, the
   decoupling from security, and Jonathan's tag is dropped as such.
 o New fixes in patches 1 and 2, and new patch 7.
 o Fixed the cxl_test build. (Unsung)
 o Converted to scoped_guard() and clarified comments. (Jonathan)
 o Rebased on v7.4-rc5.

This is v2 of the mailbox background command series[1]. It lets
userspace make use of the background operation capability, with the
kernel aborting such an operation whenever it needs the device for one
of its own, and adds Populate Log as the first command to use it.

v1 has been sitting since June of last year. Unsung's work on online
firmware activation[2] ran into the same background handling, and the
discussion there is what brought this back.

 o Patches 1-2 are fixes to the existing background handling, and can
   go in on their own.
 o Patch 3 tracks which commands the CEL has as background capable.
 o Patch 4 moves the async handling out of the security state.
 o Patches 5-6 no longer hold the mbox_mutex while polling for a
   background command the kernel waits for.
 o Patch 7 adds the return codes an abort request can come back with.
 o Patches 8-9 allow userspace background commands.
 o Patch 10 adds Populate Log.

Testing was done with cxl_test and the ndctl suite, and with the qemu
based tests at [3], which also carry the qemu fixes they rely on.

[1] https://lore.kernel.org/all/20250617193611.564668-1-dave@stgolabs.net/
[2] https://lore.kernel.org/all/20261125124358.3583223-1-unsung0317@gmail.com/
[3] https://github.com/davidlohr/cxl-bg-tests

Thanks!

Davidlohr Bueso (9):
  cxl/pci: Reschedule the poller with the capped timeout
  cxl/pci: Preserve Mailbox Control bits when ringing the doorbell
  cxl/mbox: Track background commands from CEL
  cxl/mbox: Decouple async background handling from security
  cxl/pci: Lockless background synchronous polling
  cxl/mbox: Stronger cxl_mbox_background_complete() semantics
  cxl/mbox: Add missing mailbox return codes
  cxl/mbox: Allow userspace background commands
  cxl/mbox: Shout upon async bgcmd race

Ravi Shankar (1):
  cxl/mbox: Add Populate Log support

 drivers/cxl/core/hdm.c       |   2 +-
 drivers/cxl/core/mbox.c      |  45 ++++-
 drivers/cxl/core/memdev.c    |   7 +-
 drivers/cxl/cxlmem.h         |  53 +++++-
 drivers/cxl/pci.c            | 318 +++++++++++++++++++++++++----------
 include/cxl/mailbox.h        |   4 +
 include/uapi/linux/cxl_mem.h |   1 +
 tools/testing/cxl/test/mem.c |  10 +-
 8 files changed, 334 insertions(+), 106 deletions(-)


base-commit: 693c2e04e3f1d4c59af236e1211b7b8cb165a790
-- 
2.39.5


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

end of thread, other threads:[~2026-12-02 16:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 15:43 [PATCH v2 00/10] cxl: Userspace background commands Davidlohr Bueso
2026-12-02 15:43 ` [PATCH v2 01/10] cxl/pci: Reschedule the poller with the capped timeout Davidlohr Bueso
2026-12-02 15:43 ` [PATCH v2 02/10] cxl/pci: Preserve Mailbox Control bits when ringing the doorbell Davidlohr Bueso
2026-12-02 15:43 ` [PATCH v2 03/10] cxl/mbox: Track background commands from CEL Davidlohr Bueso
2026-12-02 15:43 ` [PATCH v2 04/10] cxl/mbox: Decouple async background handling from security Davidlohr Bueso
2026-12-02 15:43 ` [PATCH v2 05/10] cxl/pci: Lockless background synchronous polling Davidlohr Bueso
2026-12-02 15:44 ` [PATCH v2 06/10] cxl/mbox: Stronger cxl_mbox_background_complete() semantics Davidlohr Bueso
2026-12-02 15:44 ` [PATCH v2 07/10] cxl/mbox: Add missing mailbox return codes Davidlohr Bueso
2026-12-02 15:44 ` [PATCH v2 08/10] cxl/mbox: Allow userspace background commands Davidlohr Bueso
2026-12-02 16:10   ` sashiko-bot
2026-12-02 15:44 ` [PATCH v2 09/10] cxl/mbox: Shout upon async bgcmd race Davidlohr Bueso
2026-12-02 15:44 ` [PATCH v2 10/10] cxl/mbox: Add Populate Log support Davidlohr Bueso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.