mbox series

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

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

Message

Davidlohr Bueso Feb. 20, 2025, 10:02 p.m. UTC
Changes from v4:
  - use %llu on the correct sysfs file in patch 3 (Jonathan)
  - s/cxl_nvdimm_setup_dirty_tracking()/cxl_nvdimm_arm_dirty_shutdown_tracking()
    in patch 3 which was feedback from v1.

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                        | 30 +++++---
 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, 165 insertions(+), 22 deletions(-)

Comments

Dave Jiang Feb. 21, 2025, 4:30 p.m. UTC | #1
On 2/20/25 3:02 PM, Davidlohr Bueso wrote:
> Changes from v4:
>   - use %llu on the correct sysfs file in patch 3 (Jonathan)
>   - s/cxl_nvdimm_setup_dirty_tracking()/cxl_nvdimm_arm_dirty_shutdown_tracking()
>     in patch 3 which was feedback from v1.

Applied to cxl/next

> 
> 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                        | 30 +++++---
>  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, 165 insertions(+), 22 deletions(-)
>