All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Bartosz Golaszewski" <bartosz.golaszewski@oss.qualcomm.com>,
	"Bartosz Golaszewski" <brgl@kernel.org>,
	"Herbert Xu" <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>,
	"Russell King" <linux@armlinux.org.uk>,
	"Eric Biggers" <ebiggers@kernel.org>,
	"Demi Marie Obenour" <demiobenour@gmail.com>,
	"Kuldeep Singh" <kuldeep.singh@oss.qualcomm.com>,
	"Pankaj Patil" <pankaj.patil@oss.qualcomm.com>,
	"Birk Skyum" <birk.skyum@pm.me>
Cc: linux-crypto@vger.kernel.org
Subject: Re: [PATCH v11 2/2] Revert "crypto: qce - Mark QCE as BROKEN"
Date: Thu, 22 Oct 2026 09:07:02 +0000	[thread overview]
Message-ID: <sashiko-outbox-181234@kernel.org> (raw)
In-Reply-To: <20261022-qce-fixes-broken-label-v11-2-0d33c34fd0c3@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] crypto: qce: missing documentation for qcrypto.do_register_algos parameter
--

commit 7402540901cd549c757f6e4846f133d63cd4febc
Author: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

Revert "crypto: qce - Mark QCE as BROKEN"

This commit reverts marking the Qualcomm crypto engine driver as broken now
that self-tests are fixed and algorithm registration is gated behind the
do_register_algos module parameter. It also updates the Kconfig help text to
describe the parameter and re-enables the driver in arm and arm64 defconfigs.

> diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
> index 0189dfdcbbe11..adcbe15851899 100644
> --- a/drivers/crypto/Kconfig
> +++ b/drivers/crypto/Kconfig
> @@ -527,17 +527,21 @@ source "drivers/crypto/marvell/Kconfig"
>  source "drivers/crypto/intel/Kconfig"
>  
>  config CRYPTO_DEV_QCE
> -	tristate "Qualcomm crypto engine accelerator"
> -	depends on (BROKEN && ARCH_QCOM) || COMPILE_TEST
> +	tristate "Qualcomm crypto engine offloader"
> +	depends on ARCH_QCOM || COMPILE_TEST
>  	depends on HAS_IOMEM
>  	help
> -	  This driver supports Qualcomm crypto engine accelerator
> -	  hardware. To compile this driver as a module, choose M here. The
> -	  module will be called qcrypto.
> -
> -	  This driver does not have exclusive access to the
> -	  hardware, causing races with the secure world.  It
> -	  is also slower than the CPU.
> +	  This driver supports Qualcomm crypto engine offloader hardware. To
> +	  compile this driver as a module, choose M here. The module will be
> +	  called qcrypto.
> +
> +	  NOTE: With qcrypto.do_register_algos module parameter set to true,
> +	  this driver does not have exclusive access to the hardware, and may
> +	  cause races with the secure world. It is also *slower* than the
> +	  CPU for the same algorithms. By default it will not register crypto
> +	  algorithms and only scale down the interconnect bandwidth and disable
> +	  the relevant clocks. Use qcrypto.do_register_algos=1 at your own
> +	  risk!

[Severity: Low]
The help text for CRYPTO_DEV_QCE in drivers/crypto/Kconfig instructs users to
pass the qcrypto.do_register_algos=1 parameter, which was introduced in
commit 47675c12b3c6 ("crypto: qce - Only register algos if the user really
wants it"):

drivers/crypto/qce/core.c:
    static bool do_register_algos;
    module_param(do_register_algos, bool, 0444);

However, neither commit adds an entry for qcrypto.do_register_algos to
Documentation/admin-guide/kernel-parameters.txt or provides a
MODULE_PARM_DESC() in drivers/crypto/qce/core.c (unlike aes_sw_max_len in
drivers/crypto/qce/skcipher.c).

Should qcrypto.do_register_algos be documented in
Documentation/admin-guide/kernel-parameters.txt and given a
MODULE_PARM_DESC() entry?

>  
>  config CRYPTO_DEV_QCE_SKCIPHER
>  	bool

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261022-qce-fixes-broken-label-v11-0-0d33c34fd0c3@oss.qualcomm.com?part=2

      parent reply	other threads:[~2026-10-22  9:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-22  8:57 [PATCH v11 0/2] crypto - qce: make algos optional and remove the BROKEN label Bartosz Golaszewski
2026-10-22  8:57 ` [PATCH v11 1/2] crypto: qce - Only register algos if the user really wants it Bartosz Golaszewski
2026-10-22  9:04   ` Konrad Dybcio
2026-10-22  9:05   ` sashiko-bot
2026-10-22  8:58 ` [PATCH v11 2/2] Revert "crypto: qce - Mark QCE as BROKEN" Bartosz Golaszewski
2026-10-22  9:04   ` Konrad Dybcio
2026-10-22  9:07   ` sashiko-bot [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=sashiko-outbox-181234@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=bartosz.golaszewski@oss.qualcomm.com \
    --cc=birk.skyum@pm.me \
    --cc=brgl@kernel.org \
    --cc=davem@davemloft.net \
    --cc=demiobenour@gmail.com \
    --cc=ebiggers@kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=kuldeep.singh@oss.qualcomm.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=pankaj.patil@oss.qualcomm.com \
    --cc=sashiko-reviews@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.