Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1998936imm; Thu, 14 Jun 2018 07:14:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJWjfjX3DM3YeeCVE2c5OEulG72zhSZ6t9v4y6yUC6Q7xnxiKzqB7y1946SnjaSTc3bWZEi X-Received: by 2002:a63:2ac4:: with SMTP id q187-v6mr2532356pgq.333.1528985696876; Thu, 14 Jun 2018 07:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528985696; cv=none; d=google.com; s=arc-20160816; b=nqc1BX1rIck5TQuVl8Vw+1/fJbY9ZS4F9kh+BotNG7lQkpMmn/j5UEroG9DA0bi8hb j5OK3tqw8lsU9ymJna1gBbj0PjU4RYVSE1kCd/zPrRBPd5wpaaJWU2A28K1pVE/5qdVn HNCck5F5p5COndWhgu1JubWSohp8Uhq+trBQsG/ydG1vOVVMwhdTGfIWn6j7SDkeD7fL ocIeIISXoMYYS2SkvTNNY+e5BAyyI/fFMc+lHGZxqjdo0msUCc+lGsbmf2D6Jh0CnpQ4 7FuC4qSBet4W3nsuWPTsqpIhq84YYPZmZHOJU3RnvfCVfWJHhjEWi5Y1B7Dr7R5jy8WR g10Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=LQPW5USSbkVxWUCC8U8WPh1iqG5JV/ix1o/rZdJPmaw=; b=ydCFW8FoTWXdvyh2bL/yUMZMrcAUowVi0+CHlASYCMnCq43QuR26Al4h9/s7Xz1LvP UQGvH+SXdfcq9fwAZj3Un9g+FfXhRVwFoo1vFQ3gkN+forfTxOeZvlSke4St5DVXrXkR Klwv4l2Wjo+LC9FnoOcbgNhC0Ayz0wHpkDJFd5jThsGP8FhT+24K93VoRo7DkLyFUEAx 4nruZzfPKCnmKvv9qA4zq7n71XOBtC2mO9T3qaqH+TvLghgX69+hr/9uqnGSHNushm+W nKAlmC+faXN8C/xhOVu5ASdO7qLeIdmdNTz9jScc+6ZYy0sw+bflgRV924S0uKekxNFl vDKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iBoyoueS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si5660889plc.252.2018.06.14.07.14.42; Thu, 14 Jun 2018 07:14:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iBoyoueS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966295AbeFNONn (ORCPT + 99 others); Thu, 14 Jun 2018 10:13:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:55174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965675AbeFNONk (ORCPT ); Thu, 14 Jun 2018 10:13:40 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6D1B5208DA; Thu, 14 Jun 2018 14:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528985620; bh=t2D4EyYGc6V5ADSbrQDDkhFvkoV0GtQmBwZHyXF5Pm0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iBoyoueSqdXerJUGAbUacJBQHBgeow7OeiulEzwkJea/uI8xoJ6yd3Een+llNXnaz ieoNubVTP58f6BXj2rH+0CKfBhrIzcCsKyaB5vdrl6S+WH0ar1a8XWIwtcBKERdIrA ppwTpOD/8shxJ7dEGBXFsg0obG7nqEuqRQ2+blMc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Ellerman , Herbert Xu Subject: [PATCH 4.4 24/24] crypto: vmx - Remove overly verbose printk from AES init routines Date: Thu, 14 Jun 2018 16:05:19 +0200 Message-Id: <20180614132725.495896268@linuxfoundation.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180614132724.483802160@linuxfoundation.org> References: <20180614132724.483802160@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Michael Ellerman commit 1411b5218adbcf1d45ddb260db5553c52e8d917c upstream. In the vmx AES init routines we do a printk(KERN_INFO ...) to report the fallback implementation we're using. However with a slow console this can significantly affect the speed of crypto operations. Using 'cryptsetup benchmark' the removal of the printk() leads to a ~5x speedup for aes-cbc decryption. So remove them. Fixes: 8676590a1593 ("crypto: vmx - Adding AES routines for VMX module") Fixes: 8c755ace357c ("crypto: vmx - Adding CBC routines for VMX module") Fixes: 4f7f60d312b3 ("crypto: vmx - Adding CTR routines for VMX module") Fixes: cc333cd68dfa ("crypto: vmx - Adding GHASH routines for VMX module") Cc: stable@vger.kernel.org # v4.1+ Signed-off-by: Michael Ellerman Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- drivers/crypto/vmx/aes.c | 2 -- drivers/crypto/vmx/aes_cbc.c | 2 -- drivers/crypto/vmx/aes_ctr.c | 2 -- drivers/crypto/vmx/ghash.c | 2 -- 4 files changed, 8 deletions(-) --- a/drivers/crypto/vmx/aes.c +++ b/drivers/crypto/vmx/aes.c @@ -53,8 +53,6 @@ static int p8_aes_init(struct crypto_tfm alg, PTR_ERR(fallback)); return PTR_ERR(fallback); } - printk(KERN_INFO "Using '%s' as fallback implementation.\n", - crypto_tfm_alg_driver_name((struct crypto_tfm *) fallback)); crypto_cipher_set_flags(fallback, crypto_cipher_get_flags((struct --- a/drivers/crypto/vmx/aes_cbc.c +++ b/drivers/crypto/vmx/aes_cbc.c @@ -55,8 +55,6 @@ static int p8_aes_cbc_init(struct crypto alg, PTR_ERR(fallback)); return PTR_ERR(fallback); } - printk(KERN_INFO "Using '%s' as fallback implementation.\n", - crypto_tfm_alg_driver_name((struct crypto_tfm *) fallback)); crypto_blkcipher_set_flags( fallback, --- a/drivers/crypto/vmx/aes_ctr.c +++ b/drivers/crypto/vmx/aes_ctr.c @@ -53,8 +53,6 @@ static int p8_aes_ctr_init(struct crypto alg, PTR_ERR(fallback)); return PTR_ERR(fallback); } - printk(KERN_INFO "Using '%s' as fallback implementation.\n", - crypto_tfm_alg_driver_name((struct crypto_tfm *) fallback)); crypto_blkcipher_set_flags( fallback, --- a/drivers/crypto/vmx/ghash.c +++ b/drivers/crypto/vmx/ghash.c @@ -64,8 +64,6 @@ static int p8_ghash_init_tfm(struct cryp alg, PTR_ERR(fallback)); return PTR_ERR(fallback); } - printk(KERN_INFO "Using '%s' as fallback implementation.\n", - crypto_tfm_alg_driver_name(crypto_shash_tfm(fallback))); crypto_shash_set_flags(fallback, crypto_shash_get_flags((struct crypto_shash