git: d970a8218e16 - stable/12 - armv8crypto: print a message on probe failure
Mitchell Horne
mhorne at FreeBSD.org
Thu Jan 21 17:12:41 UTC 2021
The branch stable/12 has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=d970a8218e16e3da8234f8b236d28919c1439090
commit d970a8218e16e3da8234f8b236d28919c1439090
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-21 17:12:00 +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
Sponsored by: The FreeBSD Foundation
(cherry picked from commit a520f5ca580fcff34fd0d9f0d64a4c165f57eb30)
---
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 c11053cc8e17..8cfb0ec5cb9d 100644
--- a/sys/crypto/armv8/armv8_crypto.c
+++ b/sys/crypto/armv8/armv8_crypto.c
@@ -110,6 +110,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");
More information about the dev-commits-src-all
mailing list