From: Tom Zanussi <tom.zanussi@linux.intel.com>
To: Jerry Snitselaar <jsnitsel@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>,
linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH] crypto: iaa: Fix some errors in IAA documentation
Date: Mon, 18 Mar 2024 10:40:35 -0500 [thread overview]
Message-ID: <7c6036e55769033d7a5192e4b698d80f560faf10.camel@linux.intel.com> (raw)
In-Reply-To: <20240318064421.833348-1-jsnitsel@redhat.com>
Hi Jerry,
On Sun, 2024-03-17 at 23:44 -0700, Jerry Snitselaar wrote:
> This cleans up the following issues I ran into when trying to use the
> scripts and commands in the iaa-crypto.rst document.
>
> - Fix incorrect arguments being passed to accel-config
> config-wq.
> - Replace --device_name with --driver-name.
> - Replace --driver_name with --driver-name.
> - Replace --size with --wq-size.
> - Add missing --priority argument.
> - Add missing accel-config config-engine command after the
> config-wq commands.
> - Fix wq name passed to accel-config config-wq.
> - Add rmmod/modprobe of iaa_crypto to script that disables,
> then enables all devices and workqueues to avoid enable-wq
> failing with -EEXIST when trying to register to compression
> algorithm.
> - Fix device name in cases where iaa was used instead of iax.
>
Yeah, I have these fixes in my own test scripts as well - I thought I
had updated the docs with them but obviously not :-/
Thanks for noticing/testing and fixing them.
Reviewed-by: Tom Zanussi <tom.zanussi@linux.intel.com>
> Cc: Tom Zanussi <tom.zanussi@linux.intel.com>
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: linux-crypto@vger.kernel.org
> Cc: linux-doc@vger.kernel.org
> Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
> ---
> .../driver-api/crypto/iaa/iaa-crypto.rst | 22 ++++++++++++++---
> --
> 1 file changed, 16 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/driver-api/crypto/iaa/iaa-crypto.rst
> b/Documentation/driver-api/crypto/iaa/iaa-crypto.rst
> index de587cf9cbed..330d35df5f16 100644
> --- a/Documentation/driver-api/crypto/iaa/iaa-crypto.rst
> +++ b/Documentation/driver-api/crypto/iaa/iaa-crypto.rst
> @@ -179,7 +179,9 @@ has the old 'iax' device naming in place) ::
>
> # configure wq1.0
>
> - accel-config config-wq --group-id=0 --mode=dedicated --type=kernel
> --name="iaa_crypto" --device_name="crypto" iax1/wq1.0
> + accel-config config-wq --group-id=0 --mode=dedicated --type=kernel
> --priority=10 --name="iaa_crypto" --driver-name="crypto" iax1/wq1.0
> +
> + accel-config config-engine iax1/engine1.0 --group-id=0
>
> # enable IAA device iax1
>
> @@ -536,12 +538,20 @@ The below script automatically does that::
>
> echo "End Disable IAA"
>
> + echo "Reload iaa_crypto module"
> +
> + rmmod iaa_crypto
> + modprobe iaa_crypto
> +
> + echo "End Reload iaa_crypto module"
> +
> #
> # configure iaa wqs and devices
> #
> echo "Configure IAA"
> for ((i = 1; i < ${num_iaa} * 2; i += 2)); do
> - accel-config config-wq --group-id=0 --mode=dedicated --
> size=128 --priority=10 --type=kernel --name="iaa_crypto" --
> driver_name="crypto" iax${i}/wq${i}
> + accel-config config-wq --group-id=0 --mode=dedicated --wq-
> size=128 --priority=10 --type=kernel --name="iaa_crypto" --driver-
> name="crypto" iax${i}/wq${i}.0
> + accel-config config-engine iax${i}/engine${i}.0 --group-id=0
> done
>
> echo "End Configure IAA"
> @@ -552,10 +562,10 @@ The below script automatically does that::
> echo "Enable IAA"
>
> for ((i = 1; i < ${num_iaa} * 2; i += 2)); do
> - echo enable iaa iaa${i}
> - accel-config enable-device iaa${i}
> - echo enable wq iaa${i}/wq${i}.0
> - accel-config enable-wq iaa${i}/wq${i}.0
> + echo enable iaa iax${i}
> + accel-config enable-device iax${i}
> + echo enable wq iax${i}/wq${i}.0
> + accel-config enable-wq iax${i}/wq${i}.0
> done
>
> echo "End Enable IAA"
prev parent reply other threads:[~2024-03-18 15:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-18 6:44 [PATCH] crypto: iaa: Fix some errors in IAA documentation Jerry Snitselaar
2024-03-18 7:49 ` Jerry Snitselaar
2024-03-18 16:26 ` Tom Zanussi
2024-03-18 17:58 ` Jerry Snitselaar
2024-03-18 19:01 ` Tom Zanussi
2024-03-18 19:46 ` Jerry Snitselaar
2024-03-18 15:40 ` Tom Zanussi [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=7c6036e55769033d7a5192e4b698d80f560faf10.camel@linux.intel.com \
--to=tom.zanussi@linux.intel.com \
--cc=corbet@lwn.net \
--cc=jsnitsel@redhat.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-doc@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