[linux-pm] PM vs. usermode helpers: request_firmware() must die

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HI!

> The main problem here is: request_firmware(). Drivers tend to use that
> synchronous interface to request a firmware from userland. In our case,
> that mean they would deadlock (or timeout) and fail...
> 
> There is an asynchronous version of request_firmware() that perfectly
> fits, however, it makes things slightly more complicated for drivers
> wanting to use it, so I suspect unless told to do so using brute force,
> drivers maintainers won't go that way. Which basically means deprecating
> request_firmware() in favor of request_firmware_nowait().

Actually, request_firmware_nowait does not help. Userland would see
non-functional hardware after resume but before
request_firmware_nowait() is done. That would hurt for example with
nfsroot and firmware over nfs, or just general confusion "why is this
f***ing network card broken".

Solution seems to be "do request_firmware before suspend begins, and
cache it in memory".
								Pavel
-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux