From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751724AbbJQIb5 (ORCPT ); Sat, 17 Oct 2015 04:31:57 -0400 Received: from mail-gw3-out.broadcom.com ([216.31.210.64]:61673 "EHLO mail-gw3-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751195AbbJQIbx (ORCPT ); Sat, 17 Oct 2015 04:31:53 -0400 X-IronPort-AV: E=Sophos;i="5.17,692,1437462000"; d="scan'208";a="77721135" Message-ID: <56220774.1030708@broadcom.com> Date: Sat, 17 Oct 2015 10:31:48 +0200 From: Arend van Spriel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "Luis R. Rodriguez" , Dmitry Torokhov CC: 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. 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> <20151016193512.GC9528@wotan.suse.de> In-Reply-To: <20151016193512.GC9528@wotan.suse.de> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/16/2015 09:35 PM, Luis R. Rodriguez wrote: > 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. Not doing much else than diaper changes these days. Seems to me based on the above that from kernel perspective we can not do much when firmware mounts are controlled by user-space. Regards, Arend