From: Francois Romieu <romieu@fr.zoreil.com>
To: "Luis R. Rodriguez" <mcgrof@suse.com>
Cc: cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org
Subject: Re: SmPL for automatic request_firmware_nowait() conversion
Date: Sat, 21 Jun 2014 12:52:05 +0200 [thread overview]
Message-ID: <20140621105205.GA31611@electric-eye.fr.zoreil.com> (raw)
In-Reply-To: <20140621015714.GX4841@wotan.suse.de>
Luis R. Rodriguez <mcgrof@suse.com> :
> I was just porting over an ethernet driver [0] to use request_firmware_nowait()
> since firmware loading seems can take over a minute on one device, while
> at it I noticed no other ethernet drivers yet use this API so figure
> this may be a trend coming if devices are getting as complex as cxgb4.
> The cxgb4 driver happens to even use the firmware API 3 times!
There should be no problem for the firmware requests issued through
ethtool in cxgb4.
[...]
> netdev: how worthy is this effort?
Biased comment below :o)
I'm wondering the benefit of automatic API changes when it could be argued
that the symptoms call for driver dependant code rework.
The 60 seconds delay is kind of a pavlovian signal: one can bet that the
driver includes a request_firmware in its probe method. So does cxgb4.
I still believe in the old school "request firmware from net_device_ops.open".
I've been happy with it since f1e02ed109df5f99abf942b8ccc99960cb09dd38.
This kind of rework may not be trivial for cxgb4. Please get code tested on
real hardware (modular/monolithic build, with/without firmware, etc.) as I
won't argue against your crusade for cxgb4.
Asynchronous firmware loading provides a rather nice high level API but
it's imho not the essence of network devices firmware loading problems.
--
Ueimor
next prev parent reply other threads:[~2014-06-21 10:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-21 1:57 Luis R. Rodriguez
2014-06-21 6:37 ` [Cocci] " Julia Lawall
2014-06-21 6:50 ` SF Markus Elfring
2014-06-21 10:52 ` Francois Romieu [this message]
2014-06-23 23:21 ` Luis R. Rodriguez
2014-06-24 0:32 ` [Cocci] " Luis R. Rodriguez
2014-06-24 21:58 ` Francois Romieu
2014-06-24 22:06 ` Luis R. Rodriguez
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=20140621105205.GA31611@electric-eye.fr.zoreil.com \
--to=romieu@fr.zoreil.com \
--cc=cocci@systeme.lip6.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=mcgrof@suse.com \
--cc=netdev@vger.kernel.org \
/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®