]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
iwlwifi: dbg_ini: support notification and dhc regions type parsing
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Sun, 3 Mar 2019 15:29:23 +0000 (17:29 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 19 Apr 2019 07:26:22 +0000 (10:26 +0300)
IWL_FW_INI_REGION_CSR and IWL_FW_INI_REGION_NOTIFICATION does not have
memory addresses attached to them so the driver should skip them when
parsing the region tlv.
Also, instead of declearing what region types should skip the addition of
the memory addresses, declare what regions have addition of memory
addresses.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c

index be72529cc7891d2d291eae8668e190efe9944caf..b8e0f5ce6461bc68f57e9496307bf287eb14aa59 100644 (file)
@@ -2449,7 +2449,13 @@ static void iwl_fw_dbg_update_regions(struct iwl_fw_runtime *fwrt,
                    type == IWL_FW_INI_REGION_RXF)
                        iter += le32_to_cpu(reg->fifos.num_of_registers) *
                                sizeof(__le32);
-               else if (type != IWL_FW_INI_REGION_DRAM_BUFFER)
+               else if (type == IWL_FW_INI_REGION_DEVICE_MEMORY ||
+                        type == IWL_FW_INI_REGION_PERIPHERY_MAC ||
+                        type == IWL_FW_INI_REGION_PERIPHERY_PHY ||
+                        type == IWL_FW_INI_REGION_PERIPHERY_AUX ||
+                        type == IWL_FW_INI_REGION_INTERNAL_BUFFER ||
+                        type == IWL_FW_INI_REGION_PAGING ||
+                        type == IWL_FW_INI_REGION_CSR)
                        iter += le32_to_cpu(reg->internal.num_of_ranges) *
                                sizeof(__le32);