mbox series

[v4,0/4] cxl: Fix memdev qos_class sysfs attributes

Message ID 20240205193218.1657243-1-dave.jiang@intel.com
Headers show
Series cxl: Fix memdev qos_class sysfs attributes | expand

Message

Dave Jiang Feb. 5, 2024, 7:30 p.m. UTC
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.