]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
wifi: iwlwifi: mvm: add firmware debug points for EMLSR entry / exit
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 29 Jul 2024 17:20:16 +0000 (20:20 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 27 Aug 2024 08:15:14 +0000 (10:15 +0200)
This will help to dump the firmware logs at the right spot if needed.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240729201718.3a91e89e32f8.Ieb28d7756c47dee52c912a71abe82fa0b08b19da@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h
drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c

index 855cd13a181ea38842e3e176d03a48d6fe1efdfe..550de6db18340ba3ba85f6bb1282b84753791604 100644 (file)
@@ -476,6 +476,8 @@ enum iwl_fw_ini_region_device_memory_subtype {
  * @IWL_FW_INI_TIME_POINT_PRESET_OVERRIDE_START: start handling override preset
  *     request
  * @IWL_FW_INI_TIME_SCAN_FAILURE: failed scan channel list
+ * @IWL_FW_INI_TIME_ESR_LINK_UP: EMLSR is active (several links are activated)
+ * @IWL_FW_INI_TIME_ESR_LINK_DOWN: EMLSR is inactive (only one active link left)
  * @IWL_FW_INI_TIME_POINT_NUM: number of time points
  */
 enum iwl_fw_ini_time_point {
@@ -509,6 +511,8 @@ enum iwl_fw_ini_time_point {
        IWL_FW_INI_TIME_POINT_PRESET_OVERRIDE_EXT_REQ,
        IWL_FW_INI_TIME_POINT_PRESET_OVERRIDE_START,
        IWL_FW_INI_TIME_SCAN_FAILURE,
+       IWL_FW_INI_TIME_ESR_LINK_UP,
+       IWL_FW_INI_TIME_ESR_LINK_DOWN,
        IWL_FW_INI_TIME_POINT_NUM,
 }; /* FW_TLV_DEBUG_TIME_POINT_API_E */
 
index 3c99396ad36922fffb3c1ed1b674ad5b828523b1..ed30247de407bb2307cea8a1f5e28c4245603cd8 100644 (file)
@@ -269,6 +269,9 @@ static int iwl_mvm_esr_mode_active(struct iwl_mvm *mvm,
         */
        iwl_mvm_restart_mpdu_count(mvm, mvmvif);
 
+       iwl_dbg_tlv_time_point(&mvm->fwrt, IWL_FW_INI_TIME_ESR_LINK_UP,
+                              NULL);
+
        return ret;
 }
 
@@ -456,6 +459,9 @@ static int iwl_mvm_esr_mode_inactive(struct iwl_mvm *mvm,
        /* Start a new counting window */
        iwl_mvm_restart_mpdu_count(mvm, mvmvif);
 
+       iwl_dbg_tlv_time_point(&mvm->fwrt, IWL_FW_INI_TIME_ESR_LINK_DOWN,
+                              NULL);
+
        return ret;
 }