From: Herbert Xu Subject: Re: [PATCH -v2 5/5] crypto: Add PCLMULQDQ accelerated GHASH implementation Date: Thu, 6 Aug 2009 17:17:41 +1000 Message-ID: <20090806071741.GB25065@gondor.apana.org.au> References: <1249285531-22422-1-git-send-email-ying.huang@intel.com> <1249285531-22422-2-git-send-email-ying.huang@intel.com> <1249285531-22422-3-git-send-email-ying.huang@intel.com> <1249285531-22422-4-git-send-email-ying.huang@intel.com> <1249285531-22422-5-git-send-email-ying.huang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org To: Huang Ying Return-path: Received: from rhun.apana.org.au ([64.62.148.172]:54112 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752608AbZHFHRm (ORCPT ); Thu, 6 Aug 2009 03:17:42 -0400 Content-Disposition: inline In-Reply-To: <1249285531-22422-5-git-send-email-ying.huang@intel.com> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Mon, Aug 03, 2009 at 03:45:31PM +0800, Huang Ying wrote: > PCLMULQDQ is used to accelerate the most time-consuming part of GHASH, > carry-less multiplication. More information about PCLMULQDQ can be > found at: > > http://software.intel.com/en-us/articles/carry-less-multiplication-and-its-usage-for-computing-the-gcm-mode/ > > Because PCLMULQDQ changes XMM state, its usage must be enclosed with > kernel_fpu_begin/end, which can be used only in process context, the > acceleration is implemented as crypto_ahash. That is, request in soft > IRQ context will be defered to the cryptd kernel thread. > > Signed-off-by: Huang Ying Please resubmit this patch once irq_is_fpu_using() hits mainline. Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt