login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
25
Re: [PATCH 1/2] pci/irq: restore mask_bits in msi shutdown -v3
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Yinghai Lu
Subject:
Re: [PATCH 1/2] pci/irq: restore mask_bits in msi shutdown -v3
Date: Thursday, April 24, 2008 - 5:40 pm
On Wed, Apr 23, 2008 at 2:56 PM, Yinghai Lu <yhlu.kernel.send@gmail.com> wrote:
quoted text
> > Yinghai found after using 2.6.25-rc3 later to kexec RHEL 5.1, > NIC can not be used. > > 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 > | > | It removed the mask function in favour of the default delayed > | interrupt disabling. Unfortunately this also broke the shutdown in > | free_irq() when the last handler is removed from the interrupt for > | those architectures which rely on the default implementations. Now we > | can end up with a enabled interrupt line after the last handler was > | removed, which can result in spurious interrupts. > | > | Fix this by adding a default_shutdown function, which is only > | installed, when the irqchip implementation does provide neither a > | shutdown nor a disable function. > | > | [@stable: affected versions: .21 - .24 ] > > for MSI, default_shutdown will call mask_bit for msi device. so all mask bits > will left disabled after free_irq. then if kexec next kernel that only can > use msi_enable bit. all device's MSI can not be used. > > want to try to restore MSI mask bits that is saved before using msi in first > kernel. > > Eric said: > This is over complicated and for hardware that erroneously triggers > a msi irq after free_irq may have potential problems. > > So lets do the much simpler, much safer, and more general method of > restoring the mask bit to it's pci reset defined value (enabled) when > we disable the kernels use of msi. > > it will work, because pci_diable_msi is called after free_irq is called. > > v3: 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>
andrew, this one should replace [PATCH] x86_64: restore mask_bits in msi shutdown in -mm YH --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] pci: let pci_device_shutdown to call pci_disable_msi
, Yinghai Lu
, (Tue Apr 22, 9:48 pm)
Re: [PATCH] pci: let pci_device_shutdown to call pci_disab ...
, Michael Ellerman
, (Tue Apr 22, 10:24 pm)
Re: [PATCH] pci: let pci_device_shutdown to call pci_disab ...
, Yinghai Lu
, (Tue Apr 22, 11:08 pm)
Re: [PATCH] pci: let pci_device_shutdown to call pci_disab ...
, Eric W. Biederman
, (Wed Apr 23, 5:57 am)
Re: [PATCH] pci: let pci_device_shutdown to call pci_disab ...
, Eric W. Biederman
, (Wed Apr 23, 6:08 am)
Re: [PATCH] pci: let pci_device_shutdown to call pci_disab ...
, Yinghai Lu
, (Wed Apr 23, 10:31 am)
Re: [PATCH] pci: let pci_device_shutdown to call pci_disab ...
, Yinghai Lu
, (Wed Apr 23, 10:32 am)
[PATCH 1/2] pci/irq: restore mask_bits in msi shutdown -v3
, Yinghai Lu
, (Wed Apr 23, 2:56 pm)
[PATCH 2/2] pci/irq: let pci_device_shutdown to call pci_m ...
, Yinghai Lu
, (Wed Apr 23, 2:58 pm)
Re: [PATCH] pci: let pci_device_shutdown to call pci_disab ...
, Michael Ellerman
, (Wed Apr 23, 5:17 pm)
Re: [PATCH] pci: let pci_device_shutdown to call pci_disab ...
, Yinghai Lu
, (Wed Apr 23, 6:22 pm)
Re: [PATCH] pci: let pci_device_shutdown to call pci_disab ...
, Yinghai Lu
, (Wed Apr 23, 7:11 pm)
Re: [PATCH 1/2] pci/irq: restore mask_bits in msi shutdown -v3
, Yinghai Lu
, (Thu Apr 24, 5:40 pm)
Re: [PATCH 1/2] pci/irq: restore mask_bits in msi shutdown -v3
, Jesse Barnes
, (Fri Apr 25, 2:48 pm)
Re: [PATCH 1/2] pci/irq: restore mask_bits in msi shutdown -v3
, Yinghai Lu
, (Fri Apr 25, 3:08 pm)
Re: [PATCH 1/2] pci/irq: restore mask_bits in msi shutdown -v3
, Jesse Barnes
, (Tue Apr 29, 9:13 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #11287] Regression in 2.6.27-rc2 in acpi_processor_init()
Ingo Molnar
Re: [PATCH] x86: silence section mismatch warning - uv_cpu_init
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Bill Davidsen
Re: Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series..
Chris Snook
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
Linux Kernel Mailing List
perf probe: Fix to exit callback soon after finding too many probe points
openbsd-misc
:
Christophe Rioux
Implementation example of snmp
Stephen J. Bevan
GRE over IPsec
Nick Holland
Re: booting openbsd on eee without cd-rom
Cabillot Julien
Re: OpenBSD isakmpd and pf vs Cisco PIX or ASA
Guido Tschakert
Re: what exactly is enc0?
Colocation donated by:
Syndicate