[Skiboot] [PATCH V2] NX: Encryption is not supported with NX crypto on Power9

Haren Myneni haren at linux.vnet.ibm.com
Mon Feb 20 18:04:14 AEDT 2017


NX crypto will not be used for encryption on P9 due to performance
issues.

Signed-off-by: Haren Myneni <haren at us.ibm.com>
---
v2: Removed printing 'not supported on power9'

 hw/nx-crypto.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/hw/nx-crypto.c b/hw/nx-crypto.c
index 723c571..313d3ce 100644
--- a/hw/nx-crypto.c
+++ b/hw/nx-crypto.c
@@ -265,6 +265,11 @@ void nx_create_crypto_node(struct dt_node *node)
 		cfg_asym = pb_base + NX_P8_ASYM_CFG;
 		cfg_iq = pb_base + NX_P8_CRB_IQ;
 		cfg_ee = pb_base + NX_P8_EE_CFG;
+	} else if (dt_node_is_compatible(node, "ibm,power9-nx")) {
+		/*
+		 * Encryption is not supported with NX crypto on P9.
+		 */
+		return;
 	} else {
 		prerror("NX%d: ERROR: Unknown NX type!\n", gcid);
 		return;
-- 
1.7.1





More information about the Skiboot mailing list