[PATCH RESEND 4/4] hotplug, powerpc, x86: Remove cpu_hotplug_driver_lock()

2013-09-25 Thread Toshi Kani
sult, ARCH_CPU_PROBE_RELEASE only enables / disables the cpu probe & release interface as intended. There is no functional change in this patch. Signed-off-by: Toshi Kani Acked-by: Rafael J. Wysocki Reviewed-by: Nathan Fontenot --- Performed build test only on powerpc. Resend: Rebased to linux

Re: [PATCH v2 4/4] hotplug, powerpc, x86: Remove cpu_hotplug_driver_lock()

2013-09-25 Thread Toshi Kani
On Wed, 2013-09-25 at 08:27 +, Rafael J. Wysocki wrote: > Hi, > > On Thursday, August 29, 2013 06:22:09 PM Toshi Kani wrote: > > cpu_hotplug_driver_lock() serializes CPU online/offline operations > > when ARCH_CPU_PROBE_RELEASE is set. This lock interface is no longer &

Re: [PATCH v2 0/4] Unify CPU hotplug lock interface

2013-08-30 Thread Toshi Kani
On Fri, 2013-08-30 at 14:14 +0200, Rafael J. Wysocki wrote: > On Friday, August 30, 2013 11:44:06 AM Yasuaki Ishimatsu wrote: > > (2013/08/30 9:22), Toshi Kani wrote: > > > lock_device_hotplug() was recently introduced to serialize CPU & Memory > > > online/offlin

Re: [PATCH v2 0/4] Unify CPU hotplug lock interface

