From: brking@us.ibm.com Date: Thu, 17 Nov 2005 15:35:12 +0000 (-0600) Subject: [SCSI] ipr: Driver initialization fix for kexec/kdump X-Git-Tag: v2.6.16-rc1~474^2~22^2~8^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce155ccecd4094e7b5e68058d26db691713240fc;p=pandora-kernel.git [SCSI] ipr: Driver initialization fix for kexec/kdump 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: Brian King Signed-off-by: James Bottomley --- Reading git-diff-tree failed