Reporting firmware stats to ethtool

Kalle Valo kvalo at qca.qualcomm.com
Fri Aug 8 23:30:06 PDT 2014


Arend van Spriel <arend at broadcom.com> writes:

>>> I do kind of prefer 64 bit counters in the general case. Nuke it from
>>> orbit, it's the only way to be sure.
>>
>> It's 64-bit to user-space, but that means nothing because firmware
>> uses 32-bit (or even 16 bit in some cases, probably) internally.
>> A great deal of counters are the same, so be very careful when
>> trying to keep long term counters grabbed from firmware/drivers/hardware.
>>
>> And, stations come and go when you re-associate, so all sorts of wifi counters
>> reset themselves all the time...
>
> Does ath driver notify mac80211 about firmware restart, ie. through
> ieee80211_restart_hw().

ath10k does use ieee80211_restart_hw().

> If only user-space could get that info.

Yeah, that would be nice to have for ath10k firmware crash dump
functionality. And doesn't Android also need something similar?

-- 
Kalle Valo



More information about the ath10k mailing list