[PATCH RFC 0/2] cxl: Further clean up of memdev state

Ira Weiny
2025-01-28T18:51:10Z

Dan has identified issues with the way the CXL core manages data within
the cxl_memdev_state object.[1] Rather than just change DCD, clean up
cxl_memdev_state prior to DCD so the addition of DCD is consistent.

These clean ups are based on top of Dan's re-architect of the handling
of DPA partitions. [2] They are intended to land after his v3 of that
set which is due out.

Link: https://lore.kernel.org/all/67871f05cd767_20f32947f@dwillia2-xfh.jf.intel.com.notmuch/ [1]
Link: https://lore.kernel.org/all/173753635014.3849855.17902348420186052714.stgit@dwillia2-xfh.jf.intel.com/ [2]
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
---
Ira Weiny (2):
cxl/memdev: Remove unused partition values
cxl/memdev: Remove temporary variables from cxl_memdev_state

drivers/cxl/core/mbox.c | 81 ++++++++++++++++----------------------------
drivers/cxl/cxlmem.h | 29 ++++++----------
drivers/cxl/pci.c | 13 ++++---
tools/testing/cxl/test/mem.c | 13 ++++---
4 files changed, 59 insertions(+), 77 deletions(-)
---
base-commit: 17f710b7327024d16b9c98672462d603aa821920
change-id: 20250116-rfc-rearch-mem-res-4cb9a9a8226a

Best regards,
--
Ira Weiny <ira.weiny@intel.com>