2013-08-30 Thread Toshi Kani
On Fri, 2013-08-30 at 11:44 +0900, Yasuaki Ishimatsu wrote: > (2013/08/30 9:22), Toshi Kani wrote: > > lock_device_hotplug() was recently introduced to serialize CPU & Memory > > online/offline and hotplug operations, along with sysfs online interface > > restructure (com

[PATCH v2 4/4] hotplug, powerpc, x86: Remove cpu_hotplug_driver_lock()

2013-08-29 Thread Toshi Kani
sult, ARCH_CPU_PROBE_RELEASE only enables / disables the cpu probe & release interface as intended. There is no functional change in this patch. Signed-off-by: Toshi Kani Acked-by: Rafael J. Wysocki Reviewed-by: Nathan Fontenot --- Performed build test only on powerpc. --- arch/powerpc/kern

[PATCH v2 0/4] Unify CPU hotplug lock interface

2013-08-29 Thread Toshi Kani
akes sure that lock_device_hotplug() covers all CPU online/ offline interfaces, and then removes cpu_hotplug_driver_lock(). v2: - Rebased to the pm tree, bleeding-edge. - Changed patch 2/4 to use lock_device_hotplug_sysfs(). --- Toshi Kani (4): hotplug, x86: Fix online state in cpu0 debug inter

[PATCH v2 3/4] hotplug, x86: Disable ARCH_CPU_PROBE_RELEASE on x86

2013-08-29 Thread Toshi Kani
x86 and revert the changes made by commit d7c53c9e. Signed-off-by: Toshi Kani Acked-by: Rafael J. Wysocki --- arch/x86/Kconfig |4 arch/x86/kernel/smpboot.c | 21 - 2 files changed, 25 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index

[PATCH v2 2/4] hotplug, x86: Add hotplug lock to missing places

2013-08-29 Thread Toshi Kani
CPU0. - cpu_probe_store() and cpu_release_store(), cpu hotplug test interface enabled by CONFIG_ARCH_CPU_PROBE_RELEASE. This patch changes the above interfaces to hold lock_device_hotplug(). Signed-off-by: Toshi Kani Acked-by: Greg Kroah-Hartman Acked-by: Rafael J. Wysocki --- arch/x86/ke

[PATCH v2 1/4] hotplug, x86: Fix online state in cpu0 debug interface

2013-08-29 Thread Toshi Kani
ine when CPU online/offline operation succeeded. Signed-off-by: Toshi Kani Acked-by: Rafael J. Wysocki --- arch/x86/kernel/topology.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/topology.c b/arch/x86/kernel/topology.c index 6e60b5f..5823bbd 100

Re: [PATCH 0/4] Unify CPU hotplug lock interface

2013-08-29 Thread Toshi Kani
On Fri, 2013-08-30 at 02:06 +0200, Rafael J. Wysocki wrote: > On Thursday, August 29, 2013 11:15:10 AM Toshi Kani wrote: > > On Sun, 2013-08-18 at 03:02 +0200, Rafael J. Wysocki wrote: > > > On Saturday, August 17, 2013 01:46:55 PM Toshi Kani wrote: > > > > lock

Re: [PATCH 0/4] Unify CPU hotplug lock interface

2013-08-29 Thread Toshi Kani
On Sun, 2013-08-18 at 03:02 +0200, Rafael J. Wysocki wrote: > On Saturday, August 17, 2013 01:46:55 PM Toshi Kani wrote: > > lock_device_hotplug() was recently introduced to serialize CPU & Memory > > online/offline and hotplug operations, along with sysfs online interface >

Re: [PATCH 4/4] hotplug, powerpc, x86: Remove cpu_hotplug_driver_lock()

2013-08-19 Thread Toshi Kani
On Mon, 2013-08-19 at 10:20 -0500, Nathan Fontenot wrote: > On 08/17/2013 02:46 PM, Toshi Kani wrote: > > cpu_hotplug_driver_lock() serializes CPU online/offline operations > > when ARCH_CPU_PROBE_RELEASE is set. This lock interface is no longer > > necessary with

Re: [PATCH 0/4] Unify CPU hotplug lock interface

2013-08-19 Thread Toshi Kani
On Sun, 2013-08-18 at 03:02 +0200, Rafael J. Wysocki wrote: > On Saturday, August 17, 2013 01:46:55 PM Toshi Kani wrote: > > lock_device_hotplug() was recently introduced to serialize CPU & Memory > > online/offline and hotplug operations, along with sysfs online interface >

Re: [PATCH 2/4] hotplug, x86: Add hotplug lock to missing places

2013-08-19 Thread Toshi Kani
On Sat, 2013-08-17 at 16:15 -0700, Greg KH wrote: > On Sat, Aug 17, 2013 at 01:46:57PM -0600, Toshi Kani wrote: > > lock_device_hotplug() serializes CPU & Memory online/offline and hotplug > > operations. However, this lock is not held in the debug interfaces below > >

[PATCH 3/4] hotplug, x86: Disable ARCH_CPU_PROBE_RELEASE on x86

2013-08-17 Thread Toshi Kani
x86 and revert the changes made by commit d7c53c9e. Signed-off-by: Toshi Kani --- arch/x86/Kconfig |4 arch/x86/kernel/smpboot.c | 21 - 2 files changed, 25 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index b32ebf9..c87e49a 100644 --- a/

[PATCH 0/4] Unify CPU hotplug lock interface

2013-08-17 Thread Toshi Kani
akes sure that lock_device_hotplug() covers all CPU online/ offline interfaces, and then removes cpu_hotplug_driver_lock(). The patchset is based on Linus's tree, 3.11.0-rc5. --- Toshi Kani (4): hotplug, x86: Fix online state in cpu0 debug interface hotplug, x86: Add hotplug lock to missi

[PATCH 2/4] hotplug, x86: Add hotplug lock to missing places

2013-08-17 Thread Toshi Kani
CPU0. - cpu_probe_store() and cpu_release_store(), cpu hotplug test interface enabled by CONFIG_ARCH_CPU_PROBE_RELEASE. This patch changes the above interfaces to hold lock_device_hotplug(). Signed-off-by: Toshi Kani --- arch/x86/kernel/topology.c |2 ++ drivers/base/cpu.c |

[PATCH 4/4] hotplug, powerpc, x86: Remove cpu_hotplug_driver_lock()

2013-08-17 Thread Toshi Kani
sult, ARCH_CPU_PROBE_RELEASE only enables / disables the cpu probe & release interface as intended. There is no functional change in this patch. Signed-off-by: Toshi Kani --- Performed build test only on powerpc. --- arch/powerpc/kernel/smp.c | 12 -- arch/powerpc/platforms

[PATCH 1/4] hotplug, x86: Fix online state in cpu0 debug interface

2013-08-17 Thread Toshi Kani
ine when CPU online/offline operation succeeded. Signed-off-by: Toshi Kani --- arch/x86/kernel/topology.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/topology.c b/arch/x86/kernel/topology.c index 6e60b5f..5823bbd 100644 --- a/arch/x86/kernel/topolog

Re: [patch] mm, hotplug: avoid compiling memory hotremove functions when disabled

2013-04-10 Thread Toshi Kani
led > and disabled. > > Signed-off-by: David Rientjes Acked-by: Toshi Kani Thanks, -Toshi > --- > arch/powerpc/platforms/pseries/hotplug-memory.c | 12 + > drivers/base/memory.c | 44 +++ > include/linux/memory.h

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-02-04 Thread Toshi Kani
On Tue, 2013-02-05 at 00:52 +0100, Rafael J. Wysocki wrote: > On Monday, February 04, 2013 03:13:29 PM Toshi Kani wrote: > > On Mon, 2013-02-04 at 21:07 +0100, Rafael J. Wysocki wrote: > > > On Monday, February 04, 2013 06:33:52 AM Greg KH wrote: > > > > On Mon, Fe

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-02-04 Thread Toshi Kani
On Tue, 2013-02-05 at 00:23 +0100, Rafael J. Wysocki wrote: > On Monday, February 04, 2013 01:59:27 PM Toshi Kani wrote: > > On Mon, 2013-02-04 at 20:45 +0100, Rafael J. Wysocki wrote: > > > On Monday, February 04, 2013 09:46:18 AM Toshi Kani wrote: > > > > On Mon, 2

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-02-04 Thread Toshi Kani
On Mon, 2013-02-04 at 21:07 +0100, Rafael J. Wysocki wrote: > On Monday, February 04, 2013 06:33:52 AM Greg KH wrote: > > On Mon, Feb 04, 2013 at 03:21:22PM +0100, Rafael J. Wysocki wrote: > > > On Monday, February 04, 2013 04:48:10 AM Greg KH wrote: > > > > On Sun, Feb 03, 2013 at 09:44:39PM +0100

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-02-04 Thread Toshi Kani
On Mon, 2013-02-04 at 20:45 +0100, Rafael J. Wysocki wrote: > On Monday, February 04, 2013 09:46:18 AM Toshi Kani wrote: > > On Mon, 2013-02-04 at 04:46 -0800, Greg KH wrote: > > > On Sun, Feb 03, 2013 at 05:28:09PM -0700, Toshi Kani wrote: > > > > On Sat, 2013-02-02

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-02-04 Thread Toshi Kani
On Mon, 2013-02-04 at 21:12 +0100, Rafael J. Wysocki wrote: > On Monday, February 04, 2013 12:46:24 PM Toshi Kani wrote: > > On Mon, 2013-02-04 at 20:48 +0100, Rafael J. Wysocki wrote: > > > On Monday, February 04, 2013 09:02:46 AM Toshi Kani wrote: > > > > On

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-02-04 Thread Toshi Kani
On Mon, 2013-02-04 at 20:48 +0100, Rafael J. Wysocki wrote: > On Monday, February 04, 2013 09:02:46 AM Toshi Kani wrote: > > On Mon, 2013-02-04 at 14:41 +0100, Rafael J. Wysocki wrote: > > > On Sunday, February 03, 2013 07:23:49 PM Greg KH wrote: > > > > On Sat, Fe

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-02-04 Thread Toshi Kani
On Mon, 2013-02-04 at 04:46 -0800, Greg KH wrote: > On Sun, Feb 03, 2013 at 05:28:09PM -0700, Toshi Kani wrote: > > On Sat, 2013-02-02 at 16:01 +0100, Greg KH wrote: > > > On Fri, Feb 01, 2013 at 01:40:10PM -0700, Toshi Kani wrote: > > > > On Fri, 2013-02-01

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-02-04 Thread Toshi Kani
On Mon, 2013-02-04 at 15:21 +0100, Rafael J. Wysocki wrote: > On Monday, February 04, 2013 04:48:10 AM Greg KH wrote: > > On Sun, Feb 03, 2013 at 09:44:39PM +0100, Rafael J. Wysocki wrote: > > > > Yes, but those are just remove events and we can only see how > > > > destructive they > > > > were a

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-02-04 Thread Toshi Kani
On Mon, 2013-02-04 at 14:41 +0100, Rafael J. Wysocki wrote: > On Sunday, February 03, 2013 07:23:49 PM Greg KH wrote: > > On Sat, Feb 02, 2013 at 09:15:37PM +0100, Rafael J. Wysocki wrote: > > > On Saturday, February 02, 2013 03:58:01 PM Greg KH wrote: : > > > Yes, but those are just remove event

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-02-03 Thread Toshi Kani
On Sat, 2013-02-02 at 16:01 +0100, Greg KH wrote: > On Fri, Feb 01, 2013 at 01:40:10PM -0700, Toshi Kani wrote: > > On Fri, 2013-02-01 at 07:30 +, Greg KH wrote: > > > On Thu, Jan 31, 2013 at 06:32:18PM -0700, Toshi Kani wrote: > > > > This is already done for

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-02-01 Thread Toshi Kani
On Fri, 2013-02-01 at 23:21 +0100, Rafael J. Wysocki wrote: > On Friday, February 01, 2013 01:40:10 PM Toshi Kani wrote: > > On Fri, 2013-02-01 at 07:30 +, Greg KH wrote: > > > On Thu, Jan 31, 2013 at 06:32:18PM -0700, Toshi Kani wrote: > > > > This is already

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-02-01 Thread Toshi Kani
On Fri, 2013-02-01 at 07:30 +, Greg KH wrote: > On Thu, Jan 31, 2013 at 06:32:18PM -0700, Toshi Kani wrote: > > This is already done for PCI host bridges and platform devices and I don't > > > see why we can't do that for the other types of devices too. > >

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-31 Thread Toshi Kani
On Thu, 2013-01-31 at 21:54 +0100, Rafael J. Wysocki wrote: > On Wednesday, January 30, 2013 07:57:45 PM Toshi Kani wrote: > > On Tue, 2013-01-29 at 23:58 -0500, Greg KH wrote: > > > On Thu, Jan 10, 2013 at 04:40:19PM -0700, Toshi Kani wrote: : > > > > +}; > &

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-31 Thread Toshi Kani
On Thu, 2013-01-31 at 05:24 +, Greg KH wrote: > On Wed, Jan 30, 2013 at 06:15:12PM -0700, Toshi Kani wrote: > > > Please make it a "real" pointer, and not a void *, those shouldn't be > > > used at all if possible. > > > > How about ch

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-30 Thread Toshi Kani
On Tue, 2013-01-29 at 23:58 -0500, Greg KH wrote: > On Thu, Jan 10, 2013 at 04:40:19PM -0700, Toshi Kani wrote: > > +/* > > + * Hot-plug device information > > + */ > > Again, stop it with the "generic" hotplug term here, and everywhere > else. You are

