Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757191AbYHDORv (ORCPT ); Mon, 4 Aug 2008 10:17:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754699AbYHDORl (ORCPT ); Mon, 4 Aug 2008 10:17:41 -0400 Received: from rhun.apana.org.au ([64.62.148.172]:60703 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753700AbYHDORk (ORCPT ); Mon, 4 Aug 2008 10:17:40 -0400 Date: Mon, 4 Aug 2008 22:17:30 +0800 From: Herbert Xu To: David Woodhouse Cc: Austin Zhang , davem@davemloft.net, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: Re: [PATCH] Using Intel CRC32 instruction to accelerate CRC32c algorithm by new crypto API. Message-ID: <20080804141730.GA11415@gondor.apana.org.au> References: <1217842507.20845.18.camel@localhost.localdomain> <1217859214.3454.629.camel@pmac.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1217859214.3454.629.camel@pmac.infradead.org> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 984 Lines: 27 On Mon, Aug 04, 2008 at 03:13:34PM +0100, David Woodhouse wrote: > > > +static int __init crc32c_intel_mod_init(void) > > +{ > > + return crypto_register_alg(&alg); > > +} > > + > > Am I missing something here, or are you registering the crypto algorithm > _unconditionally_ and then just causing init requests for it to fail on > older hardware? Wouldn't it be better to register the driver _only_ > when the hardware is capable? Or at least "if at least one cpu is > capable". Yes I think this is a show-stopper :) 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/