Linux CXL
 help / color / mirror / Atom feed
* [PATCH v5 0/6] Add sanity check for interleave setup
@ 2022-08-25 16:07 Dave Jiang
  2022-08-25 16:07 ` [PATCH v5 1/6] cxl: Add check for result of interleave ways plus granularity combo Dave Jiang
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Dave Jiang @ 2022-08-25 16:07 UTC (permalink / raw)
  To: linux-cxl
  Cc: dan.j.williams, vishal.l.verma, ira.weiny, alison.schofield,
	Jonathan.Cameron

The small series adds sanity check for the combination of interleave ways
and interleave granularity during region and port configuration. The
calculation references CXL spec 3.0 8.2.4.19.13 implementation note #3. The
checks also added HDM CAP retrieval for the support of new interleave ways
where 3, 6, and 12 ways support as well as 16 ways support.

v5:
- Various spelling errors (Jonathan)
- Make "CXL spec rev3.0" changes throughout to be consistent (Jonathan)
- Change CXL_HDM_INTERLEAVE_CAP_DEFAULT to CXL_HDM_INTERLEAVE_CAP_BASELINE
  (Jonathan)
- Fix up commit header in reference to cxl_interleave_verify() to
  cxl_interleave_capable() (Jonathan)
- Move dev_set_drvdata() for cxl_test to first patch (Jonathan)

v4:
- Add documentation for sysfs entries (Dan)
- Remove unneeded checks for drvdata validity (Dan)
- Add renaming of cxl_port_attribute_groups to cxl_port_dynamic_attr_groups
  (Dan)

  v3:
  - Move cxl_interleave_capable() to core/region.c. (Dan)
  - Open code verify of interleave ways against cap mask. (Dan)

  v2:
  - Change cxl_interleave_verify() to cxl_interleave_capable(). (Dan)
  - Move error output inside verify function. (Dan)
  - Remove unneeded enums. (Dan)
  - Use is_power_of_2() to detect encoded interleave ways. (Dan)
  - Change iw to eiw and ig to eig for encoded values. (Alison)
  - Change interleave capabilities to mask for easier comparison. (Dan)
  - Change valid_interleave() to valid_interleave_ways()
  - Add setting fo interleave_cap to cxl_test. (Dan)

---

Dave Jiang (6):
      cxl: Add check for result of interleave ways plus granularity combo
      cxl: Add CXL spec v3.0 interleave support
      tools/testing/cxl: Add interleave check support to mock cxl port device
      cxl: change cxl_port_attribute_groups naming to avoid confusion
      cxl: export interleave address mask as port sysfs attribute
      cxl: export intereleave capability as port sysfs attribute


 Documentation/ABI/testing/sysfs-bus-cxl | 24 ++++++++++++
 drivers/cxl/core/hdm.c                  |  6 +++
 drivers/cxl/core/region.c               | 50 ++++++++++++++++++++++++-
 drivers/cxl/cxl.h                       |  2 +
 drivers/cxl/cxlmem.h                    |  5 +++
 drivers/cxl/port.c                      | 33 +++++++++++++++-
 tools/testing/cxl/test/cxl.c            |  3 ++
 7 files changed, 120 insertions(+), 3 deletions(-)

base-commit: 1cd8a2537eb07751d405ab7e2223f20338a90506
--


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

end of thread, other threads:[~2022-08-30 15:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-25 16:07 [PATCH v5 0/6] Add sanity check for interleave setup Dave Jiang
2022-08-25 16:07 ` [PATCH v5 1/6] cxl: Add check for result of interleave ways plus granularity combo Dave Jiang
2022-08-30 15:17   ` Jonathan Cameron
2022-08-25 16:07 ` [PATCH v5 2/6] cxl: Add CXL spec v3.0 interleave support Dave Jiang
2022-08-25 16:07 ` [PATCH v5 3/6] tools/testing/cxl: Add interleave check support to mock cxl port device Dave Jiang
2022-08-30 15:16   ` Jonathan Cameron
2022-08-25 16:07 ` [PATCH v5 4/6] cxl: change cxl_port_attribute_groups naming to avoid confusion Dave Jiang
2022-08-25 16:08 ` [PATCH v5 5/6] cxl: export interleave address mask as port sysfs attribute Dave Jiang
2022-08-25 16:08 ` [PATCH v5 6/6] cxl: export intereleave capability " Dave Jiang

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