Skip to content

Enumerate HDM Decoder registers

Ben Widawsky linux-acpi linux-cxl linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7cxl/mem: Use dev instead of pdev->devdrivers/cxl/mem.c+1 -11 reply
2/7cxl/mem: Split creation from mapping in probedrivers/cxl/mem.c+40 -241 reply
3/7cxl/mem: Move register locator logic into reg setupdrivers/cxl/mem.c+68 -671 reply
4/7cxl/mem: Get rid of @cxlm.basedrivers/cxl/mem.c drivers/cxl/mem.h+11 -154 replies
5/7cxl/mem: Move device register setupdrivers/cxl/mem.c+9 -101 reply
6/7cxl/mem: Create a helper to setup device regsdrivers/cxl/mem.c+23 -152 replies
7/7cxl: Add HDM decoder capbilitiesdrivers/cxl/core.c drivers/cxl/cxl.h drivers/cxl/mem.c +1 more+155 -44 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchJonathan Cameron
1/7A-b
2/7R-b
3/7R-b
4/7A-b A-b
5/7A-b
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] Enumerate HDM Decoder registers

The arbiter of a Host-managed Device Memory (HDM) region is an "HDM Decoder". An HDM decoder is defined in the Compute eXpress Link (CXL) specification as hardware that handles the routing of memory ranges controlled by CXL devices in a linear, or interleaved fashion.

HDM decoders are not specific to CXL devices and therefore live in a different part of the MMIO space for CXL *components*. The CXL component registers are found and mapped in a similar way to the device registers and so a lot of this series is refactoring to try to easily add the new register block type.

Management of HDM decoders is not handled in this series. This work is the foundation for the eventual integration with libnvdimm. That integration will enable CXL persistent and volatile capacities to be managed by Linux and gain use of all the related existing infrastructure.

These patches go on top of the reworks and improvements recently submitted by Dan [1].

[1]: https://lore.kernel.org/linux-cxl/161728744224.2474040.12854720917440712854.stgit@dwillia2-desk3.amr.corp.intel.com/T/#t

Ben Widawsky (7):
cxl/mem: Use dev instead of pdev->dev cxl/mem: Split creation from mapping in probe cxl/mem: Move register locator logic into reg setup cxl/mem: Get rid of @cxlm.base
cxl/mem: Move device register setup cxl/mem: Create a helper to setup device regs
cxl: Add HDM decoder capbilities

 drivers/cxl/core.c |  73 +++++++++++++++
 drivers/cxl/cxl.h  |  48 ++++++++++
 drivers/cxl/mem.c  | 225 +++++++++++++++++++++++++++------------------
 drivers/cxl/mem.h  |   2 -
 drivers/cxl/pci.h  |   1 +
 5 files changed, 260 insertions(+), 89 deletions(-)

base-commit: 24ca2d6ff18cc59c14c0aff65025b0cc11a72722

Signature · 1 line
2.31.1