Skip to content

Commit 063d2cf

Browse files
Stephen M. CameronJens Axboe
authored andcommitted
cciss: do not use bit 2 doorbell reset
It causes NMIs which are undesirable at best, unsurvivable at worst. Prefer the soft reset instead. Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent ec52d5f commit 063d2cf

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎drivers/block/cciss.c‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4673,8 +4673,14 @@ static __devinit int cciss_kdump_hard_reset_controller(struct pci_dev *pdev)
46734673
use_doorbell = DOORBELL_CTLR_RESET2;
46744674
} else {
46754675
use_doorbell = misc_fw_support & MISC_FW_DOORBELL_RESET;
4676-
if (use_doorbell)
4677-
use_doorbell = DOORBELL_CTLR_RESET;
4676+
if (use_doorbell) {
4677+
dev_warn(&pdev->dev, "Controller claims that "
4678+
"'Bit 2 doorbell reset' is "
4679+
"supported, but not 'bit 5 doorbell reset'. "
4680+
"Firmware update is recommended.\n");
4681+
rc = -ENOTSUPP; /* use the soft reset */
4682+
goto unmap_cfgtable;
4683+
}
46784684
}
46794685

46804686
rc = cciss_controller_hard_reset(pdev, vaddr, use_doorbell);

0 commit comments

Comments
 (0)