Re: [RFC PATCH v2 03/12] drivers/base: Add system device hotplug framework

2013-01-30 Thread Toshi Kani
On Tue, 2013-01-29 at 23:54 -0500, Greg KH wrote: > On Thu, Jan 10, 2013 at 04:40:21PM -0700, Toshi Kani wrote: > > Added sys_hotplug.c, which is the system device hotplug framework code. > > > > shp_register_handler() allows modules to register their hotplug handlers

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-30 Thread Toshi Kani
On Tue, 2013-01-29 at 23:53 -0500, Greg KH wrote: > On Thu, Jan 10, 2013 at 04:40:19PM -0700, Toshi Kani wrote: > > Added include/linux/sys_hotplug.h, which defines the system device > > hotplug framework interfaces used by the framework itself and > > handlers. > >

Re: [RFC PATCH v2 02/12] ACPI: Add sys_hotplug.h for system device hotplug framework

2013-01-30 Thread Toshi Kani
On Tue, 2013-01-29 at 23:51 -0500, Greg KH wrote: > On Mon, Jan 14, 2013 at 12:21:30PM -0700, Toshi Kani wrote: > > On Mon, 2013-01-14 at 20:07 +0100, Rafael J. Wysocki wrote: > > > On Monday, January 14, 2013 11:42:09 AM Toshi Kani wrote: > > > > On Mon, 2013-

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-30 Thread Toshi Kani
On Tue, 2013-01-29 at 23:48 -0500, Greg KH wrote: > On Mon, Jan 14, 2013 at 12:02:04PM -0700, Toshi Kani wrote: > > On Mon, 2013-01-14 at 19:48 +0100, Rafael J. Wysocki wrote: > > > On Monday, January 14, 2013 08:33:48 AM Toshi Kani wrote: > > > > On Fri, 2013-

