Skip to content

CDAT updates and fixes

Robert Richter linux-acpi linux-cxl linux-mm lkml llvm oe-kbuild-all 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 2 repliesIn review
  2. v33 patches 5 repliesSuperseded
  3. v23 patches 9 repliesSuperseded

Changes in v4 from the cover letter

* updated the description of cdat_doe_rsp and DOE CDAT entries
* changed cast in cxl_cdat_read_table() to (union cdat_data *)
* modified checks around CDAT entry length
* added a check to warn about a malformed CDAT table length

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cxl/pci: Rename DOE mailbox handle to doe_mbdrivers/cxl/core/pci.c+10 -100 replies
2/3cxl/pci: Get rid of pointer arithmetic reading CDAT tabledrivers/cxl/core/pci.c drivers/cxl/cxlpci.h+65 -362 replies
3/3lib/firmware_table: Provide buffer length argument to cdat_table_parse()drivers/acpi/tables.c drivers/cxl/core/cdat.c drivers/cxl/core/pci.c +2 more+24 -112 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDave JiangJonathan Cameron
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/3] CDAT updates and fixes

Some CDAT related updates and fixes. Patch #3 does not depend on the previous patches and could be applied separately.

Changelog:

v4 (Jonathan's review comments):
* updated the description of cdat_doe_rsp and DOE CDAT entries
* changed cast in cxl_cdat_read_table() to (union cdat_data *)
* modified checks around CDAT entry length
* added a check to warn about a malformed CDAT table length

v3 (Jonathan's review comments):
* added Reviewed-by tags
* made entry_handle unsigned
* updated patch decriptions for #2 and #3
* removed zero-sized arrays, use variable size arrays as data buffer, introduced union cdat_data for parsing CDAT structs

v2:
* rebased onto cxl/next (e16bf7e015d7)
* renamed struct cdat_doe to struct cdat_doe_rsp and also local pointers accordingly to buf/rsp.
* added comment that the CDAT table has space for a DOE header at the beginning
* use DECLARE_FLEX_ARRAY() macro in struct cdat_doe_rsp
* moved the rename to doe_mb variable into separate patch
* added Reviewed-by tag
* added patch: lib/firmware_table: Provide buffer length argument to cdat_table_parse()

Robert Richter (3):
cxl/pci: Rename DOE mailbox handle to doe_mb cxl/pci: Get rid of pointer arithmetic reading CDAT table lib/firmware_table: Provide buffer length argument to
cdat_table_parse()

 drivers/acpi/tables.c    |  2 +-
 drivers/cxl/core/cdat.c  |  6 +--
 drivers/cxl/core/pci.c   | 99 ++++++++++++++++++++++------------------
 drivers/cxl/cxlpci.h     | 24 ++++++++++
 include/linux/fw_table.h |  4 +-
 lib/fw_table.c           | 15 ++++--
 6 files changed, 96 insertions(+), 54 deletions(-)

base-commit: 6be99530c92c6b8ff7a01903edc42393575ad63b

Signature · 1 line
2.39.2