svn commit: r330218 - stable/11/sys/dev/iwm
Eitan Adler
eadler at FreeBSD.org
Thu Mar 1 06:48:19 UTC 2018
Author: eadler
Date: Thu Mar 1 06:48:18 2018
New Revision: 330218
URL: https://svnweb.freebsd.org/changeset/base/330218
Log:
MFC r319579:
[iwm] Remove dead code from iwm_pcie_load_cpu_sections().
* If device family is 8000 then iwm_pcie_load_cpu_sections()
won't be called at all (iwm_pcie_load_cpu_sections_8000() is
called in that case) so this piece of code never gets called.
Modified:
stable/11/sys/dev/iwm/if_iwm.c
stable/11/sys/dev/iwm/if_iwmreg.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/iwm/if_iwm.c
==============================================================================
--- stable/11/sys/dev/iwm/if_iwm.c Thu Mar 1 06:47:52 2018 (r330217)
+++ stable/11/sys/dev/iwm/if_iwm.c Thu Mar 1 06:48:18 2018 (r330218)
@@ -2574,14 +2574,6 @@ iwm_pcie_load_cpu_sections(struct iwm_softc *sc,
return ret;
}
- if (sc->cfg->device_family == IWM_DEVICE_FAMILY_8000)
- iwm_set_bits_prph(sc,
- IWM_CSR_UCODE_LOAD_STATUS_ADDR,
- (IWM_LMPM_CPU_UCODE_LOADING_COMPLETED |
- IWM_LMPM_CPU_HDRS_LOADING_COMPLETED |
- IWM_LMPM_CPU_UCODE_LOADING_STARTED) <<
- shift_param);
-
*first_ucode_section = last_read_idx;
return 0;
Modified: stable/11/sys/dev/iwm/if_iwmreg.h
==============================================================================
--- stable/11/sys/dev/iwm/if_iwmreg.h Thu Mar 1 06:47:52 2018 (r330217)
+++ stable/11/sys/dev/iwm/if_iwmreg.h Thu Mar 1 06:48:18 2018 (r330218)
@@ -439,23 +439,11 @@ enum iwm_secure_boot_status_reg {
};
#define IWM_FH_UCODE_LOAD_STATUS 0x1af0
-#define IWM_CSR_UCODE_LOAD_STATUS_ADDR 0x1e70
-enum iwm_secure_load_status_reg {
- IWM_LMPM_CPU_UCODE_LOADING_STARTED = 0x00000001,
- IWM_LMPM_CPU_HDRS_LOADING_COMPLETED = 0x00000003,
- IWM_LMPM_CPU_UCODE_LOADING_COMPLETED = 0x00000007,
- IWM_LMPM_CPU_STATUS_NUM_OF_LAST_COMPLETED = 0x000000F8,
- IWM_LMPM_CPU_STATUS_NUM_OF_LAST_LOADED_BLOCK = 0x0000FF00,
-};
#define IWM_FH_MEM_TB_MAX_LENGTH 0x20000
-#define IWM_LMPM_SECURE_INSPECTOR_CODE_ADDR 0x1e38
-#define IWM_LMPM_SECURE_INSPECTOR_DATA_ADDR 0x1e3c
#define IWM_LMPM_SECURE_UCODE_LOAD_CPU1_HDR_ADDR 0x1e78
#define IWM_LMPM_SECURE_UCODE_LOAD_CPU2_HDR_ADDR 0x1e7c
-#define IWM_LMPM_SECURE_INSPECTOR_CODE_MEM_SPACE 0x400000
-#define IWM_LMPM_SECURE_INSPECTOR_DATA_MEM_SPACE 0x402000
#define IWM_LMPM_SECURE_CPU1_HDR_MEM_SPACE 0x420000
#define IWM_LMPM_SECURE_CPU2_HDR_MEM_SPACE 0x420400
More information about the svn-src-stable-11
mailing list