git: a520f5ca580f - main - armv8crypto: print a message on probe failure
Mitchell Horne
mhorne at FreeBSD.org
Mon Jan 18 21:12:17 UTC 2021
The branch main has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=a520f5ca580fcff34fd0d9f0d64a4c165f57eb30
commit a520f5ca580fcff34fd0d9f0d64a4c165f57eb30
Author: Mitchell Horne <mhorne at FreeBSD.org>
AuthorDate: 2021-01-18 20:59:21 +0000
Commit: Mitchell Horne <mhorne at FreeBSD.org>
CommitDate: 2021-01-18 20:59:21 +0000
armv8crypto: print a message on probe failure
Similar to the message printed by aesni(4), let the user know if the
driver is unsupported by their CPU.
PR: 252543
Reported by: gbe
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
---
sys/crypto/armv8/armv8_crypto.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/crypto/armv8/armv8_crypto.c b/sys/crypto/armv8/armv8_crypto.c
index 90d096b53b1a..f296337e6f33 100644
--- a/sys/crypto/armv8/armv8_crypto.c
+++ b/sys/crypto/armv8/armv8_crypto.c
@@ -112,6 +112,9 @@ armv8_crypto_probe(device_t dev)
case ID_AA64ISAR0_AES_PMULL:
ret = 0;
break;
+ case ID_AA64ISAR0_AES_NONE:
+ device_printf(dev, "CPU lacks AES instructions");
+ break;
}
device_set_desc_copy(dev, "AES-CBC,AES-XTS");
More information about the dev-commits-src-main
mailing list