News: 0001566350

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Intel QuickAssist Hit By Second Demotion In Linux 6.17 Due To Lack Of Kernel Benefit

([Linux Kernel] 36 Minutes Ago Intel QuickAssist)


A few days ago [1]the Intel QuickAssist "QAT" accelerators were demoted by FSCRYPT in the Linux 6.17 development code due to being slow and bug prone with AVX-512 showing to be much faster than leveraging the QAT accelerators in this file encryption framework. With the Linux 6.17 crypto subsystem is a second separate demotion to Intel's QAT support for kernel use.

The Intel QAT crypto driver has lowered the priority for QAT usage with the SKCIPHER and AEAD algorithms for lack of benefit with the typical kernel use-cases. The [2]patch by Intel engineer Giovanni Cabiddu explains:

"Most kernel applications utilizing the crypto API operate synchronously and on small buffer sizes, therefore do not benefit from QAT acceleration.

Reduce the priority of QAT implementations for both skcipher and aead algorithms, allowing more suitable alternatives to be selected by default."

The priority of these algorithms with the QAT driver are lowered from 4001 to just 100 to reduce the likelihood that the QAT accelerators get tasked with the work. Small buffer sizes not being worthwhile has been a common and known issue for Intel's accelerators found in recent Xeon processors.

Separately, the QAT driver in this crypto pull also drops ZUC 256 support for QAT Gen3 and current-generation Gen5 accelerators:

"crypto/qat: remove ZUC 256 support

Due to changes in the specification related to IV size and initialization sequence remove ZUC 256 support from Gen 3 and 5 hardware"

Meanwhile for the upcoming QAT Gen6 accelerators there is rate-limiting support added in Linux 6.17 along with telemetry support.

The crypto updates for Linux 6.17 also re-enable SHA384 usage in FIPS mode while disabling SHA1 code. The Zstd compression support within the Linux kernel has also been adapted to the asynchronous compression "acomp" interface rather than the synchronous compression "scomp" interface. In supporting the native asynchronous compression interface using Zstd streaming APIs, there is no longer the need for buffer linerization in the Zstd kernel usage.

See [3]this pull request for all of the Linux 6.17 crypto changes merged this week.



[1] https://www.phoronix.com/news/Intel-QAT-FSCRYPT-Linux-6.17

[2] https://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git/commit/?id=8024774190a5ef2af2c5846f60a50b23e0980a32

[3] https://lore.kernel.org/lkml/aIirh_7k4SWzE-bF@gondor.apana.org.au/



phoronix

"The best thing for being sad," replied Merlin, beginning to puff
and blow, "is to learn something. That's the only thing that never fails.
You may grow old and trembling in your anatomies, you may lie awake at
night listening to the disorder of your veins, you may miss your only love,
you may see the world about you devastated by evil lunatics, or know your
honour trampled in the sewers of baser minds. There is only one thing for
it then -- to learn. Learn why the world wags and what wags it. That is
the only thing which the mind can never exhaust, never alienate, never be
tortured by, never fear or distrust, and never dream of regretting. Learning
is the only thing for you. Look what a lot of things there are to learn."
-- T. H. White, "The Once and Future King"