Skip to content

cxl: Fix memdev qos_class sysfs attributes

Dave Jiang linux-cxl 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 2 repliesIn review
  2. v44 patches 4 repliesSuperseded
  3. v33 patches 11 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v23 patches2 repliesSuperseded

Changes in v5 from the cover letter

- Only update the perf sysfs groups (Dan)
- Remove unnecessary type cast (Jonathan)

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4cxl: Change 'struct cxl_memdev_state' *_perf_list to single 'struct cxl_dpa_perf'drivers/cxl/core/cdat.c drivers/cxl/core/mbox.c drivers/cxl/cxlmem.h +1 more+34 -900 replies
2/4cxl: Remove unnecessary type cast in cxl_qos_class_verify()drivers/cxl/core/cdat.c+1 -20 replies
3/4cxl: Fix sysfs export of qos_class for memdevdrivers/cxl/core/cdat.c drivers/cxl/core/memdev.c drivers/cxl/cxl.h +1 more+66 -360 replies
4/4cxl/test: Add support for qos_class checkingtools/testing/cxl/Kbuild tools/testing/cxl/test/cxl.c tools/testing/cxl/test/mock.c +1 more+70 -90 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJonathan Cameron
SeriesR-b
1/4
2/4
3/4
4/4

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

Read the v5 thread

Cover letter [PATCH v5 0/4] cxl: Fix memdev qos_class sysfs attributes

v5:
- Only update the perf sysfs groups (Dan)
- Remove unnecessary type cast (Jonathan)

v4:
- Fix resetting of dpa_perf (Wonjae)
- Change cxl_qos_match() to return bool. (Jonathan)
- Remove unnecessary void * casting. (Jonathan)
- Replace open code with sysfs_update_groups() helper. (Jonathan)

This series provides fixes to the memdev qos_class sysfs attributes. The current code emits duplicate sysfs attribute under the same directory and the ram qos_class clobbers the pmem qos_class. Move the attributes under static definitions and allow the attributes to show up under ram and pmem directory individually.

The series also adds cxl_test support in order to allow CXL CLI add a unit test for qos_class attributes.