aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_isr.c
diff options
context:
space:
mode:
authorNilesh Javali <nilesh.javali@qlogic.com>2013-01-20 23:50:56 -0500
committerJames Bottomley <JBottomley@Parallels.com>2013-01-29 21:32:25 -0500
commitff2477bacaf26b4733acebc1a65add4e433ef062 (patch)
treee8d0474d089a2ee7740367e77a9abe28d3c29ae7 /drivers/scsi/qla4xxx/ql4_isr.c
parentc3b331a308b6369b77455f8431f3182931cf7686 (diff)
[SCSI] qla4xxx: Add spurious interrupt messages under debug level 2
The spurious interrupt messages are seen when interrupt lines are shared between different adapters or modules. Example, interrupt lines are shared between qlcnic and qla4xxx and USB modules, then the console is flooded with flurry of spurious interrupt messages which are expected in such scenario. Hence put these messages under debug level 2 for INTx interrupt mode. Signed-off-by: Nilesh Javali <nilesh.javali@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_isr.c')
-rw-r--r--drivers/scsi/qla4xxx/ql4_isr.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_isr.c b/drivers/scsi/qla4xxx/ql4_isr.c
index acbc2feaa005..39669b5cea1c 100644
--- a/drivers/scsi/qla4xxx/ql4_isr.c
+++ b/drivers/scsi/qla4xxx/ql4_isr.c
@@ -1124,17 +1124,18 @@ irqreturn_t qla4_83xx_intr_handler(int irq, void *dev_id)
1124 1124
1125 /* Legacy interrupt is valid if bit31 of leg_int_ptr is set */ 1125 /* Legacy interrupt is valid if bit31 of leg_int_ptr is set */
1126 if (!(leg_int_ptr & LEG_INT_PTR_B31)) { 1126 if (!(leg_int_ptr & LEG_INT_PTR_B31)) {
1127 ql4_printk(KERN_ERR, ha, 1127 DEBUG2(ql4_printk(KERN_ERR, ha,
1128 "%s: Legacy Interrupt Bit 31 not set, spurious interrupt!\n", 1128 "%s: Legacy Interrupt Bit 31 not set, spurious interrupt!\n",
1129 __func__); 1129 __func__));
1130 return IRQ_NONE; 1130 return IRQ_NONE;
1131 } 1131 }
1132 1132
1133 /* Validate the PCIE function ID set in leg_int_ptr bits [19..16] */ 1133 /* Validate the PCIE function ID set in leg_int_ptr bits [19..16] */
1134 if ((leg_int_ptr & PF_BITS_MASK) != ha->pf_bit) { 1134 if ((leg_int_ptr & PF_BITS_MASK) != ha->pf_bit) {
1135 ql4_printk(KERN_ERR, ha, 1135 DEBUG2(ql4_printk(KERN_ERR, ha,
1136 "%s: Incorrect function ID 0x%x in legacy interrupt register, ha->pf_bit = 0x%x\n", 1136 "%s: Incorrect function ID 0x%x in legacy interrupt register, ha->pf_bit = 0x%x\n",
1137 __func__, (leg_int_ptr & PF_BITS_MASK), ha->pf_bit); 1137 __func__, (leg_int_ptr & PF_BITS_MASK),
1138 ha->pf_bit));
1138 return IRQ_NONE; 1139 return IRQ_NONE;
1139 } 1140 }
1140 1141