mbox series

[v3,0/4] cxl: Dirty shutdown followups

Message ID 20250219030520.237207-1-dave@stgolabs.net
Headers show
Series cxl: Dirty shutdown followups | expand

Message

Davidlohr Bueso Feb. 19, 2025, 3:05 a.m. UTC
Changes from v2:
  - remove leftover cxl_gpf_device() declaration
  
Changes from v1 (https://lore.kernel.org/linux-cxl/20250205040842.1253616-1-dave@stgolabs.net/):
  - crated a new cxl_gpf_get_dvsec() helper to share for port and dev gpf (DaveJ)
  - renamed cxl_dirty_shutdown_state() to cxl_arm_dirty_shutdown() (DaveJ)
  - exported the cxl_gpf_get_dvsec() symbol used outside of core (Yi, DaveJ)
  - introduced CXL_INVALID_DIRTY_SHUTDOWN_COUNT (DaveJ)
  - use u64 for cxl_nvd->dirty_shutdowns,
  - rename to cxl_nvdimm_setup_dirty_tracking() and use return statements (DaveJ)
  - picked up review tag in patch 4 (DaveJ)

Hi,

Some followup patches to the GPF work. First two patches are from feedback
provided by DaveJ. The third patch adds a $platform/dirty_shutdown sysfs
attribute to expose the count to userspace. Fourth patch adds support
emulating the set shutdown state command for the mock device.

Applies against the -next branch of cxl.git.

Thanks!

Davidlohr Bueso (4):
  cxl/pci: Introduce cxl_gpf_get_dvsec()
  cxl/pmem: Rename cxl_dirty_shutdown_state()
  cxl/pmem: Export dirty shutdown count via sysfs
  tools/testing/cxl: Set Shutdown State support

 Documentation/ABI/testing/sysfs-bus-cxl       | 12 +++
 Documentation/driver-api/cxl/maturity-map.rst |  2 +-
 drivers/cxl/core/mbox.c                       | 25 +++++-
 drivers/cxl/core/pci.c                        | 38 ++++++---
 drivers/cxl/cxl.h                             |  3 +
 drivers/cxl/cxlmem.h                          | 15 +++-
 drivers/cxl/pmem.c                            | 77 +++++++++++++++++--
 tools/testing/cxl/test/mem.c                  | 23 ++++++
 8 files changed, 173 insertions(+), 22 deletions(-)

--
2.39.5