From: Dave Jiang <dave.jiang@intel.com>
To: linux-cxl@vger.kernel.org
Cc: alison.schofield@intel.com
Subject: [NDCTL PATCH resend 0/5] ndctl: Add support and test for CXL features driver
Date: Wed, 22 Jan 2025 17:24:49 -0700 [thread overview]
Message-ID: <20250123002530.2762440-1-dave.jiang@intel.com> (raw)
resend due to missing parts in last patch. Forgot to do stg refresh.
The series provides support of libcxl enumerating the 'features' device
exported by the CXL kernel driver. It discovers the char device major
and minor numbers for the CXL features device in order to allow issuing
of ioctls to the device. libcxl will also associate the 'features' device
with an 'endpoint' port device in order to allow finding the appropriate
char dev from the endpoint device. It feels appropriate to associate
with the endpoint device rather than the memdev since the features device
comes out of the mailbox of a CLX device that may or may not be a memdev.
A unit test is added to locate a feature device exported by the cxl_test
kernel module and issue all the supported ioctls to verify that all the
ioctl paths are working as expected.
Dave Jiang (5):
cxl: Add cxl_bus_get_by_provider()
cxl: Enumerate features 'devices'
cxl: Add get major and minor for cxl features device
cxl: Associate CXL features device with CXL endpoint
cxl/test: Add test for cxl features device
cxl/lib/libcxl.c | 308 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cxl/lib/libcxl.sym | 13 +++
cxl/lib/private.h | 16 ++++
cxl/libcxl.h | 17 ++++
test/cxl-features.sh | 17 ++++
test/fwctl.c | 362 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
test/meson.build | 16 ++++
7 files changed, 749 insertions(+)
next reply other threads:[~2025-01-23 0:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-23 0:24 Dave Jiang [this message]
2025-01-23 0:24 ` [NDCTL PATCH resend 1/5] cxl: Add cxl_bus_get_by_provider() Dave Jiang
2025-01-23 0:24 ` [NDCTL PATCH resend 2/5] cxl: Enumerate features 'devices' Dave Jiang
2025-01-23 0:24 ` [NDCTL PATCH resend 3/5] cxl: Add get major and minor for cxl features device Dave Jiang
2025-01-23 0:24 ` [NDCTL PATCH resend 4/5] cxl: Associate CXL features device with CXL endpoint Dave Jiang
2025-01-23 0:24 ` [NDCTL PATCH resend 5/5] cxl/test: Add test for cxl features device Dave Jiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250123002530.2762440-1-dave.jiang@intel.com \
--to=dave.jiang@intel.com \
--cc=alison.schofield@intel.com \
--cc=linux-cxl@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox