PPC64 PCI Hotplug Driver for RPA
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]).
Thanks-
John
drivers/pci/hotplug/Kconfig +12 -0
@@ -133,5 +133,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
@@ -10,6 +10,7 @@ obj-$(CONFIG_HOTPLUG_PCI_CPCI_ZT5550) += cpcihp_zt5550.o obj-$(CONFIG_HOTPLUG_PCI_CPCI_GENERIC) += cpcihp_generic.o obj-$(CONFIG_HOTPLUG_PCI_RPA) += rpaphp.o +obj-$(CONFIG_HOTPLUG_PCI_RPA_DLPAR) += rpadlpar_io.o pci_hotplug-objs := pci_hotplug_core.o
@@ -36,6 +37,9 @@ rpaphp-objs := rpaphp_core.o \ rpaphp_pci.o + +rpadlpar_io-objs := rpadlpar_core.o \ + rpadlpar_sysfs.o ifdef CONFIG_HOTPLUG_PCI_ACPI EXTRA_CFLAGS += -D_LINUX -I$(TOPDIR)/drivers/acpi
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
Greg KH
AppliedQuoted 11 lines · On Tue, Feb 10, 2004 at 07:12:29PM -0600, [email protected] wrote:
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]).
Applied, thanks.
greg k-h
A message that is not in the archive (sent off-list or not yet received): [email protected]
Greg KH
AppliedRe: [PATH] rpaphp_fixes. patch
Quoted 7 lines · Linda Xie
Hi Greg,
Quoted 2 lines · Greg KH
Applied, thanks.
Quoted 7 lines
Quoted 2 lines
greg k-h
The attached patch has a fix for the conflict between fakephp and rpaphp so that fakephp and
rpaphp can't be built into the kernel at the same time and a couple of problems
I missed in my previous patch. (Sorry about that).
Applied, thanks.
greg k-h