From: Takashi Iwai <tiwai@suse.de>
To: Jean-Michel Hautbois <jhautbois@gmail.com>
Cc: Shuah Khan <shuahkhan@gmail.com>,
B_B_Singh@dell.com, Greg KH <gregkh@linuxfoundation.org>,
Arnd Bergmann <arnd@arndb.de>, Kay Sievers <kay@vrfy.org>,
Ming Lei <ming.lei@canonical.com>, Stefan Roese <sr@denx.de>,
Tom Gundersen <teg@jklm.no>,
Stuart_Hayes@dell.com, Srinivas_G_Gowda@dell.com,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: patch "firmware loader: allow disabling of udev as firmware loader" added to driver-core tree
Date: Wed, 06 Aug 2014 12:52:42 +0200 [thread overview]
Message-ID: <s5h61i56gat.wl%tiwai@suse.de> (raw)
In-Reply-To: <CAL8zT=j6DJ_JX7OT7csmuQPQj2AnwDxDvtBtui-i4PTbeGwmWw@mail.gmail.com>
At Wed, 6 Aug 2014 12:50:28 +0200,
Jean-Michel Hautbois wrote:
>
> 2014-08-06 12:21 GMT+02:00 Takashi Iwai <tiwai@suse.de>:
> > At Wed, 6 Aug 2014 11:44:14 +0200,
> > Jean-Michel Hautbois wrote:
> >>
> >> 2014-08-06 11:24 GMT+02:00 Takashi Iwai <tiwai@suse.de>:
> >> > At Wed, 6 Aug 2014 11:10:27 +0200,
> >> > Jean-Michel Hautbois wrote:
> >> >>
> >> >> 2014-08-05 21:22 GMT+02:00 Shuah Khan <shuahkhan@gmail.com>:
> >> >> > On Tue, Aug 5, 2014 at 10:01 AM, Takashi Iwai <tiwai@suse.de> wrote:
> >> >> >>> Yes, it worked, if the firmware was in the /lib/firmware directory.
> >> >> >>
> >> >> >
> >> >> > ok it works when the firmware is in /lib/firmware. It sounds to me the
> >> >> > reason load fails when the firmware is under /sys/class/firmware is
> >> >> > fw_load_from_user_helper() returns -ENOENT when
> >> >> > CONFIG_FW_LOADER_USER_HELPER is disabled.
> >> >> >
> >> >> > It would be nice to see the entire dmesg with debug enabled though.
> >> >> >
> >> >> > -- Shuah
> >> >>
> >> >> It does not work with the 3.16 kernel even when firmware is in
> >> >> /lib/firmware, it worked before this patch is applied.
> >> >
> >> > Hm? 3.16 doesn't contain my patch yet. It's merged for 3.17-rc1.
> >>
> >> Oh, you are right of course, I am on upstream kernel and I have your
> >> patch. I don't mean your match is causing the issue though ;-).
> >
> > I see.
> >
> >> >> Here is what I got in my dmesg :
> >> >> [ 0.307856] __allocate_fw_buf: fw-lattice-ecp3.bit buf=bd81a480
> >> >> [ 0.308029] lattice-ecp3 spi2.3: Direct firmware load for
> >> >> lattice-ecp3.bit failed with error -2
> >> >
> >> > It's -ENOENT. Are you sure that you really have
> >> > /lib/firmware/lattice-ecp3.bit file?
> >>
> >> Yes :
> >> ls -al /lib/firmware/lattice-ecp3.bit
> >> -rwxr-xr-x 1 root root 897753 Aug 5 15:04 /lib/firmware/lattice-ecp3.bit
> >
> > Then you'd better bisect...
> > Or, at least, put a debug code to see which file is opened in the loop
> > in fw_get_filesystem_firmware().
>
> Well, when this function is called, my rootfs is not yet mounted (I
> have a dedicated partition on a SDCard)...
> So I probably missed a step in order to get /lib/firmware before / is
> mounted... ?
Yeah, possibly :) Maybe you did put /lib/firmware/* into initrd in
the earlier tests?
Takashi
next prev parent reply other threads:[~2014-08-06 10:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <14048583172593@kroah.com>
[not found] ` <8B2F6FFD0BD1E448853114367400A37306FD6FBBE9@BLRX7MCDC203.AMER.DELL.COM>
[not found] ` <20140710143144.GA17639@kroah.com>
[not found] ` <8B2F6FFD0BD1E448853114367400A37306FD6FBBF0@BLRX7MCDC203.AMER.DELL.COM>
2014-07-10 14:54 ` Greg KH
2014-07-10 15:24 ` B_B_Singh
[not found] ` <s5h38e9mg5v.wl%tiwai@suse.de>
[not found] ` <8B2F6FFD0BD1E448853114367400A37306FD6FBBF8@BLRX7MCDC203.AMER.DELL.COM>
[not found] ` <s5hy4w1l0s3.wl%tiwai@suse.de>
[not found] ` <8B2F6FFD0BD1E448853114367400A37306FD6FBC06@BLRX7MCDC203.AMER.DELL.COM>
[not found] ` <s5hpphdkyi6.wl%tiwai@suse.de>
[not found] ` <8B2F6FFD0BD1E448853114367400A37306FD6FBDAB@BLRX7MCDC203.AMER.DELL.COM>
[not found] ` <s5hoawvkimg.wl%tiwai@suse.de>
[not found] ` <8B2F6FFD0BD1E448853114367400A37306FE07C773@BLRX7MCDC203.AMER.DELL.COM>
[not found] ` <s5h7g3frmg7.wl%tiwai@suse.de>
[not found] ` <8B2F6FFD0BD1E448853114367400A37306FE07CC64@BLRX7MCDC203.AMER.DELL.COM>
[not found] ` <s5hlhrrizbq.wl%tiwai@suse.de>
2014-08-01 20:01 ` B_B_Singh
2014-08-05 15:43 ` Jean-Michel Hautbois
2014-08-05 15:53 ` Takashi Iwai
2014-08-05 15:55 ` Jean-Michel Hautbois
2014-08-05 16:01 ` Takashi Iwai
2014-08-05 19:22 ` Shuah Khan
2014-08-06 9:10 ` Jean-Michel Hautbois
2014-08-06 9:24 ` Takashi Iwai
2014-08-06 9:44 ` Jean-Michel Hautbois
2014-08-06 10:21 ` Takashi Iwai
2014-08-06 10:50 ` Jean-Michel Hautbois
2014-08-06 10:52 ` Takashi Iwai [this message]
2014-08-06 11:24 ` Jean-Michel Hautbois
2014-08-06 12:24 ` Takashi Iwai
2014-08-06 19:00 ` Shuah Khan
2014-08-07 7:57 ` Takashi Iwai
2014-08-07 13:23 ` Shuah Khan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5h61i56gat.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=B_B_Singh@dell.com \
--cc=Srinivas_G_Gowda@dell.com \
--cc=Stuart_Hayes@dell.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=jhautbois@gmail.com \
--cc=kay@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.lei@canonical.com \
--cc=shuahkhan@gmail.com \
--cc=sr@denx.de \
--cc=teg@jklm.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®