diff options
author | Yinghai Lu <yhlu.kernel.send@gmail.com> | 2008-04-23 17:58:09 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@hobbes.lan> | 2008-04-29 12:12:51 -0400 |
commit | d52877c7b1afb8c37ebe17e2005040b79cb618b0 (patch) | |
tree | b5cc4252cad0d7f22a6b63e50d1ec46a9a495773 /include | |
parent | 8e149e09f91098fd72bf9ac5b4a77a693abf721e (diff) |
pci/irq: let pci_device_shutdown to call pci_msi_shutdown v2
[PATCH 2/2] pci/irq: let pci_device_shutdown to call pci_msi_shutdown v2
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>
|
Causes the kexec of a RHEL 5.1 kernel to fail.
root casue: the rhel 5.1 kernel still uses INTx emulation. and
mptscsih_shutdown doesn't call pci_disable_msi to reenable INTx on kexec path
So call pci_msi_shutdown in the shutdown path to do the same thing to msix
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@hobbes.lan>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pci.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 7a0770d4c4e2..e09c57e9c373 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -701,6 +701,8 @@ static inline int pci_enable_msi(struct pci_dev *dev) | |||
701 | return -1; | 701 | return -1; |
702 | } | 702 | } |
703 | 703 | ||
704 | static inline void pci_msi_shutdown(struct pci_dev *dev) | ||
705 | { } | ||
704 | static inline void pci_disable_msi(struct pci_dev *dev) | 706 | static inline void pci_disable_msi(struct pci_dev *dev) |
705 | { } | 707 | { } |
706 | 708 | ||
@@ -710,6 +712,8 @@ static inline int pci_enable_msix(struct pci_dev *dev, | |||
710 | return -1; | 712 | return -1; |
711 | } | 713 | } |
712 | 714 | ||
715 | static inline void pci_msix_shutdown(struct pci_dev *dev) | ||
716 | { } | ||
713 | static inline void pci_disable_msix(struct pci_dev *dev) | 717 | static inline void pci_disable_msix(struct pci_dev *dev) |
714 | { } | 718 | { } |
715 | 719 | ||
@@ -720,9 +724,11 @@ static inline void pci_restore_msi_state(struct pci_dev *dev) | |||
720 | { } | 724 | { } |
721 | #else | 725 | #else |
722 | extern int pci_enable_msi(struct pci_dev *dev); | 726 | extern int pci_enable_msi(struct pci_dev *dev); |
727 | extern void pci_msi_shutdown(struct pci_dev *dev); | ||
723 | extern void pci_disable_msi(struct pci_dev *dev); | 728 | extern void pci_disable_msi(struct pci_dev *dev); |
724 | extern int pci_enable_msix(struct pci_dev *dev, | 729 | extern int pci_enable_msix(struct pci_dev *dev, |
725 | struct msix_entry *entries, int nvec); | 730 | struct msix_entry *entries, int nvec); |
731 | extern void pci_msix_shutdown(struct pci_dev *dev); | ||
726 | extern void pci_disable_msix(struct pci_dev *dev); | 732 | extern void pci_disable_msix(struct pci_dev *dev); |
727 | extern void msi_remove_pci_irq_vectors(struct pci_dev *dev); | 733 | extern void msi_remove_pci_irq_vectors(struct pci_dev *dev); |
728 | extern void pci_restore_msi_state(struct pci_dev *dev); | 734 | extern void pci_restore_msi_state(struct pci_dev *dev); |