[PATCH] ath10k: change simulate_fw_crash to work with 10.1 firmware

Marek Puzyniak marek.puzyniak at tieto.com
Thu Feb 13 10:08:19 EST 2014

On 13 February 2014 15:52, Kalle Valo <kvalo at qca.qualcomm.com> wrote:
> Michal Kazior <michal.kazior at tieto.com> writes:
>> On 10 February 2014 18:13, Marek Puzyniak <marek.puzyniak at tieto.com> wrote:
>>> Wmi command WMI_FORCE_FW_HANG_CMDID is not supported
>>> in firmware 10.1. In order to have firmware crash simulation
>>> functionality also in firmware 10.1 driver can force firmware
>>> crash by performing not allowed operation. Driver can deliberately
>>> crash firmware when setting vdev param for vdev id out of range.
>>> Command to trigger firmware crash:
>>> echo "crash" > /sys/kernel/debug/ieee80211/phyX/ath10k/simulate_fw_crash
>>> Signed-off-by: Marek Puzyniak <marek.puzyniak at tieto.com>
>>> ---
>> The 'fw hang assert' crash can be recovered with a warm reset but a
>> real crash can't.
> Oh, I didn't know that.
>> Thus, I think the two crash methods should be distinguishable
> Yeah, I agree.
>> by having either two separate debugfs files or two separate trigger
>> keywords.
> I think having a keyword would be a better to way differentiate these.
> And if the firmware doesn't support WMI_FORCE_FW_HANG_ASSERT, then just
> return -EOPNOTSUPP.

I will send new version with different keyword for different kind of
firmware crash.


More information about the ath10k mailing list