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
This commit is contained in:
Mitchell Horne 2021-01-18 16:59:21 -04:00
parent 95ae95d413
commit a520f5ca58

View File

@ -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");