Delete the Qualcomm crypto engine
Subsystems (5)
cover Delete the Qualcomm crypto engine
The only realistic uses I can think of are:
1. Very weak devices where QCE is actually faster.
2. Devices without bitsliced NEON.
Do any such devices exist in the wild? I have no idea.
Not even compile-tested, but should be trivial as it just deletes code. I didn't change the device tree beyond marking the bindings as deprecated.
---
Demi Marie Obenour (2):
crypto: Delete Qualcomm crypto engine driver
devicetree: Mark QCE bindings as deprecated
.../devicetree/bindings/crypto/qcom-qce.yaml | 3 + MAINTAINERS | 8 - arch/arm/configs/multi_v7_defconfig | 1 - arch/arm64/configs/defconfig | 1 - drivers/crypto/Kconfig | 111 --- drivers/crypto/Makefile | 1 - drivers/crypto/qce/Makefile | 9 - drivers/crypto/qce/aead.c | 841 --------------------- drivers/crypto/qce/aead.h | 56 -- drivers/crypto/qce/cipher.h | 56 -- drivers/crypto/qce/common.c | 595 --------------- drivers/crypto/qce/common.h | 104 --- drivers/crypto/qce/core.c | 271 ------- drivers/crypto/qce/core.h | 64 -- drivers/crypto/qce/dma.c | 135 ---- drivers/crypto/qce/dma.h | 47 -- drivers/crypto/qce/regs-v5.h | 326 -------- drivers/crypto/qce/sha.c | 545 ------------- drivers/crypto/qce/sha.h | 72 -- drivers/crypto/qce/skcipher.c | 529 ------------- 20 files changed, 3 insertions(+), 3772 deletions(-)
---
base-commit: 49e05bb00f2e8168695f7af4d694c39e1423e8a2
change-id: 20260523-delete-qce-0363d22a8596
Best regards,
Signature · 1 line
Demi Marie Obenour <[email protected]>
PATCH 1/2 crypto: Delete Qualcomm crypto engine driver
It's slower than the generic C code and causes problems.
--- MAINTAINERS | 8 - arch/arm/configs/multi_v7_defconfig | 1 - arch/arm64/configs/defconfig | 1 - drivers/crypto/Kconfig | 111 ----- drivers/crypto/Makefile | 1 - drivers/crypto/qce/Makefile | 9 - drivers/crypto/qce/aead.c | 841 ------------------------------------ drivers/crypto/qce/aead.h | 56 --- drivers/crypto/qce/cipher.h | 56 --- drivers/crypto/qce/common.c | 595 ------------------------- drivers/crypto/qce/common.h | 104 ----- drivers/crypto/qce/core.c | 271 ------------ drivers/crypto/qce/core.h | 64 --- drivers/crypto/qce/dma.c | 135 ------ drivers/crypto/qce/dma.h | 47 -- drivers/crypto/qce/regs-v5.h | 326 -------------- drivers/crypto/qce/sha.c | 545 ----------------------- drivers/crypto/qce/sha.h | 72 --- drivers/crypto/qce/skcipher.c | 529 ----------------------- 19 files changed, 3772 deletions(-)
MAINTAINERS +0 -8
@@ -21898,14 +21898,6 @@ F: Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml F: Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml F: drivers/cpufreq/qcom-cpufreq-nvmem.c -QUALCOMM CRYPTO DRIVERS -M: Thara Gopinath <[email protected]> -L: [email protected] -L: [email protected] -S: Maintained -F: Documentation/devicetree/bindings/crypto/qcom-qce.yaml -F: drivers/crypto/qce/ - QUALCOMM EMAC GIGABIT ETHERNET DRIVER M: Timur Tabi <[email protected]> L: [email protected]
arch/arm/configs/multi_v7_defconfig +0 -1
@@ -1335,7 +1335,6 @@ CONFIG_CRYPTO_DEV_ATMEL_AES=m CONFIG_CRYPTO_DEV_ATMEL_TDES=m CONFIG_CRYPTO_DEV_ATMEL_SHA=m CONFIG_CRYPTO_DEV_MARVELL_CESA=m -CONFIG_CRYPTO_DEV_QCE=m CONFIG_CRYPTO_DEV_QCOM_RNG=m CONFIG_CRYPTO_DEV_ROCKCHIP=m CONFIG_CRYPTO_DEV_STM32_HASH=m
arch/arm64/configs/defconfig +0 -1
@@ -1952,7 +1952,6 @@ CONFIG_CRYPTO_AES_ARM64_CE_CCM=y CONFIG_CRYPTO_DEV_SUN8I_CE=m CONFIG_CRYPTO_DEV_FSL_CAAM=m CONFIG_CRYPTO_DEV_FSL_DPAA2_CAAM=m -CONFIG_CRYPTO_DEV_QCE=m CONFIG_CRYPTO_DEV_QCOM_RNG=m CONFIG_CRYPTO_DEV_TEGRA=m CONFIG_CRYPTO_DEV_XILINX_TRNG=m
drivers/crypto/Kconfig +0 -111
117 lines not on this page · raw message
drivers/crypto/Makefile +0 -1
@@ -27,7 +27,6 @@ obj-$(CONFIG_CRYPTO_DEV_OMAP_SHAM) += omap-sham.o obj-$(CONFIG_CRYPTO_DEV_PADLOCK_AES) += padlock-aes.o obj-$(CONFIG_CRYPTO_DEV_PADLOCK_SHA) += padlock-sha.o obj-$(CONFIG_CRYPTO_DEV_PPC4XX) += amcc/ -obj-$(CONFIG_CRYPTO_DEV_QCE) += qce/ obj-$(CONFIG_CRYPTO_DEV_QCOM_RNG) += qcom-rng.o obj-$(CONFIG_CRYPTO_DEV_ROCKCHIP) += rockchip/ obj-$(CONFIG_CRYPTO_DEV_S5P) += s5p-sss.o
drivers/crypto/qce/Makefile deleted +0 -9
@@ -1,9 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_CRYPTO_DEV_QCE) += qcrypto.o -qcrypto-objs := core.o \ - common.o \ - dma.o - -qcrypto-$(CONFIG_CRYPTO_DEV_QCE_SHA) += sha.o -qcrypto-$(CONFIG_CRYPTO_DEV_QCE_SKCIPHER) += skcipher.o -qcrypto-$(CONFIG_CRYPTO_DEV_QCE_AEAD) += aead.o
drivers/crypto/qce/aead.c deleted +0 -841
841 lines not on this page · raw message
drivers/crypto/qce/aead.h deleted +0 -56
56 lines not on this page · raw message
drivers/crypto/qce/cipher.h deleted +0 -56
56 lines not on this page · raw message
drivers/crypto/qce/common.c deleted +0 -595
595 lines not on this page · raw message
drivers/crypto/qce/common.h deleted +0 -104
104 lines not on this page · raw message
drivers/crypto/qce/core.c deleted +0 -271
271 lines not on this page · raw message
drivers/crypto/qce/core.h deleted +0 -64
64 lines not on this page · raw message
drivers/crypto/qce/dma.c deleted +0 -135
135 lines not on this page · raw message
drivers/crypto/qce/dma.h deleted +0 -47
47 lines not on this page · raw message
drivers/crypto/qce/regs-v5.h deleted +0 -326
326 lines not on this page · raw message
drivers/crypto/qce/sha.c deleted +0 -545
344 lines not on this page · raw message
drivers/crypto/qce/sha.h deleted +0 -72
72 lines not on this page · raw message
drivers/crypto/qce/skcipher.c deleted +0 -529
529 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.54.0
Part of the diff is not shown here. View the raw message.
PATCH 2/2 devicetree: Mark QCE bindings as deprecated
In reply to Demi Marie ObenourThey are no longer used by the kernel. Keep them to avoid unnecessary churn and because I know next to nothing about devicetree.
--- Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 3 +++ 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/crypto/qcom-qce.yaml +3 -0
@@ -14,6 +14,9 @@ description: This document defines the binding for the QCE crypto controller found on Qualcomm parts. + This driver is no longer used and so this binding only exists + for backwards compatibility. + properties: compatible: oneOf:
Signature · 1 line
2.54.0
[email protected]
AI reviewRe: [PATCH 2/2] devicetree: Mark QCE bindings as deprecated
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] Improper deprecation of a Device Tree binding based on Linux driver usage, along with missing…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Improper deprecation of a Device Tree binding based on Linux driver usage, along with missing deprecated: true property. --
commit b96bab0a35ba5a2a033dd44bb8dfef71eb077fa4
Author: Demi Marie Obenour <[email protected]>
devicetree: Mark QCE bindings as deprecated
This commit updates the description of the QCE crypto controller binding to state that it is no longer used by the kernel and is kept only for backwards compatibility.
Quoted 4 lines
devicetree: Mark QCE bindings as deprecated
They are no longer used by the kernel. Keep them to avoid unnecessary churn and because I know next to nothing about devicetree.
[Severity: Medium]
Aren't device tree bindings intended to describe hardware independently of OS or software drivers? Deprecating a hardware binding solely because the Linux kernel driver was removed appears to violate the principle of OS-agnostic hardware description.
Quoted 5 lines
Documentation/devicetree/bindings/crypto/qcom-qce.yaml +0
-0
Documentation/devicetree/bindings/crypto/qcom-qce.yaml description: · line 22
Quoted 9 lines
Documentation/devicetree/bindings/crypto/qcom-qce.yaml +3
-0@@ -14,6 +14,9 @@ description: This document defines the binding for the QCE crypto controller found on Qualcomm parts. + This driver is no longer used and so this binding only exists + for backwards compatibility. + properties: compatible: oneOf:
[Severity: Medium]
If this binding should legitimately be marked as deprecated, does it also need the standard deprecated: true JSON schema property at the root level?
By only adding an informal note to the description, validation tools like dtbs_check cannot parse this state and will fail to issue standard deprecation warnings.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Re: [PATCH 1/2] crypto: Delete Qualcomm crypto engine driver
In reply to Demi Marie ObenourQuoted 3 lines · On Sat, May 23, 2026 at 03:03:56PM -0400, Demi Marie Obenour via B4 Relay wrote:
From: Demi Marie Obenour <[email protected]>
It's slower than the generic C code and causes problems.
Which problems?
Also in the security world faster and safer are two orthogonal axis with very limited correlation.
Quoted 24 lines
Signed-off-by Demi Marie Obenour <[email protected]>--- MAINTAINERS | 8 - arch/arm/configs/multi_v7_defconfig | 1 - arch/arm64/configs/defconfig | 1 - drivers/crypto/Kconfig | 111 ----- drivers/crypto/Makefile | 1 - drivers/crypto/qce/Makefile | 9 - drivers/crypto/qce/aead.c | 841 ------------------------------------ drivers/crypto/qce/aead.h | 56 --- drivers/crypto/qce/cipher.h | 56 --- drivers/crypto/qce/common.c | 595 ------------------------- drivers/crypto/qce/common.h | 104 ----- drivers/crypto/qce/core.c | 271 ------------ drivers/crypto/qce/core.h | 64 --- drivers/crypto/qce/dma.c | 135 ------ drivers/crypto/qce/dma.h | 47 -- drivers/crypto/qce/regs-v5.h | 326 -------------- drivers/crypto/qce/sha.c | 545 ----------------------- drivers/crypto/qce/sha.h | 72 --- drivers/crypto/qce/skcipher.c | 529 ----------------------- 19 files changed, 3772 deletions(-)
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH 1/2] crypto: Delete Qualcomm crypto engine driver
Quoted 6 lines · Dmitry Baryshkov
Quoted 3 lines · On Sat, May 23, 2026 at 03:03:56PM -0400, Demi Marie Obenour via B4 Relay wrote:
From: Demi Marie Obenour <[email protected]>
It's slower than the generic C code and causes problems.
Which problems?
See https://lore.kernel.org/all/20260522024912.GC5937@quark/.
Also, if there are no systems in which the QCE driver is actually the highest priority, then unless someone adjusts priorities manually it's unused code.
Quoted 2 lines
Also in the security world faster and safer are two orthogonal axis with very limited correlation.
If by "safer" you mean protection against physical side-channel attacks, then my understanding is that all operations on secret keys need to be masked. This includes copying and storage.
Linux only supports this for protected keys, and even then sometimes uses the kernel's own RNG for key generation. There is no support for using the QCE for protected keys.
Linux does support using hardware-wrapped keys with inline crypto engines, which are what are actually used on Android.
Signature · 2 lines
Sincerely, Demi Marie Obenour (she/her/hers)
Re: [PATCH 1/2] crypto: Delete Qualcomm crypto engine driver
In reply to Demi Marie ObenourQuoted 3 lines · On 23/05/2026 21:03, Demi Marie Obenour via B4 Relay wrote:
From: Demi Marie Obenour <[email protected]>
It's slower than the generic C code and causes problems.
That's really vague and incomplete. You need to make your case, provide arguments, numbers, data. Otherwise it is just trolling.
Best regards,
Krzysztof
Re: [PATCH 1/2] crypto: Delete Qualcomm crypto engine driver
In reply to Demi Marie ObenourQuoted 9 lines · Demi Marie Obenour
Quoted 6 lines · Dmitry Baryshkov
Quoted 3 lines · On Sat, May 23, 2026 at 03:03:56PM -0400, Demi Marie Obenour via B4 Relay wrote:
From: Demi Marie Obenour <[email protected]>
It's slower than the generic C code and causes problems.
Which problems?
See https://lore.kernel.org/all/20260522024912.GC5937@quark/.
Your commit is still incomplete and other people's opinion is poor reason. If you do not know what to write, ask that person to make necessary changes.
Not mentioning that removing driver is not even necessary to achieve the goal Eric was mentioning and if I understood correctly: you are removing even the pieces Eric found useful.
Quoted 4 lines
Also, if there are no systems in which the QCE driver is actually the highest priority, then unless someone adjusts priorities manually it's unused code.
That's not a reason to remove a driver.
Quoted 8 lines
Quoted 3 lines
Also in the security world faster and safer are two orthogonal axis with very limited correlation.
If by "safer" you mean protection against physical side-channel attacks, then my understanding is that all operations on secret keys need to be masked. This includes copying and storage.
Quoted 6 lines
Linux only supports this for protected keys, and even then sometimes uses the kernel's own RNG for key generation. There is no support for using the QCE for protected keys.
Linux does support using hardware-wrapped keys with inline crypto engines, which are what are actually used on Android.
Patches are discussed for some time, did you miss that?
Best regards,
Krzysztof
Re: [PATCH 1/2] crypto: Delete Qualcomm crypto engine driver
Quoted 39 lines · Krzysztof Kozlowski
Quoted 9 lines · Demi Marie Obenour
Quoted 6 lines · Dmitry Baryshkov
Quoted 3 lines · On Sat, May 23, 2026 at 03:03:56PM -0400, Demi Marie Obenour via B4 Relay wrote:
From: Demi Marie Obenour <[email protected]>
It's slower than the generic C code and causes problems.
Which problems?
See https://lore.kernel.org/all/20260522024912.GC5937@quark/.
Your commit is still incomplete and other people's opinion is poor reason. If you do not know what to write, ask that person to make necessary changes.
Not mentioning that removing driver is not even necessary to achieve the goal Eric was mentioning and if I understood correctly: you are removing even the pieces Eric found useful.
Quoted 4 lines
Also, if there are no systems in which the QCE driver is actually the highest priority, then unless someone adjusts priorities manually it's unused code.
That's not a reason to remove a driver.
Quoted 12 lines
Quoted 3 lines
Also in the security world faster and safer are two orthogonal axis with very limited correlation.
If by "safer" you mean protection against physical side-channel attacks, then my understanding is that all operations on secret keys need to be masked. This includes copying and storage.
Linux only supports this for protected keys, and even then sometimes uses the kernel's own RNG for key generation. There is no support for using the QCE for protected keys.
Quoted 7 lines
Quoted 2 lines
Linux does support using hardware-wrapped keys with inline crypto engines, which are what are actually used on Android.
Patches are discussed for some time, did you miss that?
Best regards,
Krzysztof
Thanks for the useful explanation. I'll remove this patch from my tree and won't resend it.
Signature · 2 lines
Sincerely, Demi Marie Obenour (she/her/hers)
Re: [PATCH 1/2] crypto: Delete Qualcomm crypto engine driver
In reply to Krzysztof KozlowskiQuoted 11 lines · Krzysztof Kozlowski
Quoted 9 lines · Demi Marie Obenour
Quoted 6 lines · Dmitry Baryshkov
Quoted 3 lines · On Sat, May 23, 2026 at 03:03:56PM -0400, Demi Marie Obenour via B4 Relay wrote:
From: Demi Marie Obenour <[email protected]>
It's slower than the generic C code and causes problems.
Which problems?
See https://lore.kernel.org/all/20260522024912.GC5937@quark/.
Quoted 7 lines
Your commit is still incomplete and other people's opinion is poor reason. If you do not know what to write, ask that person to make necessary changes.
Not mentioning that removing driver is not even necessary to achieve the goal Eric was mentioning and if I understood correctly: you are removing even the pieces Eric found useful.
This driver is more than an order of magnitude slower than the CPU for both encryption and hashing. See:
https://lore.kernel.org/r/[email protected]/ https://lore.kernel.org/r/20250615031807.GA81869@sol/
There are many examples of it having bugs as well, for example see the second link above.
That's why it had to be disabled via the cra_priority system. This driver was actively making Linux worse.
This isn't particularly unique to drivers/crypto/, of course. This one we just have data on, so it's a bit clearer.
I've yet to see any real reason to keep this driver.
Crypto drivers need to be held to a higher standard than other device drivers, as well. The onus is on those who want to keep a particular crypto driver to prove that it's worth keeping.
- Eric
Re: [PATCH 1/2] crypto: Delete Qualcomm crypto engine driver
Quoted 9 lines
This driver is more than an order of magnitude slower than the CPU for both encryption and hashing. See:
https://lore.kernel.org/r/[email protected]/ https://lore.kernel.org/r/20250615031807.GA81869@sol/There are many examples of it having bugs as well, for example see the second link above.
Quoted 7 lines
That's why it had to be disabled via the
cra_prioritysystem. This driver was actively making Linux worse.This isn't particularly unique to
drivers/crypto/, of course. This one we just have data on, so it's a bit clearer.I've yet to see any real reason to keep this driver.
https://lore.kernel.org/all/[email protected]/
Kindly check my latest reply to the thread. There are numerous usecases like DRM(Digital rights management) coming up and qce driver is required for secure content.
Quoted 3 lines
Crypto drivers need to be held to a higher standard than other device drivers, as well. The onus is on those who want to keep a particular crypto driver to prove that it's worth keeping.
Sure, I'll be working on stabilizing self_tests infra for qce. Kindly allow sometime to go over failures in crypto selftest and will submit fix if applicable.
So far, i am observing 2 ciphers failing(xts-aes-qce and ctr-aes-qce ) with CONFIG_CRYPTO_SELFTESTS enabled.
https://lore.kernel.org/r/20250615031807.GA81869@sol/
May I know how to issue reproduce steps because I didn't observe crypto/ahash.c failure with CONFIG_CRYPTO_SELFTESTS?
Signature · 2 lines
Regards Kuldeep
Re: [PATCH 1/2] crypto: Delete Qualcomm crypto engine driver
Quoted 15 lines · Kuldeep Singh
Quoted 15 lines
This driver is more than an order of magnitude slower than the CPU for both encryption and hashing. See:
https://lore.kernel.org/r/[email protected]/ https://lore.kernel.org/r/20250615031807.GA81869@sol/There are many examples of it having bugs as well, for example see the second link above.
That's why it had to be disabled via the
cra_prioritysystem. This driver was actively making Linux worse.This isn't particularly unique to
drivers/crypto/, of course. This one we just have data on, so it's a bit clearer.
Quoted 6 lines
Quoted 1 line
I've yet to see any real reason to keep this driver.
https://lore.kernel.org/all/[email protected]/
Kindly check my latest reply to the thread. There are numerous usecases like DRM(Digital rights management) coming up and qce driver is required for secure content.
1. This content is restricted. It's no more secure.
2. General purpose (desktop, laptop) systems won't be able to display restricted content. To the best of my knowledge, the only Wayland compositors that support restricted content are Weston and Chromium OS's compositor.
3. Will this code be useful without out of tree drivers?
4. Does this use the existing crypto APIs or a separate API?
Signature · 2 lines
Sincerely, Demi Marie Obenour (she/her/hers)
Re: [PATCH 1/2] crypto: Delete Qualcomm crypto engine driver
In reply to Kuldeep SinghQuoted 22 lines · Kuldeep Singh
Quoted 9 lines
This driver is more than an order of magnitude slower than the CPU for both encryption and hashing. See:
https://lore.kernel.org/r/[email protected]/ https://lore.kernel.org/r/20250615031807.GA81869@sol/There are many examples of it having bugs as well, for example see the second link above.
Quoted 7 lines
That's why it had to be disabled via the
cra_prioritysystem. This driver was actively making Linux worse.This isn't particularly unique to
drivers/crypto/, of course. This one we just have data on, so it's a bit clearer.I've yet to see any real reason to keep this driver.
https://lore.kernel.org/all/[email protected]/
Kindly check my latest reply to the thread. There are numerous usecases like DRM(Digital rights management) coming up and qce driver is required for secure content.
Quoted 6 lines
Quoted 3 lines
Crypto drivers need to be held to a higher standard than other device drivers, as well. The onus is on those who want to keep a particular crypto driver to prove that it's worth keeping.
Sure, I'll be working on stabilizing
self_testsinfra for qce. Kindly allow sometime to go over failures in crypto selftest and will submit fix if applicable.
Why are not selftests a part of your default config? How are you testing the driver?
Quoted 2 lines
So far, i am observing 2 ciphers failing(xts-aes-qce and ctr-aes-qce ) with
CONFIG_CRYPTO_SELFTESTSenabled.
Please make sure to run the tests on older platforms too, not just the latest & greatest.
Quoted 4 lines
https://lore.kernel.org/r/20250615031807.GA81869@sol/
May I know how to issue reproduce steps because I didn't observecrypto/ahash.cfailure withCONFIG_CRYPTO_SELFTESTS?
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH 1/2] crypto: Delete Qualcomm crypto engine driver
Quoted 26 lines · Dmitry Baryshkov
Quoted 25 lines · Kuldeep Singh
Quoted 9 lines
This driver is more than an order of magnitude slower than the CPU for both encryption and hashing. See:
https://lore.kernel.org/r/[email protected]/ https://lore.kernel.org/r/20250615031807.GA81869@sol/There are many examples of it having bugs as well, for example see the second link above.
Quoted 7 lines
That's why it had to be disabled via the
cra_prioritysystem. This driver was actively making Linux worse.This isn't particularly unique to
drivers/crypto/, of course. This one we just have data on, so it's a bit clearer.I've yet to see any real reason to keep this driver.
https://lore.kernel.org/all/[email protected]/
Kindly check my latest reply to the thread. There are numerous usecases like DRM(Digital rights management) coming up and qce driver is required for secure content.Quoted 3 lines
Crypto drivers need to be held to a higher standard than other device drivers, as well. The onus is on those who want to keep a particular crypto driver to prove that it's worth keeping.
Quoted 6 lines
Quoted 3 lines
Sure, I'll be working on stabilizing
self_testsinfra for qce. Kindly allow sometime to go over failures in crypto selftest and will submit fix if applicable.Why are not selftests a part of your default config? How are you testing the driver?
We are validating the driver probe and kcapi userspace tests while validating qce algos. Locally we update all 3 algo priority and then run kcapi_convinience.sh test suite to ensure it picks qce algos.
Please note, previously were not aware need to run selftests suite too. Got to know about this once issue was reported.
Quoted 6 lines
Quoted 3 lines
So far, i am observing 2 ciphers failing(xts-aes-qce and ctr-aes-qce ) with
CONFIG_CRYPTO_SELFTESTSenabled.Please make sure to run the tests on older platforms too, not just the latest & greatest.
Yes, will check on all the platforms.
Signature · 2 lines
Regards Kuldeep
Re: [PATCH 1/2] crypto: Delete Qualcomm crypto engine driver
In reply to Eric BiggersQuoted 32 lines · Eric Biggers
Quoted 11 lines · Krzysztof Kozlowski
Quoted 9 lines · Demi Marie Obenour
Quoted 6 lines · Dmitry Baryshkov
Quoted 3 lines · On Sat, May 23, 2026 at 03:03:56PM -0400, Demi Marie Obenour via B4 Relay wrote:
From: Demi Marie Obenour <[email protected]>
It's slower than the generic C code and causes problems.
Which problems?
See https://lore.kernel.org/all/20260522024912.GC5937@quark/.
Quoted 7 lines
Your commit is still incomplete and other people's opinion is poor reason. If you do not know what to write, ask that person to make necessary changes.
Not mentioning that removing driver is not even necessary to achieve the goal Eric was mentioning and if I understood correctly: you are removing even the pieces Eric found useful.
This driver is more than an order of magnitude slower than the CPU for both encryption and hashing. See:
https://lore.kernel.org/r/[email protected]/ https://lore.kernel.org/r/20250615031807.GA81869@sol/There are many examples of it having bugs as well, for example see the second link above.
That's why it had to be disabled via the
cra_prioritysystem. This driver was actively making Linux worse.
Quoted 8 lines
This isn't particularly unique to
drivers/crypto/, of course. This one we just have data on, so it's a bit clearer.I've yet to see any real reason to keep this driver.
Crypto drivers need to be held to a higher standard than other device drivers, as well. The onus is on those who want to keep a particular crypto driver to prove that it's worth keeping.
Commit doing the work should have all these explanations, including numbers. External references are not a proper justification for commits.
Make your case, describe the findings including impact (or lack of impact) on ongoing hw wrapped keys work and inlined encryption for other devices (ICE).
Best regards,
Krzysztof