From: Joe Perches Subject: Re: [PATCH] treewide: Update sha_transform Date: Tue, 09 Aug 2011 17:57:28 -0700 Message-ID: <1312937848.11924.44.camel@Joe-Laptop> References: <1312844837-10086-1-git-send-email-msb@chromium.org> <1312847115.1643.22.camel@Joe-Laptop> <20110809055226.GE6103@google.com> <1312880303.1676.5.camel@Joe-Laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Mandeep Singh Baines , linux-kernel@vger.kernel.org, Ramsay Jones , Nicolas Pitre , Joachim Eastwood , Andreas Schwab , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, GeertUytterhoeven To: Linus Torvalds Return-path: Received: from wondertoys-mx.wondertoys.net ([206.117.179.246]:44967 "EHLO labridge.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751164Ab1HJA5b (ORCPT ); Tue, 9 Aug 2011 20:57:31 -0400 In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: On Tue, 2011-08-09 at 08:41 -0700, Linus Torvalds wrote: > On Tue, Aug 9, 2011 at 1:58 AM, Joe Perches wrote: > > Eliminate possible sha_transform unaligned accesses to data by copying > > data to an aligned __u32 array if necessary. > This is wrong. Not only does it double the stack space, when I tried > it for git it just made things slower. So don't do it. Maybe the aligned copy should be in an #ifndef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS block. Maybe Mandeep could test aligned/unaligned speeds for his board?