summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07c81aa)
raw | patch | inline | side by side (parent: 07c81aa)
wlcore: gather information about firmware stability jenkins-OpenLink_R8_AndroidDailyBuild-24 jenkins-OpenLink_R8_AndroidDailyBuild-25 wl18xx-2012-02-28
author | Luciano Coelho <coelho@ti.com> | |
Tue, 28 Feb 2012 20:27:03 +0000 (22:27 +0200) | ||
committer | Luciano Coelho <coelho@ti.com> | |
Tue, 28 Feb 2012 20:27:03 +0000 (22:27 +0200) |
It's sometimes useful to gather information about the firmware
stability in long test runs, especially to see if problems are
recurring frequently or not. With this commit we count the number of
times a hardware recovery was issued and print it out during recovery
and in the driver_state in debugfs.
Signed-off-by: Luciano Coelho <coelho@ti.com>
stability in long test runs, especially to see if problems are
recurring frequently or not. With this commit we count the number of
times a hardware recovery was issued and print it out during recovery
and in the driver_state in debugfs.
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/debugfs.c | patch | blob | history | |
drivers/net/wireless/ti/wlcore/main.c | patch | blob | history | |
drivers/net/wireless/ti/wlcore/wlcore.h | patch | blob | history |
index 8e6b83dbfbb3b9d52bd175692be827efa78e9e05..fe5f95ead41cec3f6a821faa8c5335aec25deb5f 100644 (file)
DRIVER_STATE_PRINT_HEX(chip.id);
DRIVER_STATE_PRINT_STR(chip.fw_ver_str);
DRIVER_STATE_PRINT_INT(sched_scanning);
+ DRIVER_STATE_PRINT_INT(recovery_count);
#undef DRIVER_STATE_PRINT_INT
#undef DRIVER_STATE_PRINT_LONG
index 199fbea2f2e40ad7fd0baed8b6cb58c36ce3df56..828fe9071d2e7cb26a0fab14c4fc9c8a7d8ec2ad 100644 (file)
/* change partitions momentarily so we can read the FW pc */
wlcore_set_partition(wl, &wl->ptable[PART_BOOT]);
- wl1271_info("Hardware recovery in progress. FW ver: %s pc: 0x%x "
- "hint_sts: 0x%08x",
- wl->chip.fw_ver_str,
+ wl1271_info("Hardware recovery in progress. FW ver: %s",
+ wl->chip.fw_ver_str);
+ wl1271_info("pc: 0x%x hint_sts: 0x%08x count: %d",
wlcore_read_reg(wl, REG_PC_ON_RECOVERY),
- wlcore_read_reg(wl, REG_INTERRUPT_NO_CLEAR));
+ wlcore_read_reg(wl, REG_INTERRUPT_NO_CLEAR),
+ ++wl->recovery_count);
wlcore_set_partition(wl, &wl->ptable[PART_WORK]);
BUG_ON(bug_on_recovery &&
wl->flags = 0;
wl->sg_enabled = true;
wl->sleep_auth = WL1271_PSM_CAM;
+ wl->recovery_count = 0;
wl->hw_pg_ver = -1;
wl->ap_ps_map = 0;
wl->ap_fw_ps_map = 0;
index 728e551f5f32e1c8267862647aa67be5d4ecea19..5328ba7775fa840e10427ef2088dafa8b29c16f2 100644 (file)
int sleep_auth;
+ int recovery_count;
+
struct list_head list;
/* Most recently reported noise in dBm */