diff options
author | 2025-03-07 13:55:31 -0700 | |
---|---|---|
committer | 2025-03-17 14:41:36 -0300 | |
commit | 858ce2f56b5253063f61f6b1c58a6dbf5d71da0b (patch) | |
tree | da88bcfb46f33a7e2f53a72dc7dd0800e89f9d7c /tools | |
parent | Merge branch 'for-6.15/features' into fwctl (diff) | |
download | wireguard-linux-858ce2f56b5253063f61f6b1c58a6dbf5d71da0b.tar.xz wireguard-linux-858ce2f56b5253063f61f6b1c58a6dbf5d71da0b.zip |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/cxl/test/mem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/cxl/test/mem.c b/tools/testing/cxl/test/mem.c index 4809a90ff9b6..848db399102c 100644 --- a/tools/testing/cxl/test/mem.c +++ b/tools/testing/cxl/test/mem.c @@ -1646,6 +1646,10 @@ static int cxl_mock_mem_probe(struct platform_device *pdev) if (rc) return rc; + rc = devm_cxl_setup_fwctl(cxlmd); + if (rc) + dev_dbg(dev, "No CXL FWCTL setup\n"); + cxl_mem_get_event_records(mds, CXLDEV_EVENT_STATUS_ALL); return 0; |