Linux CXL
 help / color / mirror / Atom feed
* [PATCH v4 0/4] cxl: Dirty shutdown followups
@ 2025-02-20  1:36 Davidlohr Bueso
  2025-02-20  1:36 ` [PATCH 1/4] cxl/pci: Introduce cxl_gpf_get_dvsec() Davidlohr Bueso
                   ` (3 more replies)
  0 siblings, 4 replies; 23+ messages in thread
From: Davidlohr Bueso @ 2025-02-20  1:36 UTC (permalink / raw)
  To: dave.jiang, dan.j.williams
  Cc: jonathan.cameron, alison.schofield, ira.weiny, vishal.l.verma,
	seven.yi.lee, ming.li, a.manzanares, fan.ni, anisa.su, dave,
	linux-cxl

Changes from v3 (https://lore.kernel.org/linux-cxl/20250219062832.237881-1-dave@stgolabs.net/):
  - pickup reviews
  - simplify patch 1 (DaveJ)
  - change -1 to ULLONG_MAX in patch 3 (Ira)
  - patch 4 replace int for u8 for shutdown state (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                        | 30 ++++---
 drivers/cxl/cxl.h                             |  3 +
 drivers/cxl/cxlmem.h                          | 15 +++-
 drivers/cxl/pmem.c                            | 79 ++++++++++++++++---
 tools/testing/cxl/test/mem.c                  | 23 ++++++
 8 files changed, 166 insertions(+), 23 deletions(-)

-- 
2.39.5


^ permalink raw reply	[flat|nested] 23+ messages in thread
* [PATCH v5 0/4] cxl: Dirty shutdown followups
@ 2025-02-20 22:02 Davidlohr Bueso
  2025-02-20 22:02 ` [PATCH 3/4] cxl/pmem: Export dirty shutdown count via sysfs Davidlohr Bueso
  0 siblings, 1 reply; 23+ messages in thread
From: Davidlohr Bueso @ 2025-02-20 22:02 UTC (permalink / raw)
  To: dave.jiang, dan.j.williams
  Cc: jonathan.cameron, alison.schofield, ira.weiny, vishal.l.verma,
	seven.yi.lee, ming.li, a.manzanares, fan.ni, anisa.su, dave,
	linux-cxl

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(-)

-- 
2.39.5


^ permalink raw reply	[flat|nested] 23+ messages in thread
* [PATCH v3 0/4] cxl: Dirty shutdown followups
@ 2025-02-19  6:28 Davidlohr Bueso
  2025-02-19  6:28 ` [PATCH 3/4] cxl/pmem: Export dirty shutdown count via sysfs Davidlohr Bueso
  0 siblings, 1 reply; 23+ messages in thread
From: Davidlohr Bueso @ 2025-02-19  6:28 UTC (permalink / raw)
  To: dave.jiang, dan.j.williams
  Cc: jonathan.cameron, alison.schofield, ira.weiny, vishal.l.verma,
	seven.yi.lee, a.manzanares, fan.ni, anisa.su, dave, linux-cxl

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


^ permalink raw reply	[flat|nested] 23+ messages in thread
* [PATCH v2 0/4] cxl: Dirty shutdown followups
@ 2025-02-19  2:14 Davidlohr Bueso
  2025-02-19  2:14 ` [PATCH 3/4] cxl/pmem: Export dirty shutdown count via sysfs Davidlohr Bueso
  0 siblings, 1 reply; 23+ messages in thread
From: Davidlohr Bueso @ 2025-02-19  2:14 UTC (permalink / raw)
  To: dave.jiang, dan.j.williams
  Cc: jonathan.cameron, alison.schofield, ira.weiny, vishal.l.verma,
	seven.yi.lee, a.manzanares, fan.ni, anisa.su, dave, linux-cxl

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)
  - 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                          | 17 +++-
 drivers/cxl/pmem.c                            | 77 +++++++++++++++++--
 tools/testing/cxl/test/mem.c                  | 23 ++++++
 8 files changed, 175 insertions(+), 22 deletions(-)

--
2.39.5


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2025-02-21  0:15 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-20  1:36 [PATCH v4 0/4] cxl: Dirty shutdown followups Davidlohr Bueso
2025-02-20  1:36 ` [PATCH 1/4] cxl/pci: Introduce cxl_gpf_get_dvsec() Davidlohr Bueso
2025-02-20 15:34   ` Dave Jiang
2025-02-20 16:08   ` Ira Weiny
2025-02-20 17:04   ` Jonathan Cameron
2025-02-21  0:15   ` Fan Ni
2025-02-20  1:36 ` [PATCH 2/4] cxl/pmem: Rename cxl_dirty_shutdown_state() Davidlohr Bueso
2025-02-20 16:08   ` Ira Weiny
2025-02-20 17:12   ` Jonathan Cameron
2025-02-20 19:51     ` Davidlohr Bueso
2025-02-20  1:36 ` [PATCH 3/4] cxl/pmem: Export dirty shutdown count via sysfs Davidlohr Bueso
2025-02-20 16:11   ` Ira Weiny
2025-02-20 17:29   ` Jonathan Cameron
2025-02-20 19:28     ` Davidlohr Bueso
2025-02-20  1:36 ` [PATCH 4/4] tools/testing/cxl: Set Shutdown State support Davidlohr Bueso
2025-02-20 16:13   ` Ira Weiny
2025-02-20 17:30   ` Jonathan Cameron
  -- strict thread matches above, loose matches on Subject: below --
2025-02-20 22:02 [PATCH v5 0/4] cxl: Dirty shutdown followups Davidlohr Bueso
2025-02-20 22:02 ` [PATCH 3/4] cxl/pmem: Export dirty shutdown count via sysfs Davidlohr Bueso
2025-02-19  6:28 [PATCH v3 0/4] cxl: Dirty shutdown followups Davidlohr Bueso
2025-02-19  6:28 ` [PATCH 3/4] cxl/pmem: Export dirty shutdown count via sysfs Davidlohr Bueso
2025-02-19 16:44   ` Dave Jiang
2025-02-19 21:15   ` Ira Weiny
2025-02-19  2:14 [PATCH v2 0/4] cxl: Dirty shutdown followups Davidlohr Bueso
2025-02-19  2:14 ` [PATCH 3/4] cxl/pmem: Export dirty shutdown count via sysfs Davidlohr Bueso
2025-02-19  2:34   ` Davidlohr Bueso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox