Return-path: Received: from mail-we0-f178.google.com ([74.125.82.178]:42324 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754401Ab3HELSg convert rfc822-to-8bit (ORCPT ); Mon, 5 Aug 2013 07:18:36 -0400 Received: by mail-we0-f178.google.com with SMTP id u57so2287058wes.23 for ; Mon, 05 Aug 2013 04:18:35 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20130802162850.GL32474@in.waw.pl> References: <20130802162850.GL32474@in.waw.pl> From: Kay Sievers Date: Mon, 5 Aug 2013 13:18:15 +0200 Message-ID: (sfid-20130805_131841_784506_490EB5A3) Subject: Re: [systemd-devel] Slow firmware timeouts again (Re: [3.11 regression?] iwlwifi firmware takes two minutes to load) To: =?UTF-8?Q?Zbigniew_J=C4=99drzejewski=2DSzmek?= Cc: Andy Lutomirski , systemd-devel@lists.freedesktop.org, Linux Wireless List , linux-hotplug@vger.kernel.org, linux-kernel@vger.kernel.org, Intel Linux Wireless , Johannes Berg Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Fri, Aug 2, 2013 at 6:28 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Fri, Aug 02, 2013 at 09:04:44AM -0700, Andy Lutomirski wrote: >> CONFIG_FW_LOADER_USER_HELPER=y > Do you need this? Unsetting this should help. > > """This option enables / disables the invocation of user-helper > (e.g. udev) for loading firmware files as a fallback after the > direct file loading in kernel fails. The user-mode helper is > no longer required unless you have a special firmware file that > resides in a non-standard path.""" On recent systems, if the kernel configures CONFIG_FW_LOADER_USER_HELPER=y and a firmware is not found by the kernel, the kernel will issue a request which is ignored by userspace and will block in that for 60 seconds. Udev is no longer in the game of firmware loading, not even as a fallback, it will just completely ignore all kernel firmware class events. The source code in udev to handle firmware requests is disabled by default, currently still kept around for old kernels without the in-kernel firmware loader, but it will be deleted in the near future. Any issues with firmware timeouts should be addressed in the kernel by disabling CONFIG_FW_LOADER_USER_HELPER or by removing the fallback code from the in-kernel loader. Kay