login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
23
Re: [PATCH] pci: let pci_device_shutdown to call pci_disable_msi
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Yinghai Lu
Subject:
Re: [PATCH] pci: let pci_device_shutdown to call pci_disable_msi
Date: Wednesday, April 23, 2008 - 10:31 am
On Wed, Apr 23, 2008 at 6:08 AM, Eric W. Biederman <ebiederm@xmission.com> wrote:
quoted text
> Michael Ellerman <michael@ellerman.id.au> writes: > > > On Tue, 2008-04-22 at 21:48 -0700, Yinghai Lu wrote: > >> this change > >> > >> | commit 23a274c8a5adafc74a66f16988776fc7dd6f6e51 > >> | Author: Prakash, Sathya <sathya.prakash@lsi.com> > >> | Date: Fri Mar 7 15:53:21 2008 +0530 > >> | > >> | [SCSI] mpt fusion: Enable MSI by default for SAS controllers > >> | > >> | This patch modifies the driver to enable MSI by default for all SAS chips. > >> | > >> | Signed-off-by: Sathya Prakash <sathya.prakash@lsi.com> > >> | Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> > >> | > >> cause kexec RHEL 5.1 kernel fail. > >> > >> root casue: the rhel 5.1 kernel still use INTx emulation. > >> and mptscsih_shutdown doesn't call pci_disable_msi to reenable INTx on kexec > > path > >> > >> so try to call pci_disable_msi in shutdown patch > > > > How is kdump going to work? Your shutdown routine won't be called and > > you'll have the same problem in the 2nd kernel, won't you? > > Taking a quick look our current msi initialization appears robust in > not assuming the state of the msi config bits. > > So the only remaining problem is running older software that > assumes the msi config bits are in the state they should be in > out of reset. > > YH on that score it appears I goofed a little when I gave you > my suggestion on how to fix this in pci_disable_msi. > > If we have crazy hardware that supports multi irqs in with > a plain msi capability. During initialization we mask > all of the irqs. > > from msi_capability_init: > if (entry->msi_attrib.maskbit) { > unsigned int maskbits, temp; > /* All MSIs are unmasked by default, Mask them all */ > pci_read_config_dword(dev, > msi_mask_bits_reg(pos, is_64bit_address(control)), > &maskbits); > temp = (1 << multi_msi_capable(control)); > temp = ((temp - 1) & ~temp); > maskbits |= temp; > pci_write_config_dword(dev, > msi_mask_bits_reg(pos, is_64bit_address(control)), > maskbits); > } > > So it appears to truly return to the reset state we should unmask > them all, instead of just that one. Not that it matters in practice, > but handling that corner case would be polite.
will extend that a little bit. 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
:
Dave Jones
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Sam Ravnborg
Re: [PATCH] kbuild: fix make V=1
Nick Piggin
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
Greg Kroah-Hartman
[PATCH 07/36] UIO: hold a reference to the device's owner while the device is open
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Junio C Hamano
Re: [PATCH 1/2] Teach git-describe to display distances from tags.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
James Henstridge
Re: VCS comparison table
linux-netdev
:
Jarek Poplawski
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Lennert Buytenhek
Re: Distributed Switch Architecture(DSA)
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Guo-Fu Tseng
Re: jme: UDP checksum error, and lots of them
openbsd-misc
:
Claudio Jeker
Re: Vlan Tag on Vlan Tag (l2tunneling)
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Pieter Verberne
File collision while using pkg_add
Tomas Bodzar
bsd: uvm_mapent_alloc: out of static map entries
Community First Financial
Teacher A+ Loan
git-commits-head
:
Linux Kernel Mailing List
ath9k: Added get_survey callback in order to get channel noise
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
kconfig: recalc symbol value before showing search results
Linux Kernel Mailing List
KVM: VMX: Clear CR4.VMXE in hardware_disable
Linux Kernel Mailing List
swsusp: provide users with a hint about the no_console_suspend option
Colocation donated by:
Syndicate