aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/fw/api
diff options
context:
space:
mode:
authorMordechay Goodstein <mordechay.goodstein@intel.com>2017-09-26 07:31:55 -0400
committerLuca Coelho <luciano.coelho@intel.com>2017-12-20 11:28:24 -0500
commit93b167c13a3afa389eaa1af277e94add976ea43f (patch)
treec875febae2e629d2dbd58085d2a8e69725a26ce3 /drivers/net/wireless/intel/iwlwifi/fw/api
parent22b2104193da5edab4189d0357418d8e151082eb (diff)
iwlwifi: runtime: sync FW and host clocks for logs
For sync we send a marker cmd every <defined throughout debugfs> seconds. The trigger for getting gp2 clock values from the FW is set by writing to debugfs a periodic time in seconds, if value zero is written, only one request would be sent and the timer would be canceled. Also added a small infrastructure for debugfs runtime code. Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/fw/api')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/fw/api/debug.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/fw/api/debug.h b/drivers/net/wireless/intel/iwlwifi/fw/api/debug.h
index 0a81fb1b6ed4..106782341544 100644
--- a/drivers/net/wireless/intel/iwlwifi/fw/api/debug.h
+++ b/drivers/net/wireless/intel/iwlwifi/fw/api/debug.h
@@ -250,10 +250,12 @@ struct iwl_mfu_assert_dump_notif {
250 * The ids for different type of markers to insert into the usniffer logs 250 * The ids for different type of markers to insert into the usniffer logs
251 * 251 *
252 * @MARKER_ID_TX_FRAME_LATENCY: TX latency marker 252 * @MARKER_ID_TX_FRAME_LATENCY: TX latency marker
253 * @MARKER_ID_SYNC_CLOCK: sync FW time and systime
253 */ 254 */
254enum iwl_mvm_marker_id { 255enum iwl_mvm_marker_id {
255 MARKER_ID_TX_FRAME_LATENCY = 1, 256 MARKER_ID_TX_FRAME_LATENCY = 1,
256}; /* MARKER_ID_API_E_VER_1 */ 257 MARKER_ID_SYNC_CLOCK = 2,
258}; /* MARKER_ID_API_E_VER_2 */
257 259
258/** 260/**
259 * struct iwl_mvm_marker - mark info into the usniffer logs 261 * struct iwl_mvm_marker - mark info into the usniffer logs