Re: [PATCH] crypto: qce - Remove driver
Demi Marie Obenour <[email protected]> Thu, 30 Jul 2026 12:40:22 -0400
| Newsgroups | org.kernel.vger.linux-crypto,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------t0ihQmACXOEWelq02XhLBP1h Content-Type: multipart/mixed; boundary="------------2XlfptUy3V5rxBrmNjBlQbIv"; protected-headers="v1"; hp="clear" Message-ID: <[email protected]> Date: Thu, 30 Jul 2026 12:40:22 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] crypto: qce - Remove driver To: Konrad Dybcio <[email protected]>, Eric Biggers <[email protected]> Cc: Konrad Dybcio <[email protected]>, Greg Kroah-Hartman <[email protected]>, Bartosz Golaszewski <[email protected]>, [email protected], Herbert Xu <[email protected]>, [email protected], [email protected], [email protected], Kuldeep Singh <[email protected]>, Dmitry Baryshkov <[email protected]> References: <20260724141414.GB1876@sol> <CAMRc=MfU1egvJwmgPEN-GXPbz8_JL2XnP-LV0T2+jG-drfXYwg@mail.gmail.com> <2026072455-subtly-prayer-0a8a@gregkh> <20260724150932.GA6763@sol> <2026072428-ungodly-outsource-b20c@gregkh> <20260724155144.GA2032@sol> <20260728152241.GA4281@quark> <[email protected]> <20260729145520.GA1702@sol> <[email protected]> <20260729171850.GA4454@quark> <[email protected]> Content-Language: en-US From: Demi Marie Obenour <[email protected]> Autocrypt: [email protected]; keydata= xsFNBFp+A0oBEADffj6anl9/BHhUSxGTICeVl2tob7hPDdhHNgPR4C8xlYt5q49yB+l2nipd aq+4Gk6FZfqC825TKl7eRpUjMriwle4r3R0ydSIGcy4M6eb0IcxmuPYfbWpr/si88QKgyGSV Z7GeNW1UnzTdhYHuFlk8dBSmB1fzhEYEk0RcJqg4AKoq6/3/UorR+FaSuVwT7rqzGrTlscnT DlPWgRzrQ3jssesI7sZLm82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n0TPtsGzelyQHipaUzEyrsceUGWYoKXYyVWKEfyh0cDfnd9diAm3VeNqchtcMpoehETH8fr RHnJdBcjf112PzQSdKC6kqU0Q196c4Vp5HDOQfNiDnTf7gZSj0BraHOByy9LEDCLhQiCmr+2 E0rW4tBtDAn2HkT9uf32ZGqJCn1O+2uVfFhGu6vPE5qkqrbSE8TG+03H8ecU2q50zgHWPdHM OBvy3EhzfAh2VmOSTcRK+tSUe/u3wdLRDPwv/DTzGI36Kgky9MsDC5gpIwNbOJP2G/q1wT1o Gkw4IXfWv2ufWiXqJ+k7HEi2N1sree7Dy9KBCqb+ca1vFhYPDJfhP75I/VnzHVssZ/rYZ9+5 1yDoUABoNdJNSGUYl+Yh9Pw9pE3Kt4EFzUlFZWbE4xKL/NPno+z4J9aWemLLszcYz/u3XnbO vUSQHSrmfOzX3cV4yfmjM5lewgSstoxGyTx2M8enslgdXhPthZlDnTnOT+C+OTsh8+m5tos8 HQjaPM01MKBiAqdPgksm1wu2DrrwUi6ChRVTUBcj6+/9IJ81H2P2gJk3Ls3AVIxIffLoY34E +MYSfkEjBz0E8CLOcAw7JIwAaeBT In-Reply-To: <[email protected]> --------------2XlfptUy3V5rxBrmNjBlQbIv Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 buse= s >>>>> 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() pendi= ng due to 1dfa000.crypto >>>>> >>>>> (it transiently also pins DRAM and friends to max-freq which absolu= tely >>>>> 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. >=20 > 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. --=20 Sincerely, Demi Marie Obenour (she/her/hers) --------------2XlfptUy3V5rxBrmNjBlQbIv-- --------------t0ihQmACXOEWelq02XhLBP1h Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEopQtqVJW1aeuo9/sszaHOrMp8lMFAmprfoAACgkQszaHOrMp 8lMBZQ/9H6ZnMZ4uJsLXk8rgQwcjpwkvE2geQEnARvBDB6Iqj12QyxW9XwqYXuCI PfY3jgcYXQKXKQ+ym1t9Gzxp7cJSbofZaF9gEbem32oWVr6y/i77jmo+rXfnnfLb bQzaRIx/6iVWvonQBG2zpNfcxN7FlWCWo2pb66X/S/NcSQIOtzDaOnU7K+uYGper UVdhLsmoKl05OI1YOyQblE2dTyIAHGwEfpBOdxyIU1zxLZEnXSXsrJ9k4EUbH8WG rSKbgOi2Z2ShTMb0KtopbDRvRvq3f4OltTP/esti0Zl42zrq9rQCTiHb9hU2KDFc w8/KBdFUUj3J3vX7h56NiLtNEdONy5bECFf3WdlD90Q6ljA+wJTONcDM0Ltf9Lqb RXXmVu17gzQGPKndNezR9Hry/h120dMAuh6MYSQdtbgSqMonOr64BinIABvJPq4B 2kyOatWo/Cl6J3ZRdAB57B0QGeOloazN/RtorcAY53ahQND16k3KXSWE47gd62lI 3VEF6pxF0Mn9MDCcgj6ZBgAnnzAUMSN2Vt9j+diV4hD+gKAsWVtjd6HEAyDpBonF crI6EV9BI64v+xjL9mEv8uaMmSW6T6M3Fd90HcO/o1p7css3J2LZhCUD+rKQzaHC DonTImuEaFapgVYepstb5q9eWIEb+mhH+k6UMeQQ16jEJWa/63A= =zInT -----END PGP SIGNATURE----- --------------t0ihQmACXOEWelq02XhLBP1h--