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

Haren Myneni haren at linux.vnet.ibm.com
Mon Feb 20 16:52:11 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>
---
 hw/nx-crypto.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/hw/nx-crypto.c b/hw/nx-crypto.c
index 723c571..48fc24d 100644
--- a/hw/nx-crypto.c
+++ b/hw/nx-crypto.c
@@ -265,6 +265,10 @@ 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")) {
+		prlog(PR_INFO, "NX: Encryption is not supported with "
+				"NX crypto on P9\n");
+		return;
 	} else {
 		prerror("NX%d: ERROR: Unknown NX type!\n", gcid);
 		return;
-- 
1.7.1





More information about the Skiboot mailing list