]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
wifi: iwlwifi: use default command queue watchdog timeout
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Thu, 8 Aug 2024 20:22:45 +0000 (23:22 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 27 Aug 2024 08:28:55 +0000 (10:28 +0200)
We used to have the opmode configuring it to the trans according to the
debug tlv value (FW_DBG_TRIGGER_TXQ_TIMERS).
But this debug is not used, so trans can just have the default value
hardcoded.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240808232017.87af3f063025.I2222981ead13f6a917f2d4b116c5b94200dc9e51@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/dvm/main.c
drivers/net/wireless/intel/iwlwifi/iwl-trans.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
drivers/net/wireless/intel/iwlwifi/pcie/trans.c

index 65b7c68e5ca7731f9e0caeeb00af365938fdc543..e0b14be25b023802a5f781f54de97c942e3c731e 100644 (file)
@@ -1325,8 +1325,6 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,
                       iwlwifi_mod_params.amsdu_size);
        }
 
-       trans_cfg.cmd_q_wdg_timeout = IWL_WATCHDOG_DISABLED;
-
        trans_cfg.command_groups = iwl_dvm_groups;
        trans_cfg.command_groups_size = ARRAY_SIZE(iwl_dvm_groups);
 
index 6148acbac6af9e4474deaef22e91ca02c9441b66..c6f51e3bc3c6fd82611836d09f97ea1f2212acb5 100644 (file)
@@ -386,7 +386,6 @@ struct iwl_dump_sanitize_ops {
  * @cmd_queue: the index of the command queue.
  *     Must be set before start_fw.
  * @cmd_fifo: the fifo for host commands
- * @cmd_q_wdg_timeout: the timeout of the watchdog timer for the command queue.
  * @no_reclaim_cmds: Some devices erroneously don't set the
  *     SEQ_RX_FRAME bit on some notifications, this is the
  *     list of such notifications to filter. Max length is
@@ -412,7 +411,6 @@ struct iwl_trans_config {
 
        u8 cmd_queue;
        u8 cmd_fifo;
-       unsigned int cmd_q_wdg_timeout;
        const u8 *no_reclaim_cmds;
        unsigned int n_no_reclaim_cmds;
 
index f207ac46b8ec72af9eebb72be99b8ff9e0413fd3..273767b074b83eae82f625cfbfb7abfef85128d8 100644 (file)
@@ -1449,10 +1449,6 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg,
        trans_cfg.cb_data_offs = offsetof(struct ieee80211_tx_info,
                                          driver_data[2]);
 
-       /* Set a short watchdog for the command queue */
-       trans_cfg.cmd_q_wdg_timeout =
-               iwl_mvm_get_wd_timeout(mvm, NULL, false, true);
-
        snprintf(mvm->hw->wiphy->fw_version,
                 sizeof(mvm->hw->wiphy->fw_version),
                 "%.31s", fw->fw_version);
index 719ddc4b72c52c79b91d127af1ba7a2b04bfb476..3b9943eb69341ef19061fd4f7c64d36503768558 100644 (file)
@@ -1967,7 +1967,6 @@ void iwl_trans_pcie_configure(struct iwl_trans *trans,
 
        trans_pcie->txqs.cmd.q_id = trans_cfg->cmd_queue;
        trans_pcie->txqs.cmd.fifo = trans_cfg->cmd_fifo;
-       trans_pcie->txqs.cmd.wdg_timeout = trans_cfg->cmd_q_wdg_timeout;
        trans_pcie->txqs.page_offs = trans_cfg->cb_data_offs;
        trans_pcie->txqs.dev_cmd_offs = trans_cfg->cb_data_offs + sizeof(void *);
        trans_pcie->txqs.queue_alloc_cmd_ver = trans_cfg->queue_alloc_cmd_ver;
@@ -3567,6 +3566,9 @@ struct iwl_trans *iwl_trans_pcie_alloc(struct pci_dev *pdev,
        }
        trans->max_skb_frags = IWL_TRANS_PCIE_MAX_FRAGS(trans_pcie);
 
+       /* Set a short watchdog for the command queue */
+       trans_pcie->txqs.cmd.wdg_timeout = IWL_DEF_WD_TIMEOUT;
+
        trans_pcie->txqs.tso_hdr_page = alloc_percpu(struct iwl_tso_hdr_page);
        if (!trans_pcie->txqs.tso_hdr_page) {
                ret = -ENOMEM;