aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
diff options
context:
space:
mode:
authorShahar S Matityahu <shahar.s.matityahu@intel.com>2018-01-29 04:05:37 -0500
committerLuca Coelho <luciano.coelho@intel.com>2018-08-31 04:38:17 -0400
commit2d8c261511abfebd705d2163500d6b3049f0dec6 (patch)
treeb0ffbbdb189fc85d2770b31527149621c232f2d4 /drivers/net/wireless/intel/iwlwifi/mvm/ops.c
parent2210f6959dfa754d2a191f3db6ac7592d1bebc9c (diff)
iwlwifi: add d3 debug data support
During d3, the firmware records debug data into internal buffer if debug data collection occurs, collect the data that was written to the buffer Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/ops.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/ops.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
index 0e26619fb330..bce5d150eb58 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
@@ -182,6 +182,9 @@ static void iwl_mvm_nic_config(struct iwl_op_mode *op_mode)
182 if (mvm->trans->cfg->device_family < IWL_DEVICE_FAMILY_8000) 182 if (mvm->trans->cfg->device_family < IWL_DEVICE_FAMILY_8000)
183 reg_val |= CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI; 183 reg_val |= CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI;
184 184
185 if (iwl_fw_dbg_is_d3_debug_enabled(&mvm->fwrt))
186 reg_val |= CSR_HW_IF_CONFIG_REG_D3_DEBUG;
187
185 iwl_trans_set_bits_mask(mvm->trans, CSR_HW_IF_CONFIG_REG, 188 iwl_trans_set_bits_mask(mvm->trans, CSR_HW_IF_CONFIG_REG,
186 CSR_HW_IF_CONFIG_REG_MSK_MAC_DASH | 189 CSR_HW_IF_CONFIG_REG_MSK_MAC_DASH |
187 CSR_HW_IF_CONFIG_REG_MSK_MAC_STEP | 190 CSR_HW_IF_CONFIG_REG_MSK_MAC_STEP |
@@ -189,7 +192,8 @@ static void iwl_mvm_nic_config(struct iwl_op_mode *op_mode)
189 CSR_HW_IF_CONFIG_REG_MSK_PHY_STEP | 192 CSR_HW_IF_CONFIG_REG_MSK_PHY_STEP |
190 CSR_HW_IF_CONFIG_REG_MSK_PHY_DASH | 193 CSR_HW_IF_CONFIG_REG_MSK_PHY_DASH |
191 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI | 194 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
192 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI, 195 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI |
196 CSR_HW_IF_CONFIG_REG_D3_DEBUG,
193 reg_val); 197 reg_val);
194 198
195 IWL_DEBUG_INFO(mvm, "Radio type=0x%x-0x%x-0x%x\n", radio_cfg_type, 199 IWL_DEBUG_INFO(mvm, "Radio type=0x%x-0x%x-0x%x\n", radio_cfg_type,