mbox series

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

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

Message

Dave Jiang July 24, 2024, 6:55 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'. A pointer
is created to point to that in 'struct cxl_dev_state'. The cxl_mailbox is independently
allocated if the mailbox register is discovered. This should separate the mailbox out
to be used by CXL type3 and type2 devices.

---

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      | 139 ++++++++++++++++++++++++++++++++++++++++++++++++---------------
 drivers/cxl/core/memdev.c    |  55 ++++++++++++++++---------
 drivers/cxl/cxlmem.h         |  22 +++++-----
 drivers/cxl/pci.c            |  88 +++++++++++++++++++++++++++-------------
 drivers/cxl/pmem.c           |  13 ++++--
 drivers/cxl/security.c       |  23 ++++++-----
 include/linux/cxl/mailbox.h  |  28 +++++++++++++
 tools/testing/cxl/test/mem.c |  46 ++++++++++++++++-----
 9 files changed, 301 insertions(+), 114 deletions(-)

Comments

Alejandro Lucero Palau Aug. 13, 2024, 7:11 a.m. UTC | #1
On 7/24/24 19:55, Dave Jiang wrote:
> Hi Alejandro,
> Please feel free to pull in the patches in this series into your type2 series.


Hi Dave,


Working on v3 for the Type2 support where I count on these changes being 
applied.

Thanks!


> The patches pulls out the related mailbox bits and form a 'struct cxl_mailbox'. A pointer
> is created to point to that in 'struct cxl_dev_state'. The cxl_mailbox is independently
> allocated if the mailbox register is discovered. This should separate the mailbox out
> to be used by CXL type3 and type2 devices.
>
> ---
>
> 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      | 139 ++++++++++++++++++++++++++++++++++++++++++++++++---------------
>   drivers/cxl/core/memdev.c    |  55 ++++++++++++++++---------
>   drivers/cxl/cxlmem.h         |  22 +++++-----
>   drivers/cxl/pci.c            |  88 +++++++++++++++++++++++++++-------------
>   drivers/cxl/pmem.c           |  13 ++++--
>   drivers/cxl/security.c       |  23 ++++++-----
>   include/linux/cxl/mailbox.h  |  28 +++++++++++++
>   tools/testing/cxl/test/mem.c |  46 ++++++++++++++++-----
>   9 files changed, 301 insertions(+), 114 deletions(-)
>