]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
iwlwifi: dbg_ini: add region id to the region dump
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Sun, 17 Feb 2019 11:16:13 +0000 (13:16 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 3 Apr 2019 08:19:58 +0000 (11:19 +0300)
Add the region id of the collected memory to the header of the memory
region.

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
drivers/net/wireless/intel/iwlwifi/fw/error-dump.h

index 81ce8a46ff119758565557e0b11aad297b74de81..a014fb729f48d179f5113b230e3604a815a7c708 100644 (file)
@@ -1606,6 +1606,7 @@ iwl_dump_ini_mem(struct iwl_fw_runtime *fwrt,
        (*data)->type = cpu_to_le32(type | INI_DUMP_BIT);
        (*data)->len = cpu_to_le32(ops->get_size(fwrt, reg));
 
+       header->region_id = reg->region_id;
        header->num_of_ranges = cpu_to_le32(num_of_ranges);
        header->name_len = cpu_to_le32(min_t(int, IWL_FW_INI_MAX_NAME,
                                             le32_to_cpu(reg->name_len)));
index a2339021153ff5b4a56e510dcf3097d2c7ca02f4..ac2589bfedb2864f500b99ed257d3f022c4a0cfb 100644 (file)
@@ -297,12 +297,14 @@ struct iwl_fw_ini_error_dump_range {
 /**
  * struct iwl_fw_ini_error_dump_header - ini region dump header
  * @version: dump version
+ * @region_id: id of the region
  * @num_of_ranges: number of ranges in this region
  * @name_len: number of bytes allocated to the name string of this region
  * @name: name of the region
  */
 struct iwl_fw_ini_error_dump_header {
        __le32 version;
+       __le32 region_id;
        __le32 num_of_ranges;
        __le32 name_len;
        u8 name[IWL_FW_INI_MAX_NAME];