Re: [PATCH Bug fix 0/5] Bug fix for physical memory hot-remove.

2013-01-25 Thread Toshi Kani
|2 +- > 4 files changed, 77 insertions(+), 125 deletions(-) This patchset fixed a blocker panic I was hitting in my memory hot-plug testing. Memory hotplug works fine with this patchset (for testing my hotplug framework patchset :). For the series: Tested-by: Toshi Kani Than

Re: [RFC PATCH v2 00/12] System device hot-plug framework

2013-01-17 Thread Toshi Kani
On Thu, 2013-01-17 at 01:50 +0100, Rafael J. Wysocki wrote: > On Thursday, January 10, 2013 04:40:18 PM Toshi Kani wrote: > > This patchset is a prototype of proposed system device hot-plug framework > > for design review. Unlike other hot-plug environments, such as USB and >

Re: [RFC PATCH v2 02/12] ACPI: Add sys_hotplug.h for system device hotplug framework

2013-01-14 Thread Toshi Kani
On Mon, 2013-01-14 at 11:21 -0800, Greg KH wrote: > On Mon, Jan 14, 2013 at 08:07:35PM +0100, Rafael J. Wysocki wrote: > > On Monday, January 14, 2013 11:42:09 AM Toshi Kani wrote: > > > On Mon, 2013-01-14 at 19:47 +0100, Rafael J. Wysocki wrote: > > > > On Monday

