]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cxl: Add FWCTL support to CXL
authorDave Jiang <dave.jiang@intel.com>
Fri, 7 Mar 2025 20:55:31 +0000 (13:55 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 17 Mar 2025 17:41:36 +0000 (14:41 -0300)
commit858ce2f56b5253063f61f6b1c58a6dbf5d71da0b
treeda88bcfb46f33a7e2f53a72dc7dd0800e89f9d7c
parent15a26c223fff58d9fa4ada12a8c35697f8ecdf6c
cxl: Add FWCTL support to CXL

Add fwctl support code to allow sending of CXL feature commands from
userspace through as ioctls via FWCTL. Provide initial setup bits. The
CXL PCI probe function will call devm_cxl_setup_fwctl() after the
cxl_memdev has been enumerated in order to setup FWCTL char device under
the cxl_memdev like the existing memdev char device for issuing CXL raw
mailbox commands from userspace via ioctls.

Link: https://patch.msgid.link/r/20250307205648.1021626-2-dave.jiang@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Li Ming <ming.li@zohomail.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/cxl/Kconfig
drivers/cxl/core/features.c
drivers/cxl/pci.c
include/cxl/features.h
include/uapi/fwctl/fwctl.h
tools/testing/cxl/test/mem.c