1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

iwm: Explicitly enable MSI on newer chipsets.

9000-series chips implement support for MSI-X interrupts and disable MSI
by default.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2019-11-07 23:36:25 +00:00
parent 1809534a1a
commit b1a48ccc18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354506
2 changed files with 8 additions and 0 deletions

View File

@ -616,6 +616,10 @@ iwm_start_hw(struct iwm_softc *sc)
if ((error = iwm_apm_init(sc)) != 0)
return error;
/* On newer chipsets MSI is disabled by default. */
if (sc->cfg->mqrx_supported)
iwm_write_prph(sc, IWM_UREG_CHICK, IWM_UREG_CHICK_MSI_ENABLE);
iwm_enable_rfkill_int(sc);
iwm_check_rfkill(sc);

View File

@ -457,6 +457,10 @@ enum iwm_secure_boot_status_reg {
#define IWM_LMPM_CHICK 0xa01ff8
#define IWM_LMPM_CHICK_EXTENDED_ADDR_SPACE 0x01
#define IWM_UREG_CHICK 0xa05c00
#define IWM_UREG_CHICK_MSI_ENABLE 0x01000000
#define IWM_UREG_CHICK_MSIX_ENABLE 0x02000000
#define IWM_FH_TCSR_0_REG0 (0x1D00)
/*