OSDN Git Service

iwlwifi: mvm: allow reading UMAC error data from SMEM in A000 devices
authorBeni Lev <beni.lev@intel.com>
Thu, 28 Sep 2017 09:10:55 +0000 (12:10 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 18 Oct 2017 10:00:44 +0000 (13:00 +0300)
Currently, UMAC error data reading is restricted to DCCM.
A000 NICs use SMEM for this data.

Signed-off-by: Beni Lev <beni.lev@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/utils.c

index 2da1b08..4ade688 100644 (file)
@@ -459,7 +459,8 @@ static void iwl_mvm_dump_umac_error_log(struct iwl_mvm *mvm)
 
        base = mvm->umac_error_event_table;
 
-       if (base < 0x800000) {
+       if (base < (mvm->trans->cfg->device_family == IWL_DEVICE_FAMILY_A000 ?
+                   0x400000 : 0x800000)) {
                IWL_ERR(mvm,
                        "Not valid error log pointer 0x%08X for %s uCode\n",
                        base,