Commit 72c43f7d authored by Rotem Saado's avatar Rotem Saado Committed by Luca Coelho
Browse files

iwlwifi: dbg: treat non active regions as unsupported regions



If a region is not active, it means that it was not defined as a region
TLV in the FW image.  We should treat them as unsupported in that case.

This saves operational driver memory and run time when collecting debug
data by skipping unsupported regions.

Signed-off-by: default avatarRotem Saado <rotem.saado@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211017165728.8025bd29d86a.I3ecb4e273bf714e426d82217e0590264cb763419@changeid


Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 1f578d4f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1179,8 +1179,10 @@ static void iwl_dbg_tlv_init_cfg(struct iwl_fw_runtime *fwrt)
			&fwrt->trans->dbg.active_regions[i];
		u32 reg_type;

		if (!*active_reg)
		if (!*active_reg) {
			fwrt->trans->dbg.unsupported_region_msk |= BIT(i);
			continue;
		}

		reg = (void *)(*active_reg)->data;
		reg_type = le32_to_cpu(reg->type);