From: Tetsuo Handa Subject: Re: [PATCH 3.11-rc1] crypto: Fix boot failure due to moduledependency. Date: Sat, 20 Jul 2013 11:19:17 +0900 Message-ID: <201307201119.FHF34361.FLFOJHFQVSOOMt@I-love.SAKURA.ne.jp> References: <20130719231630.GC1701@kroah.com> <51E9C9E5.2060602@zytor.com> <20130719232459.GA18039@gondor.apana.org.au> <1374277033.22432.384.camel@schen9-DESK> <1374283864.22432.393.camel@schen9-DESK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: hpa@zytor.com, gregkh@linuxfoundation.org, rjw@rjwysocki.net, rafael.j.wysocki@intel.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, ak@linux.intel.com, linux-acpi@vger.kernel.org To: tim.c.chen@linux.intel.com, herbert@gondor.apana.org.au Return-path: Received: from www262.sakura.ne.jp ([202.181.97.72]:50210 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753470Ab3GTCUy (ORCPT ); Fri, 19 Jul 2013 22:20:54 -0400 In-Reply-To: <1374283864.22432.393.camel@schen9-DESK> Sender: linux-crypto-owner@vger.kernel.org List-ID: Tim Chen wrote: > On Fri, 2013-07-19 at 16:37 -0700, Tim Chen wrote: > > Herbert, > > > > I've tried the module alias approach (see my earlier mail with patch) > > but it didn't seem to load things properly. Can you check to see if > > there's anything I did incorrectly. > > > > Tim > > I fixed a missing request_module statement in crct10dif library. > So now things work if I have the following config: > > CONFIG_CRYPTO_CRCT10DIF=m > CONFIG_CRYPTO_CRCT10DIF_PCLMUL=m > CONFIG_CRC_T10DIF=m > > However, when I have the library and generic algorithm compiled in, > I do not see the PCLMULQDQ version loaded. > > CONFIG_CRYPTO_CRCT10DIF=y > CONFIG_CRYPTO_CRCT10DIF_PCLMUL=m > CONFIG_CRC_T10DIF=y > > Perhaps I am initiating the crct10dif library at a really early > stage when things are compiled in, where the module is not in > initramfs? In that case, perhaps we should only allow > PCLMUL version to be compiled in > and not exist as a module? I think that use of request_module("crct10dif") does not help loading crct10dif-pclmul.ko when CONFIG_CRC_T10DIF=y CONFIG_CRYPTO_CRCT10DIF_PCLMUL=m , for there is no / directory (note that the initramfs is not yet mounted as / for loading modules which are not in vmlinux) when any module_init() functions which are in vmlinux are called.