i40e: Print some more info to help figure out the cause of HMC error
authorAnjali Singhai Jain <anjali.singhai@intel.com>
Tue, 31 Mar 2015 07:45:01 +0000 (00:45 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 3 Apr 2015 10:54:29 +0000 (03:54 -0700)
HMC_ERRORINFO and HMC_ERRORDATA helps explain the cause of HMC error.

Change-ID: I053bbc175a5f4c5c3e9ec2ea7400d5c56aaa4ec1
Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c

index 845bceeda6451da241f257d0eb323c59cbcfc91d..77e3b84bc367c18650b8e3fc2b6167ab1c7ebf40 100644 (file)
@@ -3197,6 +3197,9 @@ static irqreturn_t i40e_intr(int irq, void *data)
        if (icr0 & I40E_PFINT_ICR0_HMC_ERR_MASK) {
                icr0 &= ~I40E_PFINT_ICR0_HMC_ERR_MASK;
                dev_info(&pf->pdev->dev, "HMC error interrupt\n");
+               dev_info(&pf->pdev->dev, "HMC error info 0x%x, HMC error data 0x%x\n",
+                        rd32(hw, I40E_PFHMC_ERRORINFO),
+                        rd32(hw, I40E_PFHMC_ERRORDATA));
        }
 
        if (icr0 & I40E_PFINT_ICR0_TIMESYNC_MASK) {