Skip to content

Commit bf6ce41

Browse files
panjaneyMiriam-Rachel
authored andcommitted
wifi: iwlwifi: mvm: Add dump handler to iwl_mvm
Implement a dump handler in the iwl_mvm operation mode to collect firmware dump upon trigger from trans layer. Signed-off-by: Pagadala Yesu Anjaneyulu <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250711183056.366fc31fd551.I976cb17edd85a461043c7a4c7f4895bfaec9174a@changeid
1 parent f2829c8 commit bf6ce41

File tree

1 file changed

+12
-0
lines changed
  • drivers/net/wireless/intel/iwlwifi/mvm

1 file changed

+12
-0
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/ops.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2119,6 +2119,17 @@ static void iwl_op_mode_mvm_time_point(struct iwl_op_mode *op_mode,
21192119
iwl_dbg_tlv_time_point(&mvm->fwrt, tp_id, tp_data);
21202120
}
21212121

2122+
static void iwl_mvm_dump(struct iwl_op_mode *op_mode)
2123+
{
2124+
struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode);
2125+
struct iwl_fw_runtime *fwrt = &mvm->fwrt;
2126+
2127+
if (!iwl_trans_fw_running(fwrt->trans))
2128+
return;
2129+
2130+
iwl_dbg_tlv_time_point(fwrt, IWL_FW_INI_TIME_POINT_USER_TRIGGER, NULL);
2131+
}
2132+
21222133
#ifdef CONFIG_PM_SLEEP
21232134
static void iwl_op_mode_mvm_device_powered_off(struct iwl_op_mode *op_mode)
21242135
{
@@ -2181,4 +2192,5 @@ static const struct iwl_op_mode_ops iwl_mvm_ops_mq = {
21812192
IWL_MVM_COMMON_OPS,
21822193
.rx = iwl_mvm_rx_mq,
21832194
.rx_rss = iwl_mvm_rx_mq_rss,
2195+
.dump = iwl_mvm_dump,
21842196
};

0 commit comments

Comments
 (0)