Skip to content

hw/cxl: Fix decoder commit and uncommit handling

Jonathan Cameron linux-cxl qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw/cxl: Fix endian handling for decoder commit.hw/cxl/cxl-component-utils.c hw/mem/cxl_type3.c+10 -91 reply
2/2hw/cxl: Fix incorrect reset of commit and associated clearing of committed.hw/cxl/cxl-component-utils.c hw/mem/cxl_type3.c+25 -23 replies
2/2hw/cxl: Fix incorrect reset of commit and associated clearing of committed.hw/cxl/cxl-component-utils.c hw/mem/cxl_type3.c+25 -20 replies

Reviews trailers per patch

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

PatchPhilippe Mathieu-DaudéFan NiDave Jiang
1/2R-b
2/2R-b T-b R-b
2/2R-b T-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 3 reviewers.

Read the v1 thread

Cover letter [RESEND PATCH 0/2] hw/cxl: Fix decoder commit and uncommit handling

Resending because all but patch 1 seem to have failed to make it out of our network.

Issue reported in discussion of:
https://lore.kernel.org/all/[email protected]/

The committed bit for HDM decoders is expected reset when commit transitions from 1->0. Whilst looking at that it was noticed that hardware was resetting the commit bit which is not an option allowed by the CXL spec.

In common with many other areas the code did not take into account big endian architectures, so fix that whilst we are here.

Note testing this exposed a kernel bug around repeated attempts to clear a decoder out of order. That's been reported but not yet fixed.

Jonathan Cameron (2):
hw/cxl: Fix endian handling for decoder commit. hw/cxl: Fix incorrect reset of commit and associated clearing of
committed.

 hw/cxl/cxl-component-utils.c | 14 ++++++++------
 hw/mem/cxl_type3.c           | 28 +++++++++++++++++++++++++---
 2 files changed, 33 insertions(+), 9 deletions(-)
Signature · 1 line
2.37.2