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

Submitted by Haren Myneni on Feb. 20, 2017, 7:04 a.m.

Details

Message ID 1487574255.5897.35.camel@hbabu-laptop
State New
Headers show

Commit Message

Haren Myneni Feb. 20, 2017, 7:04 a.m.
NX crypto will not be used for encryption on P9 due to performance
issues.

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

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

Patch hide | download patch | download mbox

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;