]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: iwlwifi: mld: trigger a dump upon notification if needed
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 10 Nov 2025 13:02:17 +0000 (15:02 +0200)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 21 Jan 2026 12:23:01 +0000 (14:23 +0200)
The firmware can request us to trigger a dump upon specific
notifications. In order for that flow to work, we need to call the
firmware debug infra when we get a notification from the firmware.

This was missing.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20251110150012.d6d7e69c7da6.I40f891ece6f98983e0fd2cd0c6863f8620ca08aa@changeid
drivers/net/wireless/intel/iwlwifi/mld/notif.c

index 555542dc5e376ce8a9791803d488dcba7e776039..35356b244c0a8fe8eadd2866ef1b76cd1f577e46 100644 (file)
@@ -540,6 +540,8 @@ static void iwl_mld_rx_notif(struct iwl_mld *mld,
                             struct iwl_rx_cmd_buffer *rxb,
                             struct iwl_rx_packet *pkt)
 {
+       union iwl_dbg_tlv_tp_data tp_data = { .fw_pkt = pkt };
+
        for (int i = 0; i < ARRAY_SIZE(iwl_mld_rx_handlers); i++) {
                const struct iwl_rx_handler *rx_h = &iwl_mld_rx_handlers[i];
                struct iwl_async_handler_entry *entry;
@@ -580,6 +582,8 @@ static void iwl_mld_rx_notif(struct iwl_mld *mld,
        }
 
        iwl_notification_wait_notify(&mld->notif_wait, pkt);
+       iwl_dbg_tlv_time_point(&mld->fwrt,
+                              IWL_FW_INI_TIME_POINT_FW_RSP_OR_NOTIF, &tp_data);
 }
 
 void iwl_mld_rx(struct iwl_op_mode *op_mode, struct napi_struct *napi,