Re: [RFC PATCH v2 02/12] ACPI: Add sys_hotplug.h for system device hotplug framework

2013-01-14 Thread Toshi Kani
On Mon, 2013-01-14 at 20:07 +0100, Rafael J. Wysocki wrote: > On Monday, January 14, 2013 11:42:09 AM Toshi Kani wrote: > > On Mon, 2013-01-14 at 19:47 +0100, Rafael J. Wysocki wrote: > > > On Monday, January 14, 2013 08:53:53 AM Toshi Kani wrote: > > > > On Fri, 201

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-14 Thread Toshi Kani
On Mon, 2013-01-14 at 19:48 +0100, Rafael J. Wysocki wrote: > On Monday, January 14, 2013 08:33:48 AM Toshi Kani wrote: > > On Fri, 2013-01-11 at 22:23 +0100, Rafael J. Wysocki wrote: > > > On Thursday, January 10, 2013 04:40:19 PM Toshi Kani wrote: > > > > Added incl

Re: [RFC PATCH v2 02/12] ACPI: Add sys_hotplug.h for system device hotplug framework

2013-01-14 Thread Toshi Kani
On Mon, 2013-01-14 at 19:47 +0100, Rafael J. Wysocki wrote: > On Monday, January 14, 2013 08:53:53 AM Toshi Kani wrote: > > On Fri, 2013-01-11 at 22:25 +0100, Rafael J. Wysocki wrote: > > > On Thursday, January 10, 2013 04:40:20 PM Toshi Kani wrote: > > > > Added inc

Re: [RFC PATCH v2 02/12] ACPI: Add sys_hotplug.h for system device hotplug framework

2013-01-14 Thread Toshi Kani
On Fri, 2013-01-11 at 22:25 +0100, Rafael J. Wysocki wrote: > On Thursday, January 10, 2013 04:40:20 PM Toshi Kani wrote: > > Added include/acpi/sys_hotplug.h, which is ACPI-specific system > > device hotplug header and defines the order values of ACPI-specific > > handlers. &

