Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Demi Marie Obenour <demiobenour@gmail.com>
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
	Eric Biggers <ebiggers@kernel.org>
Cc: Konrad Dybcio <konradybcio@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Bartosz Golaszewski <brgl@kernel.org>,
	linux-crypto@vger.kernel.org,
	Herbert Xu <herbert@gondor.apana.org.au>,
	linux-arm-msm@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>,
	Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Subject: Re: [PATCH] crypto: qce - Remove driver
Date: Thu, 30 Jul 2026 12:40:22 -0400	[thread overview]
Message-ID: <38162447-df7e-4fbc-b438-b48181d10186@gmail.com> (raw)
In-Reply-To: <a5e953b8-89fb-4f65-a299-37352d9f6fa8@oss.qualcomm.com>


[-- Attachment #1.1: Type: text/plain, Size: 1785 bytes --]

On 7/30/26 07:15, Konrad Dybcio wrote:
> On 7/29/26 7:18 PM, Eric Biggers wrote:
>> On Wed, Jul 29, 2026 at 06:55:20PM +0200, Konrad Dybcio wrote:
>>>>> Unfortunately removing it drains way more battery, because the buses
>>>>> never hit sync_state and are kept at their maximum frequencies:
>>>>>
>>>>> [   18.021823] qnoc-glymur interconnect-1: sync_state() pending due to 1dfa000.crypto
>>>>> [   18.029605] qnoc-glymur 16e0000.interconnect: sync_state() pending due to 1dfa000.crypto
>>>>>
>>>>> (it transiently also pins DRAM and friends to max-freq which absolutely
>>>>> kills battery life)
>>>>
>>>> Isn't that easily fixable by marking the node as "disabled" in the
>>>> device tree, or even just deleting it entirely?
>>>
>>> Avoided? Yes. Fixed? No. The DT is valid but Linux can't deal with it
>>> [since the driver is gone]
>>
>> If needed we can keep a stub driver that just disables power and doesn't
>> register anything with the crypto API.  I can send a patch that does
>> that.
> 
> I believe we (are going to) need something like that in the kernel
> for similar cases, however I'd rather see this driver kept/reinstated
> for the reasons Bartosz is arguing

What about removing all of the code that actually does cryptography?
The problem isn't that the driver can't be fixed, but that:

1. It requires additional maintenance, and not just by the driver
   maintainer.

2. Even if the driver never needed maintenance, the QCE is so slow,
   and the driver overhead so great, that the features currently
   exposed by the driver should never be used.

As Eric pointed out, the future use-cases Bartosz mentions should be
implemented by a driver that isn't in drivers/crypto.
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2026-07-30 16:40 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-24  5:06 [PATCH] crypto: qce - Remove driver Eric Biggers
2026-07-24  5:28 ` Greg Kroah-Hartman
2026-07-24  7:36   ` Bartosz Golaszewski
2026-07-24  8:41     ` Greg Kroah-Hartman
2026-07-24  9:29       ` Bartosz Golaszewski
2026-07-24 14:14         ` Eric Biggers
2026-07-24 14:47           ` Bartosz Golaszewski
2026-07-24 15:04             ` Greg Kroah-Hartman
2026-07-24 15:09               ` Eric Biggers
2026-07-24 15:25                 ` Greg Kroah-Hartman
2026-07-24 15:51                   ` Eric Biggers
2026-07-27 13:26                     ` Bartosz Golaszewski
2026-07-28 15:30                       ` Eric Biggers
2026-07-28 15:22                     ` Eric Biggers
2026-07-29  8:02                       ` Konrad Dybcio
2026-07-29 14:55                         ` Eric Biggers
2026-07-29 16:55                           ` Konrad Dybcio
2026-07-29 17:18                             ` Eric Biggers
2026-07-30 11:15                               ` Konrad Dybcio
2026-07-30 16:40                                 ` Demi Marie Obenour [this message]
2026-07-29 12:02                       ` Bartosz Golaszewski
2026-07-29 17:38                         ` Eric Biggers
2026-07-24  9:56 ` Sumit Garg
2026-07-24 13:51   ` Eric Biggers

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=38162447-df7e-4fbc-b438-b48181d10186@gmail.com \
    --to=demiobenour@gmail.com \
    --cc=brgl@kernel.org \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=ebiggers@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=kuldeep.singh@oss.qualcomm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@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