Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751519AbbLURyr (ORCPT ); Mon, 21 Dec 2015 12:54:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59300 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751299AbbLURyp (ORCPT ); Mon, 21 Dec 2015 12:54:45 -0500 Subject: Re: firmware_class warnings on resume To: Andy Lutomirski , Ming Lei , "linux-kernel@vger.kernel.org" References: From: Laura Abbott Message-ID: <56783CE4.8080405@redhat.com> Date: Mon, 21 Dec 2015 09:54:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1245 Lines: 36 On 12/20/2015 04:20 AM, Andy Lutomirski wrote: > I hit this warning fairly frequently when resuming 4.4-rc5: > > ret = usermodehelper_read_trylock(); > if (WARN_ON(ret)) { > dev_err(device, "firmware: %s will not be loaded\n", > name); > goto out; > } > > It seems like it could be improved in two ways fairly easily: > > 1. Shouldn't firmware_class try the direct load before trying to get > the usermodehelper lock? > > 2. Why is the !NOWAIT case doing a trylock? That seems wrong. > > --Andy > I saw the same warning coming from the bluetooth stack, see the thread http://article.gmane.org/gmane.linux.kernel/1950940 and http://article.gmane.org/gmane.linux.kernel/1940130. At least in the bluetooth case, the conclusion was the firmware request should not be happening at that point in time and the reset_resume function should be implemented instead. I put that work aside and haven't picked it up again. Thanks, Laura -- 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/