From: Yoan Picchi <yoan.picchi@foss.arm.com>
To: ardb@kernel.org
Cc: davem@davemloft.net, giovanni.cabiddu@intel.com,
herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org,
linux-kernel@vger.kernel.org, qat-linux@intel.com,
yoan.picchi@arm.com, andre.przywara@arm.com
Subject: Re: [RFC PATCH 2/2] Removes the x86 dependency on the QAT drivers
Date: Wed, 18 May 2022 14:00:40 +0100 [thread overview]
Message-ID: <8f6d8d1f-2872-15b9-d38b-1e8eb26f781b@foss.arm.com> (raw)
In-Reply-To: <CAMj1kXGAiA-SkTFD5EgcacYao0RKT7oK0AxvxkR7Ho_KZSGXCw@mail.gmail.com>
>> From: Yoan Picchi <yoan.picchi@arm.com>
>>
>> The QAT acceleration card can be very helpfull for some tasks like
>> dealing with IPSEC but it is currently restricted to be used only on
x86 machine.
>> Looking at the code we didn't see any reasons why those drivers might
>> not work on other architectures. We've successfully built all of them
>> on x86, arm64, arm32, mips64, powerpc64, riscv64 and sparc64.
>>
>> We also have tested the driver with an Intel Corporation C62x Chipset
>> QuickAssist Technology (rev 04) PCIe card on an arm64 server. After
>> the numa patch, it works with the AF_ALG crypto userland interface,
>> allowing us to encrypt some data with cbc for instance. We've also
>> successfully created some VF, bound them to DPDK, and used the card
>> this way, thus showing some real life usecases of x86 do work on
arm64 too.
>>
>> Please let us know if we missed something that would warrants some
>> further testing.
>Thanks Yoan.
>
>Can you please confirm that you tested the driver on the platform you
reported using a kernel with CONFIG_CRYPTO_MANAGER_DISABLE_TESTS not set
and CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y and the self test >is passing?
>You can check it by running
> $ cat /proc/crypto | grep -B 4 passed | grep -e "qat_\|qat-" |
sort This should report:
> driver : qat_aes_cbc
> driver : qat_aes_cbc_hmac_sha1
> driver : qat_aes_cbc_hmac_sha256
> driver : qat_aes_cbc_hmac_sha512
> driver : qat_aes_ctr
> driver : qat_aes_xts
> driver : qat-dh
> driver : qat-rsa
>
>Note that if you are using the HEAD of cryptodev-2.6 you will have to
either revert 8893d27ffcaf6ec6267038a177cb87bcde4dd3de or apply
>https://patchwork.kernel.org/project/linux-crypto/list/?series=639755
as the algorithms have been temporarily disabled.
>
>Regards,
>
>--
>Giovanni
Hi Giovanni.
Thanks for the instructions, I did not know of this test.
I rebuilt my kernel on arm64 with those parameter and I confirm I get
the same output with
$ cat /proc/crypto | grep -B 4 passed | grep -e "qat_\|qat-" | sort
Kindly,
Yoan
next prev parent reply other threads:[~2022-05-18 13:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-16 10:16 [RFC PATCH 0/2] Crypto: Remove x86 dependency on " yoan.picchi
2022-05-16 10:16 ` [RFC PATCH 1/2] crypto: qat: replace get_current_node() with numa_node_id() yoan.picchi
2022-05-16 10:16 ` [RFC PATCH 2/2] Removes the x86 dependency on the QAT drivers yoan.picchi
2022-05-17 8:11 ` Ard Biesheuvel
2022-05-18 13:00 ` Yoan Picchi [this message]
2022-05-24 7:51 ` Giovanni Cabiddu
2022-05-25 13:12 ` Andre Przywara
2022-05-27 8:45 ` Giovanni Cabiddu
2022-05-18 15:55 ` Andre Przywara
2022-05-24 8:04 ` Ard Biesheuvel
2022-05-30 9:58 ` Yoan Picchi
2022-05-30 10:09 ` Ard Biesheuvel
2022-05-16 20:25 ` [RFC PATCH 0/2] Crypto: Remove x86 dependency on " Giovanni Cabiddu
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=8f6d8d1f-2872-15b9-d38b-1e8eb26f781b@foss.arm.com \
--to=yoan.picchi@foss.arm.com \
--cc=andre.przywara@arm.com \
--cc=ardb@kernel.org \
--cc=davem@davemloft.net \
--cc=giovanni.cabiddu@intel.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=qat-linux@intel.com \
--cc=yoan.picchi@arm.com \
/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
all inboxes | Powered by JetHome®