Search Linux Wireless

Re: [PATCH 4/6] qtnfmac: fix rmmod for missing firmware

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

 



On 2/8/2018 10:06 AM, Sergey Matyukevich wrote:
Hello Arend,

Thanks for review.

Check that firmware exists prior to starting firmware download.

Why would you do that? It seems expensive given that you obtain the
firmware and discard it immediately just to check it exists. Especially,
given that such a call can take 60 seconds to complete depending on
kernel config.

Apart from that see minor comment below although I would seriously
reconsider this patch altogether.

The idea behind this approach is simple: to quit early and to avoid starting
asynchronous card boot if no firmware file exists. However I didn't realize that
such a long delay may occur. What makes me worried is that the worst case
scenario may happen if firmware actually exists: we make two calls of
request_firmware, each of them taking long time.

The delay I mentioned here is when using FW_LOADER_USER_HELPER_FALLBACK option is selected and user-space is not handling the firmware request. This may happen when the driver is built-in and the user-space application is not yet started.

I agree that it makes a lot of sense to reimplement this approach requesting
firmware only once. Will do for v2.

Regards,
Arend




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux