All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -qemu 0/4] hw/cxl: Mailbox fixes
@ 2026-11-30 15:45 Davidlohr Bueso
  2026-11-30 15:45 ` [PATCH 1/4] hw/cxl: Use runtime for bg cmd running semantics Davidlohr Bueso
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Davidlohr Bueso @ 2026-11-30 15:45 UTC (permalink / raw)
  To: mst, jic23; +Cc: junjie.cao, anisa.su, qemu-devel, linux-cxl, dave

Hello,

A few fixes for the CXL mailbox emulation, found while testing the
kernel's handling of background commands. Patch 3 depends on patch 2,
the others are independent.

Patch 1 fixes the Background Operation bit of the Mailbox Status
register, which reads as set from reset until the first background
command completes.

Patch 2 fixes the positions of the CEL command effect bits from bit 7
onwards, which are off by one.

Patch 3 sets CEL[11:10] Valid for the FM DCD commands, which report a
configuration change after a Conventional and a CXL Reset without it.

Patch 4 fixes Get Log for the CEL, which takes the Offset as a number
of entries and checks it against the wrong size, so that it returns
the wrong data and can read beyond the array. Found while adding
support to Component State Dump Log (for further testing of bg cmds).

Applies on top of v11.2.0-rc2.

Thanks,
Davidlohr

Davidlohr Bueso (4):
  hw/cxl: Use runtime for bg cmd running semantics
  hw/cxl: Fix CEL command effect bit positions
  hw/cxl: Set CEL[11:10] Valid for the FM DCD commands
  hw/cxl: Fix out of bounds read of the CEL in Get Log

 hw/cxl/cxl-device-utils.c    |  5 +----
 hw/cxl/cxl-mailbox-utils.c   | 14 +++++++++-----
 include/hw/cxl/cxl_mailbox.h | 11 +++++------
 3 files changed, 15 insertions(+), 15 deletions(-)

-- 
2.39.5


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

end of thread, other threads:[~2026-12-01 23:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 15:45 [PATCH -qemu 0/4] hw/cxl: Mailbox fixes Davidlohr Bueso
2026-11-30 15:45 ` [PATCH 1/4] hw/cxl: Use runtime for bg cmd running semantics Davidlohr Bueso
2026-11-30 15:45 ` [PATCH 2/4] hw/cxl: Fix CEL command effect bit positions Davidlohr Bueso
2026-12-01 22:44   ` Anisa Su
2026-11-30 15:45 ` [PATCH 3/4] hw/cxl: Set CEL[11:10] Valid for the FM DCD commands Davidlohr Bueso
2026-12-01 23:25   ` Anisa Su
2026-11-30 15:45 ` [PATCH 4/4] hw/cxl: Fix out of bounds read of the CEL in Get Log 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.