From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757252AbbBFQzH (ORCPT ); Fri, 6 Feb 2015 11:55:07 -0500 Received: from e24smtp04.br.ibm.com ([32.104.18.25]:50847 "EHLO e24smtp04.br.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752315AbbBFQzE (ORCPT ); Fri, 6 Feb 2015 11:55:04 -0500 Date: Fri, 6 Feb 2015 14:54:55 -0200 From: "Leonidas S. Barbosa" To: Herbert Xu , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCHv2 0/7] Add VMX module for PPC64 Message-ID: <20150206165452.GA21740@bluepex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15020616-0029-0000-0000-000002BB494F Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VMX cryptographic acceleration instructions were added to the POWER8 CPU. These instructions implement portions of AES and GHASH in hardware. This patch set adds a new module for PPC64, vmx, that support cryptographic routines such as AES and GHASH on hardware. In order to access VMX instructions on Power 8 CPU this module uses scripts implemented in colaboration with OpenSSL. Changelog[v2] 1. Patch style fixes 2. Redo unecessary conditions on drivers/crypto/Kconfig and vmx/Makefile in previous [Patch 7/7] Leonidas S. Barbosa (2): Add support for VMS instructions by ASM Enabling VMX module for PPC64 Marcelo H. Cerri (5): Adding VMX module for Power 8 Adding AES routines for VMX module Adding CBC routines for VMX module Adding CTR routines for VMX module Adding GHASH routines for VMX module drivers/crypto/Kconfig | 9 + drivers/crypto/Makefile | 1 + drivers/crypto/vmx/Kconfig | 8 + drivers/crypto/vmx/Makefile | 19 + drivers/crypto/vmx/aes.c | 139 +++ drivers/crypto/vmx/aes_cbc.c | 184 ++++ drivers/crypto/vmx/aes_ctr.c | 167 ++++ drivers/crypto/vmx/aesp8-ppc.h | 20 + drivers/crypto/vmx/aesp8-ppc.pl | 1940 +++++++++++++++++++++++++++++++++++++ drivers/crypto/vmx/ghash.c | 214 ++++ drivers/crypto/vmx/ghashp8-ppc.pl | 234 +++++ drivers/crypto/vmx/ppc-xlate.pl | 226 +++++ drivers/crypto/vmx/vmx.c | 88 ++ 13 files changed, 3249 insertions(+) create mode 100644 drivers/crypto/vmx/Kconfig create mode 100644 drivers/crypto/vmx/Makefile create mode 100644 drivers/crypto/vmx/aes.c create mode 100644 drivers/crypto/vmx/aes_cbc.c create mode 100644 drivers/crypto/vmx/aes_ctr.c create mode 100644 drivers/crypto/vmx/aesp8-ppc.h create mode 100755 drivers/crypto/vmx/aesp8-ppc.pl create mode 100644 drivers/crypto/vmx/ghash.c create mode 100755 drivers/crypto/vmx/ghashp8-ppc.pl create mode 100755 drivers/crypto/vmx/ppc-xlate.pl create mode 100644 drivers/crypto/vmx/vmx.c -- 2.1.0