Re: [RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-14 Thread Toshi Kani
On Fri, 2013-01-11 at 22:23 +0100, Rafael J. Wysocki wrote: > On Thursday, January 10, 2013 04:40:19 PM Toshi Kani wrote: > > Added include/linux/sys_hotplug.h, which defines the system device > > hotplug framework interfaces used by the framework itself and > > handlers. >

[RFC PATCH v2 05/12] mm: Add memory hotplug handlers

2013-01-10 Thread Toshi Kani
d memory range is non-movable when del_movable_only is set. Signed-off-by: Toshi Kani --- mm/memory_hotplug.c | 101 +++ 1 file changed, 101 insertions(+) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index d04ed87..ed3d829 100644

[RFC PATCH v2 00/12] System device hot-plug framework

2013-01-10 Thread Toshi Kani
uot;system device" hotplug by changing file name, prefix and documentation. - Removed the use of CONFIG_HOTPLUG. - Moved ACPI specific definitions to include/acpi/sys_hotplug.h. - Implemented shp_unregister_handler() and added locking. - Added module parameters, shp_trace and del_movable_o

[RFC PATCH v2 11/12] cpu: Update sysfs cpu/online for hotplug framework

2013-01-10 Thread Toshi Kani
Changed store_online() to request a cpu online or offline operation by calling shp_submit_req(). It sets a target cpu device information with shp_add_dev_info() for the request. Signed-off-by: Toshi Kani --- drivers/base/cpu.c | 40 1 file changed, 28

[RFC PATCH v2 04/12] cpu: Add cpu hotplug handlers

2013-01-10 Thread Toshi Kani
gned-off-by: Toshi Kani --- drivers/base/cpu.c | 107 1 file changed, 107 insertions(+) diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 6345294..05534ad 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -13,6 +13,8 @@

[RFC PATCH v2 03/12] drivers/base: Add system device hotplug framework

2013-01-10 Thread Toshi Kani
into hp_workqueue. shp_start_req() calls all registered handlers in ascending order for each phase. If any handler failed in validate or execute phase, shp_start_req() initiates its rollback procedure. Signed-off-by: Toshi Kani --- drivers/base/Makefile |1 drivers/base/sys_hotplug.c

[RFC PATCH v2 07/12] ACPI: Add ACPI resource hotplug handler

2013-01-10 Thread Toshi Kani
resource information for their validations. Signed-off-by: Toshi Kani --- drivers/acpi/Makefile |1 + drivers/acpi/bus.c |1 + drivers/acpi/internal.h |1 + drivers/acpi/shp_resource.c | 86 +++ include/acpi/acpi_bus.h

[RFC PATCH v2 06/12] ACPI: Add ACPI bus hotplug handlers

2013-01-10 Thread Toshi Kani
eject a target object for hot-delete. acpi_validate_ost() calls _OST to inform FW that a hot-plug operation completed with error in case of rollback. Signed-off-by: Toshi Kani --- drivers/acpi/bus.c | 133 1 file changed, 133 insertions

[RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-10 Thread Toshi Kani
off-by: Toshi Kani --- include/linux/sys_hotplug.h | 181 +++ 1 file changed, 181 insertions(+) create mode 100644 include/linux/sys_hotplug.h diff --git a/include/linux/sys_hotplug.h b/include/linux/sys_hotplug.h new file mode 100644 index 000..8

[RFC PATCH v2 08/12] ACPI: Update processor driver for hotplug framework

2013-01-10 Thread Toshi Kani
acpi_bus_hot_remove_device() directly. acpi_processor_handle_eject() is changed not to call cpu_down() since .add() / .remove() may not online / offline a device. Signed-off-by: Toshi Kani --- drivers/acpi/processor_driver.c | 150 ++- 1 file changed, 70

[RFC PATCH v2 02/12] ACPI: Add sys_hotplug.h for system device hotplug framework

2013-01-10 Thread Toshi Kani
Added include/acpi/sys_hotplug.h, which is ACPI-specific system device hotplug header and defines the order values of ACPI-specific handlers. Signed-off-by: Toshi Kani --- include/acpi/sys_hotplug.h | 48 1 file changed, 48 insertions(+) create

[RFC PATCH v2 10/12] ACPI: Update container driver for hotplug framework

2013-01-10 Thread Toshi Kani
Changed container_notify_cb() to request a hotplug operation by calling shp_submit_req(). It no longer initiates hot-add by calling acpi_bus_add(). Also, it no longer sets device->flags.eject_pending and generates KOBJ_OFFLINE event for hot-delete. Signed-off-by: Toshi Kani --- drivers/a

[RFC PATCH v2 12/12] ACPI: Update sysfs eject for hotplug framework

2013-01-10 Thread Toshi Kani
. Deleted eject_pending bit from acpi_device_flags since the ACPI container driver no longer sets it for hot-delete, and sysfs eject no longer checks it in acpi_bus_hot_remove_device(). Signed-off-by: Toshi Kani --- drivers/acpi/scan.c | 122 --- include

[RFC PATCH v2 09/12] ACPI: Update memory driver for hotplug framework

2013-01-10 Thread Toshi Kani
. Changed acpi_memory_device_add() to not call add_memory() to online a memory device. Similarly, changed acpi_memory_device_remove() to not call remove_memory() to offline a memory device. Added acpi_memory_resource() to set memory information to a hotplug request. Signed-off-by: Toshi Kani

Re: [RFC PATCH 00/11] Hot-plug and Online/Offline framework

2012-12-13 Thread Toshi Kani
On Thu, 2012-12-13 at 10:30 -0800, Greg KH wrote: > On Thu, Dec 13, 2012 at 09:03:54AM -0700, Toshi Kani wrote: > > On Thu, 2012-12-13 at 04:16 +, Greg KH wrote: > > > On Wed, Dec 12, 2012 at 08:37:44PM -0700, Toshi Kani wrote: > > > > On Wed, 2012-12-12