diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-16 14:53:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-16 14:53:32 -0400 |
commit | d19d5efd8c8840aa4f38a6dfbfe500d8cc27de46 (patch) | |
tree | 2e2f4f57de790c7de2ccd6d1afbec8695b2c7a46 /include/linux/pci.h | |
parent | 34c9a0ffc75ad25b6a60f61e27c4a4b1189b8085 (diff) | |
parent | 2fe0753d49402aee325cc39c476b46fd51a8afec (diff) |
Merge tag 'powerpc-4.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux
Pull powerpc updates from Michael Ellerman:
- Numerous minor fixes, cleanups etc.
- More EEH work from Gavin to remove its dependency on device_nodes.
- Memory hotplug implemented entirely in the kernel from Nathan
Fontenot.
- Removal of redundant CONFIG_PPC_OF by Kevin Hao.
- Rewrite of VPHN parsing logic & tests from Greg Kurz.
- A fix from Nish Aravamudan to reduce memory usage by clamping
nodes_possible_map.
- Support for pstore on powernv from Hari Bathini.
- Removal of old powerpc specific byte swap routines by David Gibson.
- Fix from Vasant Hegde to prevent the flash driver telling you it was
flashing your firmware when it wasn't.
- Patch from Ben Herrenschmidt to add an OPAL heartbeat driver.
- Fix for an oops causing get/put_cpu_var() imbalance in perf by Jan
Stancek.
- Some fixes for migration from Tyrel Datwyler.
- A new syscall to switch the cpu endian by Michael Ellerman.
- Large series from Wei Yang to implement SRIOV, reviewed and acked by
Bjorn.
- A fix for the OPAL sensor driver from Cédric Le Goater.
- Fixes to get STRICT_MM_TYPECHECKS building again by Michael Ellerman.
- Large series from Daniel Axtens to make our PCI hooks per PHB rather
than per machine.
- Small patch from Sam Bobroff to explicitly abort non-suspended
transactions on syscalls, plus a test to exercise it.
- Numerous reworks and fixes for the 24x7 PMU from Sukadev Bhattiprolu.
- Small patch to enable the hard lockup detector from Anton Blanchard.
- Fix from Dave Olson for missing L2 cache information on some CPUs.
- Some fixes from Michael Ellerman to get Cell machines booting again.
- Freescale updates from Scott: Highlights include BMan device tree
nodes, an MSI erratum workaround, a couple minor performance
improvements, config updates, and misc fixes/cleanup.
* tag 'powerpc-4.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux: (196 commits)
powerpc/powermac: Fix build error seen with powermac smp builds
powerpc/pseries: Fix compile of memory hotplug without CONFIG_MEMORY_HOTREMOVE
powerpc: Remove PPC32 code from pseries specific find_and_init_phbs()
powerpc/cell: Fix iommu breakage caused by controller_ops change
powerpc/eeh: Fix crash in eeh_add_device_early() on Cell
powerpc/perf: Cap 64bit userspace backtraces to PERF_MAX_STACK_DEPTH
powerpc/perf/hv-24x7: Fail 24x7 initcall if create_events_from_catalog() fails
powerpc/pseries: Correct memory hotplug locking
powerpc: Fix missing L2 cache size in /sys/devices/system/cpu
powerpc: Add ppc64 hard lockup detector support
oprofile: Disable oprofile NMI timer on ppc64
powerpc/perf/hv-24x7: Add missing put_cpu_var()
powerpc/perf/hv-24x7: Break up single_24x7_request
powerpc/perf/hv-24x7: Define update_event_count()
powerpc/perf/hv-24x7: Whitespace cleanup
powerpc/perf/hv-24x7: Define add_event_to_24x7_request()
powerpc/perf/hv-24x7: Rename hv_24x7_event_update
powerpc/perf/hv-24x7: Move debug prints to separate function
powerpc/perf/hv-24x7: Drop event_24x7_request()
powerpc/perf/hv-24x7: Use pr_devel() to log message
...
Conflicts:
tools/testing/selftests/powerpc/Makefile
tools/testing/selftests/powerpc/tm/Makefile
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index e63112fb55be..353db8dc4c6e 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1178,6 +1178,7 @@ unsigned char pci_bus_max_busnr(struct pci_bus *bus); | |||
1178 | void pci_setup_bridge(struct pci_bus *bus); | 1178 | void pci_setup_bridge(struct pci_bus *bus); |
1179 | resource_size_t pcibios_window_alignment(struct pci_bus *bus, | 1179 | resource_size_t pcibios_window_alignment(struct pci_bus *bus, |
1180 | unsigned long type); | 1180 | unsigned long type); |
1181 | resource_size_t pcibios_iov_resource_alignment(struct pci_dev *dev, int resno); | ||
1181 | 1182 | ||
1182 | #define PCI_VGA_STATE_CHANGE_BRIDGE (1 << 0) | 1183 | #define PCI_VGA_STATE_CHANGE_BRIDGE (1 << 0) |
1183 | #define PCI_VGA_STATE_CHANGE_DECODES (1 << 1) | 1184 | #define PCI_VGA_STATE_CHANGE_DECODES (1 << 1) |
@@ -1673,13 +1674,25 @@ int pci_ext_cfg_avail(void); | |||
1673 | void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar); | 1674 | void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar); |
1674 | 1675 | ||
1675 | #ifdef CONFIG_PCI_IOV | 1676 | #ifdef CONFIG_PCI_IOV |
1677 | int pci_iov_virtfn_bus(struct pci_dev *dev, int id); | ||
1678 | int pci_iov_virtfn_devfn(struct pci_dev *dev, int id); | ||
1679 | |||
1676 | int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); | 1680 | int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); |
1677 | void pci_disable_sriov(struct pci_dev *dev); | 1681 | void pci_disable_sriov(struct pci_dev *dev); |
1678 | int pci_num_vf(struct pci_dev *dev); | 1682 | int pci_num_vf(struct pci_dev *dev); |
1679 | int pci_vfs_assigned(struct pci_dev *dev); | 1683 | int pci_vfs_assigned(struct pci_dev *dev); |
1680 | int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs); | 1684 | int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs); |
1681 | int pci_sriov_get_totalvfs(struct pci_dev *dev); | 1685 | int pci_sriov_get_totalvfs(struct pci_dev *dev); |
1686 | resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno); | ||
1682 | #else | 1687 | #else |
1688 | static inline int pci_iov_virtfn_bus(struct pci_dev *dev, int id) | ||
1689 | { | ||
1690 | return -ENOSYS; | ||
1691 | } | ||
1692 | static inline int pci_iov_virtfn_devfn(struct pci_dev *dev, int id) | ||
1693 | { | ||
1694 | return -ENOSYS; | ||
1695 | } | ||
1683 | static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) | 1696 | static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) |
1684 | { return -ENODEV; } | 1697 | { return -ENODEV; } |
1685 | static inline void pci_disable_sriov(struct pci_dev *dev) { } | 1698 | static inline void pci_disable_sriov(struct pci_dev *dev) { } |
@@ -1690,6 +1703,8 @@ static inline int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) | |||
1690 | { return 0; } | 1703 | { return 0; } |
1691 | static inline int pci_sriov_get_totalvfs(struct pci_dev *dev) | 1704 | static inline int pci_sriov_get_totalvfs(struct pci_dev *dev) |
1692 | { return 0; } | 1705 | { return 0; } |
1706 | static inline resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno) | ||
1707 | { return 0; } | ||
1693 | #endif | 1708 | #endif |
1694 | 1709 | ||
1695 | #if defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE) | 1710 | #if defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE) |