From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e39.co.us.ibm.com (e39.co.us.ibm.com [32.97.110.160]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e39.co.us.ibm.com", Issuer "GeoTrust SSL CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 58B69B6EF3 for ; Thu, 22 Mar 2012 08:41:43 +1100 (EST) Received: from /spool/local by e39.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 21 Mar 2012 15:41:40 -0600 Received: from d03relay01.boulder.ibm.com (d03relay01.boulder.ibm.com [9.17.195.226]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id 94EA63E40036 for ; Wed, 21 Mar 2012 15:40:59 -0600 (MDT) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay01.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q2LLewDk177476 for ; Wed, 21 Mar 2012 15:40:58 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q2LLevnl004996 for ; Wed, 21 Mar 2012 15:40:58 -0600 Message-ID: <1332366111.3858.56.camel@key-ThinkPad-W510> Subject: [PATCH 17/17] powerpc: crypto: enable the PFO-based encryption device From: Kent Yoder To: linux-kernel@vger.kernel.org Date: Wed, 21 Mar 2012 16:41:51 -0500 In-Reply-To: <1332365297.3858.5.camel@key-ThinkPad-W510> References: <1332365297.3858.5.camel@key-ThinkPad-W510> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: rcj@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, linux-crypto@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This patch adds the cas bits to advertise support for the Platform Facilities Option (PFO) based encryption accelerator device. The nx device driver provides support for this hardware feature. Signed-off-by: Kent Yoder --- arch/powerpc/kernel/prom_init.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index 6691077..fb5412e 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c @@ -716,6 +716,12 @@ static void __init early_cmdline_parse(void) #else #define OV5_PFO_HW_RNG 0x00 #endif +#if defined(CONFIG_CRYPTO_DEV_NX) || \ + defined(CONFIG_CRYPTO_DEV_NX_MODULE) +#define OV5_PFO_HW_ENCR 0x20 +#else +#define OV5_PFO_HW_ENCR 0x00 +#endif /* Option Vector 6: IBM PAPR hints */ #define OV6_LINUX 0x02 /* Linux is our OS */ @@ -783,7 +789,7 @@ static unsigned char ibm_architecture_vec[] = { 0, 0, 0, - OV5_PFO_HW_RNG, + OV5_PFO_HW_RNG | OV5_PFO_HW_ENCR, /* option vector 6: IBM PAPR hints */ 4 - 2, /* length */ -- 1.7.1