Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54f315cb authored by Ido Yariv's avatar Ido Yariv Committed by Luca Coelho
Browse files

iwlwifi: pcie: Enable MSI mode when using MSI interrupts



On some of the chipsets MSI & INTA interrupts are disabled by default in
the HW registers, and need to be explicitly enabled to be used.

In case MSI-X isn't used, make sure MSI mode is enabled by setting
the relevant HW register.

Signed-off-by: default avatarIdo Yariv <idox.yariv@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent da2830ac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -417,5 +417,6 @@ enum {
};

#define UREG_CHICK		(0xA05C00)
#define UREG_CHICK_MSI_ENABLE	BIT(24)
#define UREG_CHICK_MSIX_ENABLE	BIT(25)
#endif				/* __iwl_prph_h__ */
+5 −1
Original line number Diff line number Diff line
@@ -1396,8 +1396,12 @@ static void iwl_pcie_init_msix(struct iwl_trans_pcie *trans_pcie)

	max_rx_vector = trans_pcie->allocated_vector - 1;

	if (!trans_pcie->msix_enabled)
	if (!trans_pcie->msix_enabled) {
		if (trans->cfg->mq_rx_supported)
			iwl_write_prph(trans, UREG_CHICK,
				       UREG_CHICK_MSI_ENABLE);
		return;
	}

	iwl_write_prph(trans, UREG_CHICK, UREG_CHICK_MSIX_ENABLE);