Skip to content

hw/cxl: CXL emulation cleanups and minor fixes for upstream

Jonathan Cameron linux-cxl qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest10 patches 10 repliesIn review
  2. v310 patches 1 replySuperseded
  3. v28 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v18 patches41 repliesSuperseded

Changes in v4 from the cover letter

- Rebased on upstream today.
- Refreshed DSDT.cxl due to changes upstream.
- Picked up tags from Gregory.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10hw/mem/cxl_type3: Improve error handling in realize()hw/mem/cxl_type3.c+10 -21 reply
2/10hw/pci-bridge/cxl_downstream: Fix type naming mismatchhw/pci-bridge/cxl_downstream.c+1 -11 reply
3/10hw/cxl: set cxl-type3 device type to PCI_CLASS_MEMORY_CXLhw/mem/cxl_type3.c+1 -21 reply
4/10hw/cxl: Add CXL_CAPACITY_MULTIPLIER definitionhw/cxl/cxl-mailbox-utils.c+9 -61 reply
5/10tests/acpi: Allow update of q35/DSDT.cxltests/qtest/bios-tables-test-allowed-diff.h+1 -01 reply
6/10hw/i386/acpi: Drop duplicate _UID entry for CXL root bridgehw/i386/acpi-build.c+0 -11 reply
7/10tests: acpi: Update q35/DSDT.cxl for removed duplicate UIDtests/data/acpi/q35/DSDT.cxl tests/qtest/bios-tables-test-allowed-diff.h+0 -11 reply
8/10qemu/bswap: Add const_le64()include/qemu/bswap.h+11 -11 reply
9/10qemu/uuid: Add UUID static initializerinclude/qemu/uuid.h+12 -01 reply
10/10hw/cxl/mailbox: Use new UUID network order define for cel_uuidhw/cxl/cxl-device-utils.c hw/cxl/cxl-mailbox-utils.c include/hw/cxl/cxl_device.h+8 -91 reply

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchIra WeinyGregory PricePhilippe Mathieu-DaudéDavidlohr BuesoPeter MaydellFan Ni
1/10R-b R-b T-b R-b
2/10R-b R-b T-b T-b R-b R-b
3/10R-b R-b R-b
4/10R-b R-b
5/10R-b T-b R-b
6/10R-b R-b T-b R-b
7/10R-b T-b R-b
8/10R-b T-b R-b R-b R-b
9/10R-b T-b R-b
10/10R-b T-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v4 thread

Cover letter [PATCH v4 00/10] hw/cxl: CXL emulation cleanups and minor fixes for upstream

Since V3:
- Rebased on upstream today.
- Refreshed DSDT.cxl due to changes upstream.
- Picked up tags from Gregory.

A small collection of misc fixes and tidying up pulled out from various series. I've pulled this to the top of my queue of CXL related work as they stand fine on their own and it will reduce the noise in the larger patch sets if these go upstream first.

Gregory's patches were posted as part of his work on adding volatile support.
https://lore.kernel.org/linux-cxl/[email protected]/
https://lore.kernel.org/linux-cxl/[email protected]/
I might propose this for upstream inclusion this cycle, but testing is currently limited by lack of suitable kernel support.

Ira's patches were part of his event injection series.
https://lore.kernel.org/linux-cxl/[email protected]/
Intent is to propose for upstream the rest of that series shortly after some minor changes from earlier review.

My five patches have not previously been posted before this series.

Baseline: 6661b8c7fe "Merge tag 'pull-ppc-20230205' of https://gitlab.com/danielhb/qemu into staging"

Gregory Price (2):
hw/cxl: set cxl-type3 device type to PCI_CLASS_MEMORY_CXL hw/cxl: Add CXL_CAPACITY_MULTIPLIER definition

Ira Weiny (3):
qemu/bswap: Add const_le64()
qemu/uuid: Add UUID static initializer hw/cxl/mailbox: Use new UUID network order define for cel_uuid

Jonathan Cameron (5):
hw/mem/cxl_type3: Improve error handling in realize() hw/pci-bridge/cxl_downstream: Fix type naming mismatch tests/acpi: Allow update of q35/DSDT.cxl hw/i386/acpi: Drop duplicate _UID entry for CXL root bridge
tests: acpi: Update q35/DSDT.cxl for removed duplicate UID

 hw/cxl/cxl-device-utils.c      |   2 +-
 hw/cxl/cxl-mailbox-utils.c     |  28 +++++++++++++++-------------
 hw/i386/acpi-build.c           |   1 -
 hw/mem/cxl_type3.c             |  15 +++++++++++----
 hw/pci-bridge/cxl_downstream.c |   2 +-
 include/hw/cxl/cxl_device.h    |   2 +-
 include/qemu/bswap.h           |  12 +++++++++++-
 include/qemu/uuid.h            |  12 ++++++++++++
 tests/data/acpi/q35/DSDT.cxl   | Bin 9578 -> 9564 bytes
 9 files changed, 52 insertions(+), 22 deletions(-)
Signature · 1 line
2.37.2