]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
pci/irq: restore mask_bits in msi shutdown -v3
authorYinghai Lu <yhlu.kernel.send@gmail.com>
Wed, 23 Apr 2008 21:56:30 +0000 (14:56 -0700)
committerJesse Barnes <jbarnes@hobbes.lan>
Tue, 29 Apr 2008 16:11:12 +0000 (09:11 -0700)
commit8e149e09f91098fd72bf9ac5b4a77a693abf721e
treee0aae800a75a478820494ddce42291f896014012
parent2768f92c06a59c3ebf17a6b86002c3f33ab61a28
pci/irq: restore mask_bits in msi shutdown -v3

[PATCH 1/2] pci/irq: restore mask_bits in msi shutdown -v3

Yinghai found that kexec'ing a RHEL 5.1 kernel with 2.6.25-rc3+ kernels
prevents his NIC from working.  He bisected to

| commit 89d694b9dbe769ca1004e01db0ca43964806a611
| Author: Thomas Gleixner <tglx@linutronix.de>
| Date:   Mon Feb 18 18:25:17 2008 +0100
|
|   genirq: do not leave interupts enabled on free_irq
|
|   The default_disable() function was changed in commit:
|
|    76d2160147f43f982dfe881404cfde9fd0a9da21
|    genirq: do not mask interrupts by default
|

For MSI, default_shutdown will call mask_bit for msi device.  All mask bits
will left disabled after free_irq.  Then in the kexec case, the next kernel
can only use msi_enable bit, so all device's MSI can not be used.

So lets to restore the mask bit to its pci reset defined value (enabled) when
we disable the kernels use of msi to be a little friendlier to kexec'd kernels.

Extend msi_set_mask_bit to msi_set_mask_bits to take mask, so we can fully
restore that to 0x00 instead of 0xfe.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@hobbes.lan>
drivers/pci/msi.c
include/linux/msi.h