• B
    [SCSI] ipr: Driver initialization fix for kexec/kdump · ce155cce
    brking@us.ibm.com 提交于
    When kexec booting a kernel when the previous kernel did not
    call ipr's shutdown method, the ipr adapter does not get
    properly initialized, which can result in the ipr adapter
    completing commands issued by the previous kernel. Fix ipr
    to detect this scenario by reading the adapter's interrupt
    mask register and the microprocessor interrupt register.
    If the interrupt mask register indicates that interrupts
    are enabled or the reset alert bit is set when the card is
    probed, this means the card is in an unknown state and we
    hard reset the card.
    Signed-off-by: NBrian King <brking@us.ibm.com>
    Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
    ce155cce
ipr.c 179.6 KB