]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
crypto: hifn - Disable driver when physical size exceeds 32 bits
authorEvgeniy Polyakov <johnpol@2ka.mipt.ru>
Sun, 12 Oct 2008 12:14:15 +0000 (20:14 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Dec 2008 00:01:07 +0000 (11:01 +1100)
commita44b56cc69a5b017f396ed1daeaef6a63e086656
treefdc9e72b5de1405a685153d6c702ff785ab999ae
parent4a6908a3a050aacc9c3a2f36b276b46c0629ad91
crypto: hifn - Disable driver when physical size exceeds 32 bits

On Tue, Sep 23, 2008 at 08:06:32PM +0200, Dimitri Puzin (max@psycast.de) wrote:
> With this patch applied it still doesn't work as expected. The overflow
> messages are gone however syslog shows
> [  120.924266] hifn0: abort: c: 0, s: 1, d: 0, r: 0.
> when doing cryptsetup luksFormat as in original e-mail. At this point
> cryptsetup hangs and can't be killed with -SIGKILL. I've attached
> SysRq-t dump of this condition.

Yes, I was wrong with the patch: HIFN does not support 64-bit addresses
afaics.

Attached patch should not allow HIFN to be registered on 64-bit arch, so
crypto layer will fallback to the software algorithms.

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hifn_795x.c