Commit 5069ee55 authored by Jitendra Kalsaria's avatar Jitendra Kalsaria Committed by David S. Miller

qlge: Fix printk priority so chip fatal errors are always reported.

Precedence of the printk should be at higher level so chip fatal
errors are always reported.
Signed-off-by: default avatarJitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: default avatarRon Mercer <ron.mercer@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent da92b393
...@@ -2170,23 +2170,20 @@ static void ql_process_chip_ae_intr(struct ql_adapter *qdev, ...@@ -2170,23 +2170,20 @@ static void ql_process_chip_ae_intr(struct ql_adapter *qdev,
return; return;
case CAM_LOOKUP_ERR_EVENT: case CAM_LOOKUP_ERR_EVENT:
netif_err(qdev, link, qdev->ndev, netdev_err(qdev->ndev, "Multiple CAM hits lookup occurred.\n");
"Multiple CAM hits lookup occurred.\n"); netdev_err(qdev->ndev, "This event shouldn't occur.\n");
netif_err(qdev, drv, qdev->ndev,
"This event shouldn't occur.\n");
ql_queue_asic_error(qdev); ql_queue_asic_error(qdev);
return; return;
case SOFT_ECC_ERROR_EVENT: case SOFT_ECC_ERROR_EVENT:
netif_err(qdev, rx_err, qdev->ndev, netdev_err(qdev->ndev, "Soft ECC error detected.\n");
"Soft ECC error detected.\n");
ql_queue_asic_error(qdev); ql_queue_asic_error(qdev);
break; break;
case PCI_ERR_ANON_BUF_RD: case PCI_ERR_ANON_BUF_RD:
netif_err(qdev, rx_err, qdev->ndev, netdev_err(qdev->ndev, "PCI error occurred when reading "
"PCI error occurred when reading anonymous buffers from rx_ring %d.\n", "anonymous buffers from rx_ring %d.\n",
ib_ae_rsp->q_id); ib_ae_rsp->q_id);
ql_queue_asic_error(qdev); ql_queue_asic_error(qdev);
break; break;
...@@ -2441,11 +2438,10 @@ static irqreturn_t qlge_isr(int irq, void *dev_id) ...@@ -2441,11 +2438,10 @@ static irqreturn_t qlge_isr(int irq, void *dev_id)
*/ */
if (var & STS_FE) { if (var & STS_FE) {
ql_queue_asic_error(qdev); ql_queue_asic_error(qdev);
netif_err(qdev, intr, qdev->ndev, netdev_err(qdev->ndev, "Got fatal error, STS = %x.\n", var);
"Got fatal error, STS = %x.\n", var);
var = ql_read32(qdev, ERR_STS); var = ql_read32(qdev, ERR_STS);
netif_err(qdev, intr, qdev->ndev, netdev_err(qdev->ndev, "Resetting chip. "
"Resetting chip. Error Status Register = 0x%x\n", var); "Error Status Register = 0x%x\n", var);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment