Search Linux Wireless

Re: [PATCH 1/4] ath10k: provide firmware crash info via debugfs.

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

 



Ben Greear <greearb@xxxxxxxxxxxxxxx> writes:

>>>> Instead of doing atomic allocations multiple times in a loop, would it
>>>> be better to allocate just one buffer before the loop and free it
>>>> afterwards?
>>>
>>> There is no hard guarantee that the buffer lengths are the same,
>>> so I think it needs to remain as is.  Would rather not crap out
>>> because firmware suddenly got more clever...
>>
>> This is related to my earlier comment about having a max len for the
>> buffers. So why not come up with a sane max length, allocate once a
>> temporary buffer of that length and use the same buffer in the loop?
>
> I can fix it at a 4k chunk if you want.  Current firmware uses around 2k chunk
> I believe, and only two buffers, so either way it's not a lot of work for CPU.

I think we should have a max chunk size in ath10k anyway and using one
buffer makes sense in that case.

-- 
Kalle Valo
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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

  Powered by Linux