aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-8000.c
diff options
context:
space:
mode:
authorLiad Kaufman <liad.kaufman@intel.com>2014-12-01 03:44:18 -0500
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-12-28 03:17:41 -0500
commitf53bf4c758c0fbe728c031621f4c5f9979cdb044 (patch)
treeff3f15552349eba7c62c4b052deb7d24efe7bfe5 /drivers/net/wireless/iwlwifi/iwl-8000.c
parente32ec12fd11fbccc1cb4656e34f35ad457e19e29 (diff)
iwlwifi: mvm: add fw runtime stack to dump data
The allocation of the DCCM between the data and the stack can theoretically change without notice to the driver, but the total size is HW-fixed. Since the stack CCM (runtime stack) has also data important to the FW - this patch allows pulling the whole DCCM in one piece and adds it to the dump data. If the size isn't known - just use the data part of the DCCM as it appears in the FW TLVs. Signed-off-by: Liad Kaufman <liad.kaufman@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-8000.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-8000.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-8000.c b/drivers/net/wireless/iwlwifi/iwl-8000.c
index bf0a95cb7153..6c5c55856a35 100644
--- a/drivers/net/wireless/iwlwifi/iwl-8000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-8000.c
@@ -81,6 +81,10 @@
81#define IWL8000_NVM_VERSION 0x0a1d 81#define IWL8000_NVM_VERSION 0x0a1d
82#define IWL8000_TX_POWER_VERSION 0xffff /* meaningless */ 82#define IWL8000_TX_POWER_VERSION 0xffff /* meaningless */
83 83
84/* DCCM offsets and lengths */
85#define IWL8260_DCCM_OFFSET 0x800000
86#define IWL8260_DCCM_LEN 0x18000
87
84#define IWL8000_FW_PRE "iwlwifi-8000" 88#define IWL8000_FW_PRE "iwlwifi-8000"
85#define IWL8000_MODULE_FIRMWARE(api) \ 89#define IWL8000_MODULE_FIRMWARE(api) \
86 IWL8000_FW_PRE "-" __stringify(api) ".ucode" 90 IWL8000_FW_PRE "-" __stringify(api) ".ucode"
@@ -124,7 +128,9 @@ static const struct iwl_ht_params iwl8000_ht_params = {
124 .led_mode = IWL_LED_RF_STATE, \ 128 .led_mode = IWL_LED_RF_STATE, \
125 .nvm_hw_section_num = NVM_HW_SECTION_NUM_FAMILY_8000, \ 129 .nvm_hw_section_num = NVM_HW_SECTION_NUM_FAMILY_8000, \
126 .d0i3 = true, \ 130 .d0i3 = true, \
127 .non_shared_ant = ANT_A 131 .non_shared_ant = ANT_A, \
132 .dccm_offset = IWL8260_DCCM_OFFSET, \
133 .dccm_len = IWL8260_DCCM_LEN
128 134
129const struct iwl_cfg iwl8260_2n_cfg = { 135const struct iwl_cfg iwl8260_2n_cfg = {
130 .name = "Intel(R) Dual Band Wireless N 8260", 136 .name = "Intel(R) Dual Band Wireless N 8260",