mbox series

[0/2,v2] cxl: Pull out mailbox bits to be independent of cxl_dev_state

Message ID 20240827215116.536126-1-dave.jiang@intel.com
Headers show
Series cxl: Pull out mailbox bits to be independent of cxl_dev_state | expand

Message

Dave Jiang Aug. 27, 2024, 9:49 p.m. UTC
Hi Alejandro,
Please feel free to pull in the patches in this series into your type2 series.

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.

---

Dave Jiang (2):
      cxl: Move mailbox related bits to the same context
      cxl: Convert cxl_internal_send_cmd() to use 'struct cxl_mailbox' as input

 MAINTAINERS                  |  1 +
 drivers/cxl/core/mbox.c      | 91 +++++++++++++++++++++++++++++++++++++++++-----------------------
 drivers/cxl/core/memdev.c    | 41 +++++++++++++++++------------
 drivers/cxl/cxlmem.h         | 22 +++++++---------
 drivers/cxl/pci.c            | 82 ++++++++++++++++++++++++++++++++++++++-------------------
 drivers/cxl/pmem.c           | 10 ++++---
 drivers/cxl/security.c       | 23 ++++++++--------
 include/linux/cxl/mailbox.h  | 27 +++++++++++++++++++
 tools/testing/cxl/test/mem.c | 44 +++++++++++++++++++++++--------
 9 files changed, 228 insertions(+), 113 deletions(-)