]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: msi: Disable msi interrupts when we initialize a pci device
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 17 Oct 2011 18:46:06 +0000 (11:46 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 6 Dec 2011 17:26:05 +0000 (09:26 -0800)
commitd3fe695b816e2f33ee816ee0c69ccd95a830206f
treefcd99b07273ab23072a83b9f5bfe42d7826495e6
parente63db26ff89bdc6f2518f5bbc2afcc7410268ffd
PCI: msi: Disable msi interrupts when we initialize a pci device

I traced a nasty kexec on panic boot failure to the fact that we had
screaming msi interrupts and we were not disabling the msi messages at
kernel startup.  The booting kernel had not enabled those interupts so
was not prepared to handle them.

I can see no reason why we would ever want to leave the msi interrupts
enabled at boot if something else has enabled those interrupts.  The pci
spec specifies that msi interrupts should be off by default.  Drivers
are expected to enable the msi interrupts if they want to use them.  Our
interrupt handling code reprograms the interrupt handlers at boot and
will not be be able to do anything useful with an unexpected interrupt.

This patch applies cleanly all of the way back to 2.6.32 where I noticed
the problem.

Cc: stable@kernel.org
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/msi.c