forked from Minki/linux
i40e: Add IWARP support for X722
X722 supports IWARP, this patch handles checking for PE critical errors. Since the driver doesn't support the IWARP interface for now, this patch just does bare minimum to log a message oif a PE critical error happens. Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com> Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com> Tested-by: Jim Young <james.m.young@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
527274c78e
commit
0d8e14392f
@ -2908,6 +2908,9 @@ static void i40e_enable_misc_int_causes(struct i40e_pf *pf)
|
||||
I40E_PFINT_ICR0_ENA_VFLR_MASK |
|
||||
I40E_PFINT_ICR0_ENA_ADMINQ_MASK;
|
||||
|
||||
if (pf->flags & I40E_FLAG_IWARP_ENABLED)
|
||||
val |= I40E_PFINT_ICR0_ENA_PE_CRITERR_MASK;
|
||||
|
||||
if (pf->flags & I40E_FLAG_PTP)
|
||||
val |= I40E_PFINT_ICR0_ENA_TIMESYNC_MASK;
|
||||
|
||||
@ -3198,6 +3201,13 @@ static irqreturn_t i40e_intr(int irq, void *data)
|
||||
(icr0 & I40E_PFINT_ICR0_SWINT_MASK))
|
||||
pf->sw_int_count++;
|
||||
|
||||
if ((pf->flags & I40E_FLAG_IWARP_ENABLED) &&
|
||||
(ena_mask & I40E_PFINT_ICR0_ENA_PE_CRITERR_MASK)) {
|
||||
ena_mask &= ~I40E_PFINT_ICR0_ENA_PE_CRITERR_MASK;
|
||||
icr0 &= ~I40E_PFINT_ICR0_ENA_PE_CRITERR_MASK;
|
||||
dev_info(&pf->pdev->dev, "cleared PE_CRITERR\n");
|
||||
}
|
||||
|
||||
/* only q0 is used in MSI/Legacy mode, and none are used in MSIX */
|
||||
if (icr0 & I40E_PFINT_ICR0_QUEUE_0_MASK) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user