]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hpsa: turn off interrupts when kdump starts
authorTomas Henzl <thenzl@redhat.com>
Fri, 23 Jan 2015 22:41:20 +0000 (16:41 -0600)
committerZefan Li <lizefan@huawei.com>
Fri, 19 Jun 2015 03:40:33 +0000 (11:40 +0800)
commit52f706062ac08cfbb1b9d689e69949b6440c30eb
tree8b4e5e79807d00628620d8a0326ee93a3fcd70f0
parent554117937a31d12a6c3fa8d98dcb1bde672130dd
hpsa: turn off interrupts when kdump starts

commit 3b747298786355c6934b0892fc9ae4ca44105192 upstream.

Sometimes when the card is restarted it may cause -
"irq 16: nobody cared (try booting with the "irqpoll" option)"
that is likely caused so, that the card, after the hard reset
finishes, pulls on the irq. Disabling the ints before or after
the hpsa_kdump_hard_reset_controller fixes it.

At this point we can't know in which state the card is,
so using SA5_INTR_OFF + SA5_REPLY_INTR_MASK_OFFSET defines directly,
instead of the function the drivers provides, seems to be apropriate.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Vinson Lee <vlee@twopensource.com>
[lizf: Backported to 3.4: adjust context]
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/scsi/hpsa.c