Skip to content

cxl: Pull out mailbox bits to be independent of cxl_dev_state

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. v4 Latest3 patches 11 repliesIn review
  2. v33 patches 8 repliesSuperseded
  3. v22 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches10 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cxl: move cxl headers to new include/cxl/ directoryMAINTAINERS drivers/acpi/apei/einj-cxl.c drivers/acpi/apei/ghes.c +4 more+5 -63 replies
2/3cxl: Move mailbox related bits to the same contextdrivers/cxl/core/mbox.c drivers/cxl/core/memdev.c drivers/cxl/cxlmem.h +4 more+176 -726 replies
3/3cxl: Convert cxl_internal_send_cmd() to use 'struct cxl_mailbox' as inputdrivers/cxl/core/mbox.c drivers/cxl/core/memdev.c drivers/cxl/cxlmem.h +3 more+54 -441 reply

Reviews trailers per patch

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

PatchFan NiAlejandro LuceroAlison SchofieldJonathan CameronIra Weiny
1/3R-b R-b R-b
2/3R-b R-b R-b R-b R-b
3/3R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/3] cxl: Pull out mailbox bits to be independent of cxl_dev_state

Hi Alejandro,
Please feel free to pull in the patches in this series into your type2 series. Although I may just pull these into the 6.12 merge window to make things easier for you.

The patches pulls out the related mailbox bits and form a 'struct cxl_mailbox'. In v2 Jonathan suggested that we keep cxl_mbox embedded. So I moved it back to be embedded. For the type2 devices that does not use mailbox, it can just not have the mailbox struct at all.

v3
- moved the other cxl headers into the linux/cxl directory.
- Moved rcuwait.h header into mailbox.h (Alison)

v4
- Move headers to include/cxl (Dan)
- Move header moving patch to 1/3 (Dan)
- Fix cxl_mailbox_init input param check. (Alison)

---

Dave Jiang (3):
cxl: move cxl headers to new linux/cxl/ directory
cxl: Move mailbox related bits to the same context
cxl: Convert cxl_internal_send_cmd() to use 'struct cxl_mailbox' as input

 MAINTAINERS                                |  3 +-
 drivers/acpi/apei/einj-cxl.c               |  2 +-
 drivers/acpi/apei/ghes.c                   |  2 +-
 drivers/cxl/core/mbox.c                    | 91 ++++++++++++++++++++++++++++++++------------------
 drivers/cxl/core/memdev.c                  | 41 +++++++++++++----------
 drivers/cxl/core/port.c                    |  2 +-
 drivers/cxl/cxlmem.h                       | 25 ++++++--------
 drivers/cxl/pci.c                          | 82 ++++++++++++++++++++++++++++++---------------
 drivers/cxl/pmem.c                         | 10 ++++--
 drivers/cxl/security.c                     | 23 +++++++------
 include/{linux/einj-cxl.h => cxl/einj.h}   |  0
 include/{linux/cxl-event.h => cxl/event.h} |  0
 include/cxl/mailbox.h                      | 28 ++++++++++++++++
 tools/testing/cxl/test/mem.c               | 44 ++++++++++++++++++------
 14 files changed, 233 insertions(+), 120 deletions(-)