PCI update for 2.6.3
Subsystems (11)
A message that is not in the archive (sent off-list or not yet received): [email protected]
ChangeSet 1.1557.58.6, 2004/02/18 12:53:42-08:00, [email protected]
[PATCH] PCI Hotplug: Add PPC64 PCI Hotplug Driver for RPA
drivers/pci/hotplug/Kconfig | 11 drivers/pci/hotplug/Makefile | 4 drivers/pci/hotplug/rpaphp.h | 101 ++++ drivers/pci/hotplug/rpaphp_core.c | 948 ++++++++++++++++++++++++++++++++++++++ drivers/pci/hotplug/rpaphp_pci.c | 75 +++ 5 files changed, 1139 insertions(+)
drivers/pci/hotplug/Kconfig +11 -0
@@ -189,5 +189,16 @@ Say Y here for AMD SHPC. You have to select this option if you are using this driver on AMD platform with SHPC. +config HOTPLUG_PCI_RPA + tristate "RPA PCI Hotplug driver" + depends on HOTPLUG_PCI && PPC_PSERIES && PPC64 + help + Say Y here if you have a a RPA system that supports PCI Hotplug. + + To compile this driver as a module, choose M here: the + module will be called rpaphp. + + When in doubt, say N. + endmenu
drivers/pci/hotplug/Makefile +4 -0
@@ -11,6 +11,7 @@ obj-$(CONFIG_HOTPLUG_PCI_CPCI_GENERIC) += cpcihp_generic.o obj-$(CONFIG_HOTPLUG_PCI_PCIE) += pciehp.o obj-$(CONFIG_HOTPLUG_PCI_SHPC) += shpchp.o +obj-$(CONFIG_HOTPLUG_PCI_RPA) += rpaphp.o pci_hotplug-objs := pci_hotplug_core.o
@@ -34,6 +35,9 @@ acpiphp_glue.o \ acpiphp_pci.o \ acpiphp_res.o + +rpaphp-objs := rpaphp_core.o \ + rpaphp_pci.o pciehp-objs := pciehp_core.o \ pciehp_ctrl.o \
drivers/pci/hotplug/rpaphp.h new file +101 -0
101 lines not on this page · raw message
drivers/pci/hotplug/rpaphp_core.c new file +948 -0
948 lines not on this page · raw message
drivers/pci/hotplug/rpaphp_pci.c new file +75 -0
75 lines not on this page · raw message
ChangeSet 1.1557.58.7, 2004/02/18 12:57:30-08:00, [email protected]
[PATCH] PCI Hotplug : add DLPAR driver for PPC64 PCI Hotplug slots
Please consider the following patch for submission. This patch contains the implementation of the I/O Slot DLPAR Drivers for PPC64 RISC Platform Architecture. This module depends on the RPA PCI Hotplug Module in the previous post. The patch is made against kernel version 2.6.3-rc2.
The Dynamic Logical Partitioning Module allows the runtime movement of I/O Slots between logical partitions. An administrator can logically add/remove PCI Buses to/from a PPC64 partition at runtime. These operations are initiated using interface files located at:/sys/bus/pci/pci_hotplug_slots/control/
Development contact for this module is John Rose ([email protected]).
drivers/pci/hotplug/Kconfig | 12 + drivers/pci/hotplug/Makefile | 4 drivers/pci/hotplug/rpadlpar.h | 24 ++ drivers/pci/hotplug/rpadlpar_core.c | 343 +++++++++++++++++++++++++++++++++++ drivers/pci/hotplug/rpadlpar_sysfs.c | 151 +++++++++++++++ 5 files changed, 534 insertions(+)
drivers/pci/hotplug/Kconfig +12 -0
@@ -200,5 +200,17 @@ When in doubt, say N. +config HOTPLUG_PCI_RPA_DLPAR + tristate "RPA Dynamic Logical Partitioning for I/O slots" + depends on HOTPLUG_PCI_RPA + help + Say Y here if your system supports Dynamic Logical Partitioning + for I/O slots. + + To compile this driver as a module, choose M here: the + module will be called rpadlpar_io. + + When in doubt, say N. + endmenu
drivers/pci/hotplug/Makefile +4 -0
@@ -12,6 +12,7 @@ obj-$(CONFIG_HOTPLUG_PCI_PCIE) += pciehp.o obj-$(CONFIG_HOTPLUG_PCI_SHPC) += shpchp.o obj-$(CONFIG_HOTPLUG_PCI_RPA) += rpaphp.o +obj-$(CONFIG_HOTPLUG_PCI_RPA_DLPAR) += rpadlpar_io.o pci_hotplug-objs := pci_hotplug_core.o
@@ -38,6 +39,9 @@ rpaphp-objs := rpaphp_core.o \ rpaphp_pci.o + +rpadlpar_io-objs := rpadlpar_core.o \ + rpadlpar_sysfs.o pciehp-objs := pciehp_core.o \ pciehp_ctrl.o \
drivers/pci/hotplug/rpadlpar.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Interface for Dynamic Logical Partitioning of I/O Slots on +* RPA-compliant PPC64 platform. +* +* John Rose <[email protected]> +* October 2003 +* +* Copyright (C) 2003 IBM. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version +* 2 of the License, or (at your option) any later version. +*/ +#ifndef _RPADLPAR_IO_H_ +#define _RPADLPAR_IO_H_ + +extern int dlpar_sysfs_init (void ); +extern void dlpar_sysfs_exit (void ); + +extern int dlpar_add_slot (char *drc_name); +extern int dlpar_remove_slot (char *drc_name); + +#endif
drivers/pci/hotplug/rpadlpar_core.c new file +343 -0
343 lines not on this page · raw message
drivers/pci/hotplug/rpadlpar_sysfs.c new file +151 -0
151 lines not on this page · raw message
ChangeSet 1.1557.58.8, 2004/02/18 13:33:13-08:00, [email protected]
PCI: fix pci quirk for P4B533-V, fixes bug 1720
Thanks to [email protected] (Stephan Rave) for the patch.
drivers/pci/quirks.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-)
drivers/pci/quirks.c +6 -3
@@ -703,9 +703,12 @@case 0x8088 :/* P4B533 */ asus_hides_smbus =1 ; } -if ((dev->device ==PCI_DEVICE_ID_INTEL_82845G_HB ) && - (dev->subsystem_device ==0x80b2 ))/* P4PE */ - asus_hides_smbus =1 ; +if (dev->device ==PCI_DEVICE_ID_INTEL_82845G_HB ) +switch (dev->subsystem_device) { +case 0x80b2 :/* P4PE */ +case 0x8093 :/* P4B533-V */ + asus_hides_smbus =1 ; + }if ((dev->device ==PCI_DEVICE_ID_INTEL_82850_HB ) && (dev->subsystem_device ==0x8030 ))/* P4T533 */ asus_hides_smbus =1 ;
ChangeSet 1.1557.58.9, 2004/02/18 15:25:48-08:00, [email protected]
[PATCH] move CONFIG_HOTPLUG to init/Kconfig
As a bonus: cris, h8300, m68k and sparc can use CONFIG_HOTPLUG now.
arch/alpha/Kconfig | 18 ------------------ arch/arm/Kconfig | 18 ------------------ arch/arm26/Kconfig | 18 ------------------ arch/i386/Kconfig | 18 ------------------ arch/ia64/Kconfig | 18 ------------------ arch/m68knommu/Kconfig | 18 ------------------ arch/mips/Kconfig | 18 ------------------ arch/ppc/Kconfig | 18 ------------------ arch/ppc64/Kconfig | 18 ------------------ arch/sh/Kconfig | 18 ------------------ arch/sparc64/Kconfig | 18 ------------------ arch/v850/Kconfig | 18 ------------------ arch/x86_64/Kconfig | 18 ------------------ drivers/parisc/Kconfig | 18 ------------------ drivers/s390/Kconfig | 22 ---------------------- init/Kconfig | 19 +++++++++++++++++++ 16 files changed, 19 insertions(+), 274 deletions(-)
arch/alpha/Kconfig +0 -18
@@ -569,24 +569,6 @@ source "drivers/pci/Kconfig" source "drivers/eisa/Kconfig" -config HOTPLUG - bool "Support for hot-pluggable devices" - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - source "drivers/pcmcia/Kconfig" config SRM_ENV
arch/arm/Kconfig +0 -18
@@ -365,24 +365,6 @@ source "drivers/pci/Kconfig" -config HOTPLUG - bool "Support for hot-pluggable devices" - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - source "drivers/pcmcia/Kconfig" comment "At least one math emulation must be selected"
arch/arm26/Kconfig +0 -18
@@ -118,24 +118,6 @@ Select this option to create a kernel that can be programed into the OS ROMs. -config HOTPLUG - bool "Support for hot-pluggable devices" - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - comment "At least one math emulation must be selected" config FPE_NWFPE
arch/i386/Kconfig +0 -18
@@ -1131,24 +1131,6 @@ This support is also available as a module. If compiled as a module, it will be called scx200. -config HOTPLUG - bool "Support for hot-pluggable devices" - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - source "drivers/pcmcia/Kconfig" source "drivers/pci/hotplug/Kconfig"
arch/ia64/Kconfig +0 -18
@@ -439,24 +439,6 @@ source "drivers/pci/Kconfig" -config HOTPLUG - bool "Support for hot-pluggable devices" - help - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - source "drivers/pci/hotplug/Kconfig" source "drivers/pcmcia/Kconfig"
arch/m68knommu/Kconfig +0 -18
@@ -464,24 +464,6 @@ source "drivers/pci/Kconfig" -config HOTPLUG - bool "Support for hot-pluggable device" - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - source "drivers/pcmcia/Kconfig" source "drivers/pci/hotplug/Kconfig"
arch/mips/Kconfig +0 -18
@@ -1104,24 +1104,6 @@ config SBUS bool -config HOTPLUG - bool "Support for hot-pluggable devices" - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - source "drivers/pcmcia/Kconfig" source "drivers/pci/hotplug/Kconfig"
arch/ppc/Kconfig +0 -18
@@ -978,24 +978,6 @@ source "drivers/pci/Kconfig" -config HOTPLUG - bool "Support for hot-pluggable devices" - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - source "drivers/pcmcia/Kconfig" endmenu
arch/ppc64/Kconfig +0 -18
@@ -227,24 +227,6 @@ source "drivers/pci/Kconfig" -config HOTPLUG - bool "Support for hot-pluggable devices" - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - source "drivers/pcmcia/Kconfig" source "drivers/pci/hotplug/Kconfig"
arch/sh/Kconfig +0 -18
@@ -609,24 +609,6 @@ source "drivers/pci/Kconfig" -config HOTPLUG - bool "Support for hot-pluggable devices" - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - source "drivers/pcmcia/Kconfig" source "drivers/pci/hotplug/Kconfig"
arch/sparc64/Kconfig +0 -18
@@ -186,24 +186,6 @@ SPARC64 ports; its web page is available at <http://www.ultralinux.org/>. -config HOTPLUG - bool "Support for hot-pluggable devices" - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - # Global things across all Sun machines. config RWSEM_GENERIC_SPINLOCK bool
arch/v850/Kconfig +0 -18
@@ -236,24 +236,6 @@ source "drivers/pci/Kconfig" -config HOTPLUG - bool "Support for hot-pluggable device" - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - source "drivers/pcmcia/Kconfig" source "drivers/pci/hotplug/Kconfig"
arch/x86_64/Kconfig +0 -18
@@ -315,24 +315,6 @@ source "drivers/pci/Kconfig" -config HOTPLUG - bool "Support for hot-pluggable devices" - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well-known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems, or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - source "drivers/pcmcia/Kconfig" source "drivers/pci/hotplug/Kconfig"
drivers/parisc/Kconfig +0 -18
@@ -143,24 +143,6 @@ This has nothing to do with Chassis LCD and LED support. If unsure, say Y. - -config HOTPLUG - bool "Support for hot-pluggable devices" - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. source "drivers/pcmcia/Kconfig"
drivers/s390/Kconfig +0 -22
@@ -164,25 +164,3 @@ It is safe to say "Y" here. endmenu - - -config HOTPLUG - bool - default y - ---help--- - Say Y here if you want to plug devices into your computer while - the system is running, and be able to use them quickly. In many - cases, the devices can likewise be unplugged at any time too. - - One well known example of this is PCMCIA- or PC-cards, credit-card - size devices such as network cards, modems or hard drives which are - plugged into slots found on all modern laptop computers. Another - example, used on modern desktops as well as laptops, is USB. - - Enable HOTPLUG and KMOD, and build a modular kernel. Get agent - software (at <http://linux-hotplug.sourceforge.net/>) and install it. - Then your kernel will automatically call out to a user mode "policy - agent" (/sbin/hotplug) to load modules and set up software needed - to use devices as you hotplug them. - -
init/Kconfig +19 -0
@@ -137,6 +137,25 @@ 13 => 8 KB 12 => 4 KB +config HOTPLUG + bool "Support for hot-pluggable devices" if !ARCH_S390 + default ARCH_S390 + help + Say Y here if you want to plug devices into your computer while + the system is running, and be able to use them quickly. In many + cases, the devices can likewise be unplugged at any time too. + + One well known example of this is PCMCIA- or PC-cards, credit-card + size devices such as network cards, modems or hard drives which are + plugged into slots found on all modern laptop computers. Another + example, used on modern desktops as well as laptops, is USB. + + Enable HOTPLUG and KMOD, and build a modular kernel. Get agent + software (at <http://linux-hotplug.sourceforge.net/>) and install it. + Then your kernel will automatically call out to a user mode "policy + agent" (/sbin/hotplug) to load modules and set up software needed + to use devices as you hotplug them. + config IKCONFIG bool "Kernel .config support" ---help---
ChangeSet 1.1580, 2004/02/20 09:20:38-08:00, [email protected]
[PATCH] PCI: update MSI Documentation
After getting feedback from Tom,I made some changes to the patch Attached is a revised version.
Documentation/MSI-HOWTO.txt | 19 +++++++++---------- 1 files changed, 9 insertions(+), 10 deletions(-)
Documentation/MSI-HOWTO.txt +9 -10
@@ -1,6 +1,8 @@ The MSI Driver Guide HOWTO Tom L Nguyen [email protected] 10/03/2003 + Revised Feb 12, 2004 by Martine Silbermann + email: [email protected] 1. About this guide
@@ -90,17 +92,14 @@ 5. Configuring a driver to use MSI/MSI-X By default, the kernel will not enable MSI/MSI-X on all devices that -support this capability once the patch is installed. A kernel -configuration option must be selected to enable MSI/MSI-X support. +support this capability. The CONFIG_PCI_USE_VECTOR kernel option +must be selected to enable MSI/MSI-X support. 5.1 Including MSI support into the kernel -To include MSI support into the kernel requires users to patch the -VECTOR-base patch first and then the MSI patch because the MSI -support needs VECTOR based scheme. Once these patches are installed, -setting CONFIG_PCI_USE_VECTOR enables the VECTOR based scheme and -the option for MSI-capable device drivers to selectively enable MSI -(using pci_enable_msi as desribed below). +To allow MSI-Capable device drivers to selectively enable MSI (using +pci_enable_msi as described below), the VECTOR based scheme needs to +be enabled by setting CONFIG_PCI_USE_VECTOR. Since the target of the inbound message is the local APIC, providing CONFIG_PCI_USE_VECTOR is dependent on whether CONFIG_X86_LOCAL_APIC
@@ -130,7 +129,7 @@ 5.2 Configuring for MSI support Due to the non-contiguous fashion in vector assignment of the -existing Linux kernel, this patch does not support multiple +existing Linux kernel, this version does not support multiple messages regardless of the device function is capable of supporting more than one vector. The bus driver initializes only entry 0 of this capability if pci_enable_msi(...) is called successfully by
@@ -232,7 +231,7 @@ CONFIG_X86_LOCAL_APIC. Once CONFIG_X86_LOCAL_APIC=y, setting CONFIG_PCI_USE_VECTOR enables the VECTOR based scheme and the option for MSI-capable device drivers to selectively enable -MSI (using pci_enable_msi as desribed below). +MSI (using pci_enable_msi as described below). Note that CONFIG_X86_IO_APIC setting is irrelevant because MSI vector is allocated new during runtime and MSI support does not
ChangeSet 1.1581, 2004/02/20 10:25:25-08:00, [email protected]
[PATCH] PCI Hotplug: fix build warnings on 64 bit processors
drivers/pci/hotplug/cpqphp_sysfs.c | 4 ++-- drivers/pci/hotplug/pciehp_sysfs.c | 4 ++-- drivers/pci/hotplug/shpchp_sysfs.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)
drivers/pci/hotplug/cpqphp_sysfs.c +2 -2
@@ -38,7 +38,7 @@/* A few routines that create sysfs entries for the hot plug controller */ -static int show_ctrl (struct device *dev,char *buf) +static ssize_t show_ctrl (struct device *dev,char *buf) {struct pci_dev *pci_dev;struct controller *ctrl;
@@ -82,7 +82,7 @@ } static DEVICE_ATTR (ctrl, S_IRUGO, show_ctrl, NULL); -static int show_dev (struct device *dev,char *buf) +static ssize_t show_dev (struct device *dev,char *buf) {struct pci_dev *pci_dev;struct controller *ctrl;
drivers/pci/hotplug/pciehp_sysfs.c +2 -2
@@ -38,7 +38,7 @@/* A few routines that create sysfs entries for the hot plug controller */ -static int show_ctrl (struct device *dev,char *buf) +static ssize_t show_ctrl (struct device *dev,char *buf) {struct pci_dev *pci_dev;struct controller *ctrl;
@@ -82,7 +82,7 @@ } static DEVICE_ATTR (ctrl, S_IRUGO, show_ctrl, NULL); -static int show_dev (struct device *dev,char *buf) +static ssize_t show_dev (struct device *dev,char *buf) {struct pci_dev *pci_dev;struct controller *ctrl;
drivers/pci/hotplug/shpchp_sysfs.c +2 -2
@@ -38,7 +38,7 @@/* A few routines that create sysfs entries for the hot plug controller */ -static int show_ctrl (struct device *dev,char *buf) +static ssize_t show_ctrl (struct device *dev,char *buf) {struct pci_dev *pci_dev;struct controller *ctrl;
@@ -82,7 +82,7 @@ } static DEVICE_ATTR (ctrl, S_IRUGO, show_ctrl, NULL); -static int show_dev (struct device *dev,char *buf) +static ssize_t show_dev (struct device *dev,char *buf) {struct pci_dev *pci_dev;struct controller *ctrl;