]> git.ipfire.org Git - thirdparty/linux.git/commit
cxl: Move mailbox related bits to the same context
authorDave Jiang <dave.jiang@intel.com>
Thu, 5 Sep 2024 22:35:46 +0000 (15:35 -0700)
committerDave Jiang <dave.jiang@intel.com>
Thu, 12 Sep 2024 15:38:01 +0000 (08:38 -0700)
commit8d8081cecfb9940beeb4a8a700db34e615a96056
tree5ec4230778a9d3d11335178a8eb43387719d77dd
parent40a895fd9a358eea16901026360bd2cd3ca691a7
cxl: Move mailbox related bits to the same context

Create a new 'struct cxl_mailbox' and move all mailbox related bits to
it. This allows isolation of all CXL mailbox data in order to export
some of the calls to external kernel callers and avoid exporting of CXL
driver specific bits such has device states. The allocation of
'struct cxl_mailbox' is also split out with cxl_mailbox_init() so the
mailbox can be created independently.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alejandro Lucero <alucerop@amd.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://patch.msgid.link/20240905223711.1990186-3-dave.jiang@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/mbox.c
drivers/cxl/core/memdev.c
drivers/cxl/cxlmem.h
drivers/cxl/pci.c
drivers/cxl/pmem.c
include/cxl/mailbox.h [new file with mode: 0644]
tools/testing/cxl/test/mem.c