aboutsummaryrefslogtreecommitdiff
path: root/lib/halfmd4.c
diff options
context:
space:
mode:
authorMitch Williams <mitch.a.williams@intel.com>2007-03-30 11:54:08 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2007-05-02 19:02:34 -0700
commit988cbb15e00e6f924d052874b40c6a5447f9fdd7 (patch)
treea4bea1a5cdbfd8321463cc50b5539bebd4b01155 /lib/halfmd4.c
parentdc87c3985e9b442c60994308a96f887579addc39 (diff)
PCI: Flush MSI-X table writes
This patch fixes a kernel bug which is triggered when using the irqbalance daemon with MSI-X hardware. Because both MSI-X interrupt messages and MSI-X table writes are posted, it's possible for them to cross while in-flight. This results in interrupts being received long after the kernel thinks they're disabled, and in interrupts being sent to stale vectors after rebalancing. This patch performs a read flush after writes to the MSI-X table for mask and unmask operations. Since the SMP affinity is set while the interrupt is masked, and since it's unmasked immediately after, no additional flushes are required in the various affinity setting routines. This patch has been validated with (unreleased) network hardware which uses MSI-X. Revised with input from Eric Biederman. Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/halfmd4.c')
0 files changed, 0 insertions, 0 deletions