From patchwork Mon Feb 20 07:04:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haren Myneni X-Patchwork-Id: 730247 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vS1bY1cmlz9s72 for ; Tue, 21 Feb 2017 11:29:45 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3vS1bY0y4JzDqJp for ; Tue, 21 Feb 2017 11:29:45 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3vRZPk3z5XzDq8X for ; Mon, 20 Feb 2017 18:04:42 +1100 (AEDT) Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v1K741p6098172 for ; Mon, 20 Feb 2017 02:04:40 -0500 Received: from e37.co.us.ibm.com (e37.co.us.ibm.com [32.97.110.158]) by mx0a-001b2d01.pphosted.com with ESMTP id 28pnxq2251-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 20 Feb 2017 02:04:40 -0500 Received: from localhost by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 20 Feb 2017 00:04:37 -0700 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e37.co.us.ibm.com (192.168.1.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 20 Feb 2017 00:04:34 -0700 Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id 78B263E40047; Mon, 20 Feb 2017 00:04:33 -0700 (MST) Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v1K74OvP10223904; Mon, 20 Feb 2017 00:04:24 -0700 Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 59D81BE175; Mon, 20 Feb 2017 00:04:24 -0700 (MST) Received: from [9.70.82.143] (unknown [9.70.82.143]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP id C18A1BE110; Mon, 20 Feb 2017 00:04:23 -0700 (MST) From: Haren Myneni To: stewart@linux.vnet.ibm.com Date: Sun, 19 Feb 2017 23:04:14 -0800 Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17022007-0024-0000-0000-000015F608F3 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006649; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000203; SDB=6.00824417; UDB=6.00403560; IPR=6.00601873; BA=6.00005155; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014353; XFM=3.00000011; UTC=2017-02-20 07:04:36 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17022007-0025-0000-0000-000048E6DD5F Message-Id: <1487574255.5897.35.camel@hbabu-laptop> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-02-20_05:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1702200072 X-Mailman-Approved-At: Tue, 21 Feb 2017 11:29:15 +1100 Subject: [Skiboot] [PATCH V2] NX: Encryption is not supported with NX crypto on Power9 X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: xinhui@linux.vnet.ibm.com, hbabu@us.ibm.com, apopple@au1.ibm.com, gcwilson@us.ibm.com, skiboot@lists.ozlabs.org, michael.neuling@au1.ibm.com Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" NX crypto will not be used for encryption on P9 due to performance issues. Signed-off-by: Haren Myneni --- 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;