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

Commit bb13ace7 authored by Sudarsana Reddy Kalluru's avatar Sudarsana Reddy Kalluru Committed by David S. Miller
Browse files

qed: Prevent 100g from working in MSI



Adapter can support 100g in both MSIx and INTa, but not in MSI.

Signed-off-by: default avatarSudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Signed-off-by: default avatarYuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1af9dcf7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -835,6 +835,11 @@ int qed_hw_init(struct qed_dev *cdev,
	u32 load_code, param;
	int rc, mfw_rc, i;

	if ((int_mode == QED_INT_MODE_MSI) && (cdev->num_hwfns > 1)) {
		DP_NOTICE(cdev, "MSI mode is not supported for CMT devices\n");
		return -EINVAL;
	}

	if (IS_PF(cdev)) {
		rc = qed_init_fw_data(cdev, bin_fw_data);
		if (rc != 0)
+10 −8
Original line number Diff line number Diff line
@@ -413,6 +413,7 @@ static int qed_set_int_mode(struct qed_dev *cdev, bool force_mode)
		/* Fallthrough */

	case QED_INT_MODE_MSI:
		if (cdev->num_hwfns == 1) {
			rc = pci_enable_msi(cdev->pdev);
			if (!rc) {
				int_params->out.int_mode = QED_INT_MODE_MSI;
@@ -422,6 +423,7 @@ static int qed_set_int_mode(struct qed_dev *cdev, bool force_mode)
			DP_NOTICE(cdev, "Failed to enable MSI\n");
			if (force_mode)
				goto out;
		}
		/* Fallthrough */

	case QED_INT_MODE_INTA: