ath10k: firmware crash dump
v8 cover ath10k: firmware crash dump
And yet another version of firmware crash dumps. Now I dropped all dumps except firmware registers and tested all the features myself.
v8:
* ATH10K_FW_CRASH_DUMP_REGDUMP -> ATH10K_FW_CRASH_DUMP_REGISTERS
* drop storing of dbglogs in patch 2
* drop patches adding stack and BSS dumps as they are still untested
* fix endian issue with the register dump
v7:
* really send "ath10k: print more driver info when firmware crashes", I had accidentally dropped it in previous series
* add ATH10K_FW_CRASH_DUMP_VERSION (Michal)
* remove extra newline (Michal)
* fix unprotected access of crashed_since_read in
ath10k_fw_crash_dump_open() (Michal)
* take data_lock only once in ath10k_build_dump_file() (Michal)
* use vzalloc() instead of vmalloc() and memset() in ath10k_build_dump_file()
* fix memory leak in ath10k_debug_create() (Michal)
* always use little endian in the dump file and drop endian field from the dump file (Michal)
* print uuid in LE format
v6:
* fix vzalloc(sizeof(ar->debug.fw_crash_data)), fixes the crash I saw (Ben)
* "Target Register Dump" -> "firmware register dump"
* add ath10k_print_driver_info()
* take timestamp at crash time instead of crash-dump-gather time (Ben)
* fix locking comment in struct ath10k::fw (Ben)
* move "crash_data->crashed_since_read = true" to
ath10k_debug_get_new_few_crash_data()
* ath10k_pci_hif_dump_area() holds the lock all the time so that we can guarantee that changes to ath10k_fw_crash_data are atomic
* take data_lock earlier in ath10k_build_dump_file() so that all access to crash_data is protected
* rename debugfs file fw_crash_dump
* fw_crash_dump debugfs files returns -ENODATA if there's no new crash dump
* store bss addresses and lengths as u32 in struct ath10k::fw
v5:
* dump_data->tv_sec and tv_nsec to 64 bits (because long can be 32 bits on some platforms)
* fix long lines
* renamed ath10k_dbg_save_fw_dbg_buffer() to ath10k_debug_dbglog_add()
* add helpers for ath10k_pci_diag* functions
* refactor and rename ath10k_pci_hif_dump_area()
* latest crash dump is always stored (instead of the oldest unread)
* add ath10k_debug_get_fw_crash_data()
* move fw_r?m_bss_* fields to ar->fw
* struct ath10k_fw_crash_data is allocated with vmalloc()
* atomic allocation in ath10k_pci_dump_bss() is bad, fix that by using vmalloc in module initialisation
* separate FW IE entries for BSS regions
* don't use ath10k_err()
* simplify locking and memory allocation for FW IE handling
* add uuid
* move struct ath10k_dump_file_data and enum ath10k_fw_error_dump_type to debug.c
* function and variable naming, using ath10k_fw_crash_ prefix etc
* change warning and debug messages to follow ath10k style
* add ath10k_debug_get_new_fw_crash_data() to avoid ifdefs in pci.c
---
Ben Greear (1):
ath10k: provide firmware crash info via debugfs
Kalle Valo (3):
ath10k: add ath10k_pci_diag_* helpers
ath10k: rename ath10k_pci_hif_dump_area() to ath10k_pci_fw_crashed_dump()
ath10k: print more driver info when firmware crashes
drivers/net/wireless/ath/ath10k/core.c | 17 -- drivers/net/wireless/ath/ath10k/core.h | 13 ++ drivers/net/wireless/ath/ath10k/debug.c | 267 +++++++++++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/debug.h | 16 ++ drivers/net/wireless/ath/ath10k/hw.h | 2 drivers/net/wireless/ath/ath10k/pci.c | 104 +++++++++--- drivers/net/wireless/ath/ath10k/pci.h | 3 7 files changed, 373 insertions(+), 49 deletions(-)
PATCH v8 1/4 ath10k: add ath10k_pci_diag_* helpers
ath10k_pci_diag_read32() is for reading u32 from a device and ath10k_pci_diag_read_hi() is a helper for reading data using "host interest" table.
--- drivers/net/wireless/ath/ath10k/pci.c | 55 +++++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 17 deletions(-)
drivers/net/wireless/ath/ath10k/pci.c +38 -17
@@ -460,13 +460,46 @@ done:return ret; } +static int ath10k_pci_diag_read32 (struct ath10k *ar,u32 address,u32 *value) +{ +return ath10k_pci_diag_read_mem (ar, address, value,sizeof (u32)); +} + +static int __ath10k_pci_diag_read_hi (struct ath10k *ar,void *dest, +u32 src,u32 len) +{ +u32 host_addr, addr; +int ret; + + host_addr =host_interest_item_address (src); + + ret =ath10k_pci_diag_read32 (ar, host_addr, &addr); +if (ret !=0 ) { +ath10k_warn ("failed to get memcpy hi address for firmware address %d: %d\n" , + src, ret); +return ret; + } + + ret =ath10k_pci_diag_read_mem (ar, addr, dest, len); +if (ret !=0 ) { +ath10k_warn ("failed to memcpy firmware memory from %d (%d B): %d\n" , + addr, len, ret); +return ret; + } + +return 0 ; +} + +#define ath10k_pci_diag_read_hi (ar, dest, src, len) \ + __ath10k_pci_diag_read_hi(ar, dest, HI_ITEM(src), len); +/* Read 4-byte aligned data from Target memory or register */ static int ath10k_pci_diag_read_access (struct ath10k *ar,u32 address,u32 *data) {/* Assume range doesn't cross this boundary */ if (address >=DRAM_BASE_ADDRESS ) -return ath10k_pci_diag_read_mem (ar, address, data,sizeof (u32)); +return ath10k_pci_diag_read32 (ar, address, data); *data =ath10k_pci_read32 (ar, address);return 0 ;
@@ -801,9 +834,7 @@ static u16 ath10k_pci_hif_get_free_queue_number(struct ath10k *ar, u8 pipe)static void ath10k_pci_hif_dump_area (struct ath10k *ar) { -u32 reg_dump_area =0 ;u32 reg_dump_values[REG_DUMP_COUNT_QCA988X ] = {}; -u32 host_addr;int ret;u32 i;
@@ -812,21 +843,11 @@ static void ath10k_pci_hif_dump_area(struct ath10k *ar) ar->hw_params.name, ar->target_version);ath10k_err ("firmware version: %s\n" , ar->hw->wiphy->fw_version); - host_addr =host_interest_item_address (HI_ITEM (hi_failure_state)); - ret =ath10k_pci_diag_read_mem (ar, host_addr, - ®_dump_area,sizeof (u32)); + ret =ath10k_pci_diag_read_hi (ar, ®_dump_values[0 ], + hi_failure_state, +REG_DUMP_COUNT_QCA988X *sizeof (u32));if (ret) { -ath10k_err ("failed to read FW dump area address: %d\n" , ret); -return ; - } - -ath10k_err ("target register Dump Location: 0x%08X\n" , reg_dump_area); - - ret =ath10k_pci_diag_read_mem (ar, reg_dump_area, - ®_dump_values[0 ], -REG_DUMP_COUNT_QCA988X *sizeof (u32)); -if (ret !=0 ) { -ath10k_err ("failed to read FW dump area: %d\n" , ret); +ath10k_err ("failed to read firmware dump area: %d\n" , ret);return ; }
PATCH v8 2/4 ath10k: provide firmware crash info via debugfs
In reply to Kalle ValoFrom: Ben Greear <[email protected]>
Store the firmware registers and other relevant data to a firmware crash dump file and provide it to user-space via debugfs. Should help with figuring out why the firmware crashed.
kvalo: remove dbglog support, rework and refactor the code to avoid ifdefs and otherwise simplify it as well
--- drivers/net/wireless/ath/ath10k/core.h | 13 ++ drivers/net/wireless/ath/ath10k/debug.c | 249 +++++++++++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/debug.h | 15 ++ drivers/net/wireless/ath/ath10k/hw.h | 2 drivers/net/wireless/ath/ath10k/pci.c | 43 ++++- drivers/net/wireless/ath/ath10k/pci.h | 3 6 files changed, 312 insertions(+), 13 deletions(-)
drivers/net/wireless/ath/ath10k/core.h +13 -0
@@ -22,6 +22,8 @@#include <linux/if_ether.h> #include <linux/types.h> #include <linux/pci.h> +#include <linux/uuid.h> +#include <linux/time.h> #include "htt.h" #include "htc.h"
@@ -278,6 +280,15 @@ struct ath10k_vif_iter {struct ath10k_vif *arvif; }; +/* used for crash-dump storage, protected by data-lock */ +struct ath10k_fw_crash_data { +bool crashed_since_read; + +uuid_le uuid; +struct timespec timestamp; +__le32 registers[REG_DUMP_COUNT_QCA988X ]; +}; +struct ath10k_debug {struct dentry *debugfs_phy;
@@ -295,6 +306,8 @@ struct ath10k_debug {u8 htt_max_amsdu;u8 htt_max_ampdu; + +struct ath10k_fw_crash_data *fw_crash_data; };enum ath10k_state {
drivers/net/wireless/ath/ath10k/debug.c +246 -3
291 lines not on this page · raw message
drivers/net/wireless/ath/ath10k/debug.h +15 -0
@@ -53,6 +53,10 @@ void ath10k_debug_read_service_map(struct ath10k *ar, size_t map_size);void ath10k_debug_read_target_stats (struct ath10k *ar,struct wmi_stats_event *ev); +struct ath10k_fw_crash_data * +ath10k_debug_get_new_fw_crash_data (struct ath10k *ar); + +void ath10k_debug_dbglog_add (struct ath10k *ar,u8 *buffer,int len);#define ATH10K_DFS_STAT_INC (ar, c) (ar->debug.dfs_stats.c++)
@@ -86,6 +90,17 @@ static inline void ath10k_debug_read_target_stats(struct ath10k *ar, { } +static inline void ath10k_debug_dbglog_add (struct ath10k *ar,u8 *buffer, +int len) +{ +} + +static inline struct ath10k_fw_crash_data * +ath10k_debug_get_new_fw_crash_data (struct ath10k *ar) +{ +return NULL ; +} +#define ATH10K_DFS_STAT_INC (ar, c) do { } while (0)#endif /* CONFIG_ATH10K_DEBUGFS */
drivers/net/wireless/ath/ath10k/hw.h +2 -0
@@ -39,6 +39,8 @@/* includes also the null byte */ #define ATH10K_FIRMWARE_MAGIC "QCA-ATH10K" +#define REG_DUMP_COUNT_QCA988X 60 +struct ath10k_fw_ie {__le32 id;__le32 len;
drivers/net/wireless/ath/ath10k/pci.c +36 -7
58 lines not on this page · raw message
drivers/net/wireless/ath/ath10k/pci.h +0 -3
@@ -23,9 +23,6 @@#include "hw.h" #include "ce.h" -/* FW dump area */ -#define REG_DUMP_COUNT_QCA988X 60 -/* * maximum number of bytes that can be handled atomically by DiagRead/DiagWrite */
Re: [PATCH v8 2/4] ath10k: provide firmware crash info via debugfs
Quoted 5 lines · Kalle Valo
From: Ben Greear <[email protected]>
Store the firmware registers and other relevant data to a firmware crash dump file and provide it to user-space via debugfs. Should help with figuring out why the firmware crashed.
So we just discussed Tuesday/yesterday that I'll be writing a generic framework to provide this data to userspace, maybe you want to wait for that.
johannes
Re: [PATCH v8 2/4] ath10k: provide firmware crash info via debugfs
Quoted 10 lines · Johannes Berg
Quoted 5 lines · Kalle Valo
From: Ben Greear <[email protected]>
Store the firmware registers and other relevant data to a firmware crash dump file and provide it to user-space via debugfs. Should help with figuring out why the firmware crashed.
So we just discussed Tuesday/yesterday that I'll be writing a generic framework to provide this data to userspace, maybe you want to wait for that.
Heh, this has been a pretty long review period. To be honest I really would like to get this just out of my hands :) And we do have a need for this. When are you planning to implement that generic framework?
What I understood is that this is already pretty close what you are planning. Instead of creating a debugfs file of our own and allocating a vmalloc buffer (which we do now), we would just use the buffer provided by cfg80211 (or whatever component that would be) and use the sysfs file the framework provides. So hopefully it would be pretty easy to convert this to use your framework.
Signature · 1 line
Kalle Valo
Re: [PATCH v8 2/4] ath10k: provide firmware crash info via debugfs
Quoted 3 lines · Kalle Valo
Heh, this has been a pretty long review period. To be honest I really would like to get this just out of my hands :) And we do have a need for this. When are you planning to implement that generic framework?
Soon (TM). We need it, so really, I should do it soon.
Quoted 6 lines
What I understood is that this is already pretty close what you are planning. Instead of creating a debugfs file of our own and allocating a vmalloc buffer (which we do now), we would just use the buffer provided by cfg80211 (or whatever component that would be) and use the sysfs file the framework provides. So hopefully it would be pretty easy to convert this to use your framework.
I'm thinking now that since vmalloc space is limited on some architectures, we should just have a list of pages, but of course we could copy it there from vmalloc area.
Anyway, yes, it should be fairly simple to convert - but is it worth it for you to have it now? Depends how you use it, I guess.
johannes
Re: [PATCH v8 2/4] ath10k: provide firmware crash info via debugfs
Quoted 15 lines · Johannes Berg
Quoted 3 lines · Kalle Valo
Heh, this has been a pretty long review period. To be honest I really would like to get this just out of my hands :) And we do have a need for this. When are you planning to implement that generic framework?
Soon (TM). We need it, so really, I should do it soon.
Quoted 6 lines
What I understood is that this is already pretty close what you are planning. Instead of creating a debugfs file of our own and allocating a vmalloc buffer (which we do now), we would just use the buffer provided by cfg80211 (or whatever component that would be) and use the sysfs file the framework provides. So hopefully it would be pretty easy to convert this to use your framework.
Quoted 6 lines
I'm thinking now that since vmalloc space is limited on some architectures, we should just have a list of pages, but of course we could copy it there from vmalloc area.
Anyway, yes, it should be fairly simple to convert - but is it worth it for you to have it now? Depends how you use it, I guess.
We really would have use for this, that's why I'm hesitant to wait more. Even having this from an "unofficial" location would be a big help. If it's ok for you, I would like to apply this once all review comments are addressed. But naturally if you think it's better to wait, I will do that.
Signature · 1 line
Kalle Valo
Re: [PATCH v8 2/4] ath10k: provide firmware crash info via debugfs
Quoted 5 lines · Kalle Valo
We really would have use for this, that's why I'm hesitant to wait more. Even having this from an "unofficial" location would be a big help. If it's ok for you, I would like to apply this once all review comments are addressed. But naturally if you think it's better to wait, I will do that.
No, I don't care what you do. I'm just saying I'm working on a framework, so you might want to wait. If you don't, that's perfectly fine with me.
johannes
Re: [PATCH v8 2/4] ath10k: provide firmware crash info via debugfs
In reply to Kalle ValoQuoted 12 lines · Kalle Valo
From: Ben Greear <[email protected]>
Store the firmware registers and other relevant data to a firmware crash dump file and provide it to user-space via debugfs. Should help with figuring out why the firmware crashed.
kvalo: remove dbglog support, rework and refactor the code to avoid ifdefs and otherwise simplify it as well
Signed-off-by Ben Greear <[email protected]>Signed-off-by Kalle Valo <[email protected]>---
[...]
Quoted 10 lines
drivers/net/wireless/ath/ath10k/debug.c +10
-0+static struct ath10k_dump_file_data *ath10k_build_dump_file (struct ath10k *ar) +{ +struct ath10k_fw_crash_data *crash_data = ar->debug.fw_crash_data; +struct ath10k_dump_file_data *dump_data; +struct ath10k_tlv_dump_data *dump_tlv; +int hdr_len =sizeof (*dump_data); +unsigned int len, sofar =0 ; +unsigned char *buf; + +lockdep_assert_held (&ar->conf_mutex);
[...]
drivers/net/wireless/ath/ath10k/debug.c static const struct file_operations fops_chip_id = { · line 772
Quoted 7 lines
drivers/net/wireless/ath/ath10k/debug.c +7
-0+static int ath10k_fw_crash_dump_open (struct inode *inode,struct file *file) +{ +struct ath10k *ar = inode->i_private; +struct ath10k_dump_file_data *dump; +int ret; + +mutex_lock (&ar->conf_mutex);
I don't think we need conf_mutex here at all, do we? I'm sorry, I should've spotted this earlier. Feel free to just ignore me :-)
Other than that this looks fine.
Michał
Re: [PATCH v8 2/4] ath10k: provide firmware crash info via debugfs
Quoted 13 lines · Michal Kazior
Quoted 10 lines · Kalle Valo
(quoted diff) +10
-0+static struct ath10k_dump_file_data *ath10k_build_dump_file(struct ath10k *ar) +{ + struct ath10k_fw_crash_data *crash_data = ar->debug.fw_crash_data; + struct ath10k_dump_file_data *dump_data; + struct ath10k_tlv_dump_data *dump_tlv; + int hdr_len = sizeof(*dump_data); + unsigned int len, sofar = 0; + unsigned char *buf; + + lockdep_assert_held(&ar->conf_mutex);[...]
Quoted 9 lines
Review
Quoted 7 lines
(quoted diff) +7
-0+static int ath10k_fw_crash_dump_open(struct inode *inode, struct file *file) +{ + struct ath10k *ar = inode->i_private; + struct ath10k_dump_file_data *dump; + int ret; + + mutex_lock(&ar->conf_mutex);I don't think we need
conf_mutexhere at all, do we?
You are right, I removed that (diff below).
Quoted 2 lines
I'm sorry, I should've spotted this earlier. Feel free to just ignore me :-)
Hehe, no worries. It's difficult to spot all problems in the first review and I do that all the time :)
Quoted 1 line
Other than that this looks fine.
Great, thanks for good review!
drivers/net/wireless/ath/ath10k/debug.c +3 -13
@@ -712,8 +712,6 @@ static struct ath10k_dump_file_data *ath10k_build_dump_file(struct ath10k *ar)unsigned int len, sofar =0 ;unsigned char *buf; -lockdep_assert_held (&ar->conf_mutex); - len = hdr_len; len +=sizeof (*dump_tlv) +sizeof (crash_data->registers);
@@ -785,22 +783,14 @@ static int ath10k_fw_crash_dump_open(struct inode *inode, struct file *file) {struct ath10k *ar = inode->i_private;struct ath10k_dump_file_data *dump; -int ret; - -mutex_lock (&ar->conf_mutex); dump =ath10k_build_dump_file (ar); -if (!dump) { - ret = -ENODATA ; - goto out; - } +if (!dump) +return -ENODATA ; file->private_data = dump; - ret =0 ; -out: -mutex_unlock (&ar->conf_mutex); -return ret; +return 0 ; } static ssize_t ath10k_fw_crash_dump_read(struct file *file,
Signature · 1 line
Kalle Valo
PATCH v8 3/4 ath10k: rename ath10k_pci_hif_dump_area() to ath10k_pci_fw_crashed_dump()
In reply to Kalle ValoBetter to have a clear name for the function. While at it, clear up the title for the register dump.
--- drivers/net/wireless/ath/ath10k/pci.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/net/wireless/ath/ath10k/pci.c +5 -5
@@ -850,7 +850,7 @@ static void ath10k_pci_dump_registers(struct ath10k *ar,BUILD_BUG_ON (REG_DUMP_COUNT_QCA988X %4 ); -ath10k_err ("target Register Dump\n" ); +ath10k_err ("firmware register dump:\n" );for (i =0 ; i <REG_DUMP_COUNT_QCA988X ; i +=4 ) ath10k_err("[%02d]: 0x%08X 0x%08X 0x%08X 0x%08X\n", i,
@@ -864,7 +864,7 @@ static void ath10k_pci_dump_registers(struct ath10k *ar, crash_data->registers[i] =cpu_to_le32 (reg_dump_values[i]); } -static void ath10k_pci_hif_dump_area (struct ath10k *ar) +static void ath10k_pci_fw_crashed_dump (struct ath10k *ar) {struct ath10k_fw_crash_data *crash_data;char uuid[50 ];
@@ -1811,7 +1811,7 @@ static void ath10k_pci_fw_interrupt_handler(struct ath10k *ar) fw_indicator & ~FW_IND_EVENT_PENDING);if (ar_pci->started) { -ath10k_pci_hif_dump_area (ar); +ath10k_pci_fw_crashed_dump (ar); }else {/* * Probable Target failure before we're prepared
@@ -2232,7 +2232,7 @@ static void ath10k_pci_early_irq_tasklet(unsigned long data)if (fw_ind &FW_IND_EVENT_PENDING ) {ath10k_pci_write32 (ar,FW_INDICATOR_ADDRESS , fw_ind & ~FW_IND_EVENT_PENDING ); -ath10k_pci_hif_dump_area (ar); +ath10k_pci_fw_crashed_dump (ar); }ath10k_pci_enable_legacy_irq (ar);
@@ -2483,7 +2483,7 @@ static int ath10k_pci_wait_for_target_init(struct ath10k *ar)ath10k_warn ("device has crashed during init\n" );ath10k_pci_write32 (ar,FW_INDICATOR_ADDRESS , val & ~FW_IND_EVENT_PENDING ); -ath10k_pci_hif_dump_area (ar); +ath10k_pci_fw_crashed_dump (ar);return -ECOMM ; }
PATCH v8 4/4 ath10k: print more driver info when firmware crashes
In reply to Kalle ValoSometimes users forget to include important info like firmware version, so better to print all the info.
--- drivers/net/wireless/ath/ath10k/core.c | 17 ++--------------- drivers/net/wireless/ath/ath10k/debug.c | 18 ++++++++++++++++++ drivers/net/wireless/ath/ath10k/debug.h | 1 + drivers/net/wireless/ath/ath10k/pci.c | 4 +--- 4 files changed, 22 insertions(+), 18 deletions(-)
drivers/net/wireless/ath/ath10k/core.c +2 -15
@@ -815,21 +815,8 @@ int ath10k_core_start(struct ath10k *ar)INIT_LIST_HEAD (&ar->arvifs); -if (!test_bit (ATH10K_FLAG_FIRST_BOOT_DONE , &ar->dev_flags)) { -ath10k_info ("%s (0x%08x, 0x%08x) fw %s api %d htt %d.%d\n" , - ar->hw_params.name, - ar->target_version, - ar->chip_id, - ar->hw->wiphy->fw_version, - ar->fw_api, - ar->htt.target_version_major, - ar->htt.target_version_minor); -ath10k_info ("debug %d debugfs %d tracing %d dfs %d\n" , -config_enabled (CONFIG_ATH10K_DEBUG ), -config_enabled (CONFIG_ATH10K_DEBUGFS ), -config_enabled (CONFIG_ATH10K_TRACING ), -config_enabled (CONFIG_ATH10K_DFS_CERTIFIED )); - } +if (!test_bit (ATH10K_FLAG_FIRST_BOOT_DONE , &ar->dev_flags)) +ath10k_print_driver_info (ar);__set_bit (ATH10K_FLAG_FIRST_BOOT_DONE , &ar->dev_flags);
drivers/net/wireless/ath/ath10k/debug.c +18 -0
@@ -142,6 +142,24 @@ int ath10k_info(const char *fmt, ...) }EXPORT_SYMBOL (ath10k_info); +void ath10k_print_driver_info (struct ath10k *ar) +{ +ath10k_info ("%s (0x%08x, 0x%08x) fw %s api %d htt %d.%d\n" , + ar->hw_params.name, + ar->target_version, + ar->chip_id, + ar->hw->wiphy->fw_version, + ar->fw_api, + ar->htt.target_version_major, + ar->htt.target_version_minor); +ath10k_info ("debug %d debugfs %d tracing %d dfs %d\n" , +config_enabled (CONFIG_ATH10K_DEBUG ), +config_enabled (CONFIG_ATH10K_DEBUGFS ), +config_enabled (CONFIG_ATH10K_TRACING ), +config_enabled (CONFIG_ATH10K_DFS_CERTIFIED )); +} +EXPORT_SYMBOL (ath10k_print_driver_info); +int ath10k_err (const char *fmt, ...) {struct va_format vaf = {
drivers/net/wireless/ath/ath10k/debug.h +1 -0
@@ -42,6 +42,7 @@ extern unsigned int ath10k_debug_mask; __printf(1, 2) int ath10k_info(const char *fmt, ...); __printf(1, 2) int ath10k_err(const char *fmt, ...); __printf(1, 2) int ath10k_warn(const char *fmt, ...); +void ath10k_print_driver_info (struct ath10k *ar);#ifdef CONFIG_ATH10K_DEBUGFS int ath10k_debug_start (struct ath10k *ar);
drivers/net/wireless/ath/ath10k/pci.c +1 -3
@@ -879,9 +879,7 @@ static void ath10k_pci_fw_crashed_dump(struct ath10k *ar)scnprintf (uuid,sizeof (uuid),"n/a" );ath10k_err ("firmware crashed! (uuid %s)\n" , uuid); -ath10k_err ("hardware name %s version 0x%x\n" , - ar->hw_params.name, ar->target_version); -ath10k_err ("firmware version: %s\n" , ar->hw->wiphy->fw_version); +ath10k_print_driver_info (ar);if (!crash_data) goto exit;
Quoted 2 lines · Kalle Valo
And yet another version of firmware crash dumps. Now I dropped all dumps except firmware registers and tested all the features myself.
[...]
Quoted 7 lines
Ben Greear (1):
ath10k: provide firmware crash info via debugfsKalle Valo (3):
ath10k: add ath10k_pci_diag_* helpers
ath10k: renameath10k_pci_hif_dump_area()toath10k_pci_fw_crashed_dump()
ath10k: print more driver info when firmware crashes
Finally applied :)
I also applied the small diff to patch 2 to remove the unneeded use of mutex in ath10k_fw_crash_dump_open().
Signature · 1 line
Kalle Valo