From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932618AbbJPTfS (ORCPT ); Fri, 16 Oct 2015 15:35:18 -0400 Received: from mx2.suse.de ([195.135.220.15]:45638 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753550AbbJPTfQ (ORCPT ); Fri, 16 Oct 2015 15:35:16 -0400 Date: Fri, 16 Oct 2015 21:35:12 +0200 From: "Luis R. Rodriguez" To: Dmitry Torokhov Cc: Arend van Spriel , Greg Kroah-Hartman , Ming Lei , Takashi Iwai , Linus Torvalds , Liam Girdwood , "Jie, Yang" , "joonas.lahtinen@linux.intel.com" , Al Viro , Kay Sievers , David Woodhouse , lkml , yalin wang , Tom Gundersen , Johannes Berg , Julia Lawall Subject: Re: Problems loading firmware using built-in drivers with kernels that use initramfs. Message-ID: <20151016193512.GC9528@wotan.suse.de> References: <55E6E70F.80907@broadcom.com> <55E6E7FD.8030401@broadcom.com> <20150902185842.GC8051@wotan.suse.de> <55E76418.7070006@broadcom.com> <20150902232249.GK8051@wotan.suse.de> <55E88206.5050106@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 03, 2015 at 10:33:51AM -0700, Dmitry Torokhov wrote: > On Thu, Sep 3, 2015 at 10:23 AM, Arend van Spriel wrote: > > On 09/03/2015 01:46 AM, Luis R. Rodriguez wrote: > >> > >> On Wed, Sep 2, 2015 at 4:29 PM, Dmitry Torokhov > >> wrote: > >>> > >>> On Wed, Sep 2, 2015 at 4:22 PM, Luis R. Rodriguez > >>> wrote: > >>>> IMHO its just as hacky as using -EPROBE_DEFER too, but its at least > >>>> preemptively hacky. Sadly I can't think of clear and clever way for the > >>>> kernel > >>>> to know when firmware will be ready either... Would userspace know? > >>>> Should the > >>>> kernel learn this from userspace ? > >>> > >>> > >>> Yes. Given only userspace knows when firmware is available (I could > >>> have it on a separate device and mount it at some time). So maybe > >>> userpsace should simply try and scan busses for unbound devices and > >>> tell them to re-probe when it decides that firmware is finally > >>> available. > >> > >> > >> OK, the folks wanting this mechanism can implement it then. Short of > >> that we only have hacks. > > > > > > So what does "userspace knows when firmware is available" mean here. The > > specific firmware file the driver wants or the collection of firmware files > > which may or may not have the specific firmware file the driver wants. I > > assume the latter and re-probe will fail as expected. > > Right, the latter. Arend, curious are you working on this? Me and Julia did some hunting and have found quite a bit of users that could use this. I'll provide results in another thread but figured I'd follow up to see if anyone is working to address this. Otherwise we just have hacks for now. Luis