From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751842AbbGMQuY (ORCPT ); Mon, 13 Jul 2015 12:50:24 -0400 Received: from e24smtp04.br.ibm.com ([32.104.18.25]:37107 "EHLO e24smtp04.br.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751140AbbGMQuW (ORCPT ); Mon, 13 Jul 2015 12:50:22 -0400 X-Helo: d24dlp01.br.ibm.com X-MailFrom: leosilva@linux.vnet.ibm.com X-RcptTo: linux-kernel@vger.kernel.org Date: Mon, 13 Jul 2015 13:50:14 -0300 From: "Leonidas S. Barbosa" To: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org, Herbert Xu , pfsmorigo@linux.vnet.ibm.com, Michael Ellerman Subject: [PATCH 0/2] Uncomment VSX enable routine for instructions access Message-ID: <20150713165011.GA3356@bluepex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15071316-0029-0000-0000-000003FF4C85 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org enable_kernel_vsx() was commented since anything was using it. It changes with vmx_crypto driver that call VSX instructions and need kernel_vsx enabled in order to do it properly. Without a way to enable VSX instruction vmx_crypto fails into an exception. These patches uncomment enable_kernel_vsx() rountine and put it available for use. Also adds it in vmx_crypto in order to enable kernel_vsx before use VSX instructions. Leonidas S. Barbosa (2): Uncomment and make enable_kernel_vsx() routine available Adding enable_kernel_vsx() to access VSX instructions arch/powerpc/include/asm/switch_to.h | 1 + arch/powerpc/kernel/process.c | 3 --- drivers/crypto/vmx/aes.c | 3 +++ drivers/crypto/vmx/aes_cbc.c | 3 +++ drivers/crypto/vmx/aes_ctr.c | 3 +++ drivers/crypto/vmx/ghash.c | 4 ++++ 6 files changed, 14 insertions(+), 3 deletions(-) -- 2.1.0