From: "Verma, Vishal L" <vishal.l.verma@intel.com>
To: "Schofield, Alison" <alison.schofield@intel.com>,
"nvdimm@lists.linux.dev" <nvdimm@lists.linux.dev>
Cc: "linux-cxl@vger.kernel.org" <linux-cxl@vger.kernel.org>
Subject: Re: [ndctl PATCH 2/2] test/daxctl-create.sh: use CXL DAX regions instead of efi_fake_mem
Date: Wed, 4 Sep 2024 00:34:07 +0000 [thread overview]
Message-ID: <a7d589e495c615dc61c9fc2a70b6ed3ccd535c0f.camel@intel.com> (raw)
In-Reply-To: <519161e23a43e530dbcffac203ecbbb897aa5342.1724813664.git.alison.schofield@intel.com>
On Tue, 2024-08-27 at 20:14 -0700, alison.schofield@intel.com wrote:
> From: Alison Schofield <alison.schofield@intel.com>
>
> This test tries to use DAX regions created from efi_fake_mem devices.
> A recent kernel change removed efi_fake_mem support causing this test
> to SKIP because no DAX regions can be found.
>
> Alas, a new source of DAX regions is available: CXL. Use that now.
> Other than selecting a different region provider, the functionality
> of the test remains the same.
>
> Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Looks good,
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
> ---
> test/daxctl-create.sh | 18 +++++++-----------
> 1 file changed, 7 insertions(+), 11 deletions(-)
>
> diff --git a/test/daxctl-create.sh b/test/daxctl-create.sh
> index d968e7bedd82..1ef70f2ff186 100755
> --- a/test/daxctl-create.sh
> +++ b/test/daxctl-create.sh
> @@ -7,6 +7,9 @@ rc=77
>
> trap 'cleanup $LINENO' ERR
>
> +modprobe -r cxl_test
> +modprobe cxl_test
> +
> cleanup()
> {
> printf "Error at line %d\n" "$1"
> @@ -18,18 +21,10 @@ find_testdev()
> {
> local rc=77
>
> - # The hmem driver is needed to change the device mode, only
> - # kernels >= v5.6 might have it available. Skip if not.
> - if ! modinfo dax_hmem; then
> - # check if dax_hmem is builtin
> - if [ ! -d "/sys/module/device_hmem" ]; then
> - printf "Unable to find hmem module\n"
> - exit $rc
> - fi
> - fi
> + # find a victim region provided by cxl_test
> + bus="$("$CXL" list -b "$CXL_TEST_BUS" | jq -r '.[] | .bus')"
> + region_id="$("$DAXCTL" list -R | jq -r ".[] | select(.path |
> contains(\"$bus\")) | .id")"
>
> - # find a victim region provided by dax_hmem
> - region_id="$("$DAXCTL" list -R | jq -r '.[] | select(.path |
> contains("hmem")) | .id')"
> if [[ ! "$region_id" ]]; then
> printf "Unable to find a victim region\n"
> exit "$rc"
> @@ -413,4 +408,5 @@ daxctl_test5
> daxctl_test6
> daxctl_test7
> reset_dev
> +modprobe -r cxl_test
> exit 0
prev parent reply other threads:[~2024-09-04 0:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-28 3:14 [ndctl PATCH 0/2] Use CXL regions in daxctl-create unit test alison.schofield
2024-08-28 3:14 ` [ndctl PATCH 1/2] test/daxctl-create.sh: use bash math syntax to find available size alison.schofield
2024-09-03 21:28 ` Verma, Vishal L
2024-08-28 3:14 ` [ndctl PATCH 2/2] test/daxctl-create.sh: use CXL DAX regions instead of efi_fake_mem alison.schofield
2024-08-29 16:55 ` Dan Williams
2024-08-29 20:50 ` Alison Schofield
2024-09-04 0:34 ` Verma, Vishal L [this message]
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=a7d589e495c615dc61c9fc2a70b6ed3ccd535c0f.camel@intel.com \
--to=vishal.l.verma@intel.com \
--cc=alison.schofield@intel.com \
--cc=linux-cxl@vger.kernel.org \
--cc=nvdimm@lists.linux.dev \
/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