Re: [PATCH] Hot swap CPU support for 2.4.1

2001-02-11 Thread Rusty Russell
In message <[EMAIL PROTECTED]> you write: > This is not quite right: > > @@ -1643,7 +1643,7 @@ > printk(KERN_NOTICE "apm: disabled on user > request.\n"); > return -ENODEV; > } > - if ((smp_num_cpus > 1) && !power_off) { > + if

Re: [PATCH] Hot swap CPU support for 2.4.1

2001-02-11 Thread Pavel Machek
Hi! > I did the infrastructure, Anton did the bugfinding and PPC support, > aka. the hard stuff. Other architectures need to implement > __cpu_disable, __cpu_die and __cpu_up for them to work. Volunteers > appreciated. > > This patch allows you to down & up CPUs as follows: > #

Re: [PATCH] Hot swap CPU support for 2.4.1

2001-02-11 Thread Pavel Machek
Hi! I did the infrastructure, Anton did the bugfinding and PPC support, aka. the hard stuff. Other architectures need to implement __cpu_disable, __cpu_die and __cpu_up for them to work. Volunteers appreciated. This patch allows you to down up CPUs as follows: # echo 0

Re: [PATCH] Hot swap CPU support for 2.4.1

2001-02-11 Thread Rusty Russell
In message [EMAIL PROTECTED] you write: This is not quite right: @@ -1643,7 +1643,7 @@ printk(KERN_NOTICE "apm: disabled on user request.\n"); return -ENODEV; } - if ((smp_num_cpus 1) !power_off) { + if ((num_online_cpus() 1)

Re: [PATCH] Hot swap CPU support for 2.4.1@

2001-02-06 Thread Anton Blanchard
> Would any special hardware besides a multi-cpu system be necessarey to > test this out? You should be able to run it on any SMP machine assuming you write the arch specific code (PPC could be used as an example). Of course it isn't very interesting if the hardware doesn't support hot swap :)

Re: [PATCH] Hot swap CPU support for 2.4.1@

2001-02-06 Thread Anton Blanchard
Would any special hardware besides a multi-cpu system be necessarey to test this out? You should be able to run it on any SMP machine assuming you write the arch specific code (PPC could be used as an example). Of course it isn't very interesting if the hardware doesn't support hot swap :)

Re: [PATCH] Hot swap CPU support for 2.4.1@

2001-02-05 Thread lists
Would any special hardware besides a multi-cpu system be necessarey to test this out? Matthew Fredrickson On Mon, Feb 05, 2001 at 03:00:40PM +1100, Rusty Russell wrote: > Hi all, > > I did the infrastructure, Anton did the bugfinding and PPC support, > aka. the hard stuff. Other

Re: [PATCH] Hot swap CPU support for 2.4.1@

2001-02-05 Thread lists
Would any special hardware besides a multi-cpu system be necessarey to test this out? Matthew Fredrickson On Mon, Feb 05, 2001 at 03:00:40PM +1100, Rusty Russell wrote: Hi all, I did the infrastructure, Anton did the bugfinding and PPC support, aka. the hard stuff. Other architectures

Re: [PATCH] Hot swap CPU support for 2.4.1

2001-02-04 Thread Rusty Russell
In message <[EMAIL PROTECTED]> you write : > Hello, >Which archs still need to implement it? I briefly looked over the patch an d noticed that it had i386, ppc, mips64, and s390 already there. PPC is there (kinda hackish, but proof of concept). For the rest, I don't consider:

Re: [PATCH] Hot swap CPU support for 2.4.1

2001-02-04 Thread Anton Blanchard
> Rusty, what would be needed to "hot-add" CPUs ? The PPC version at the moment simply locks a cpu in the idle loop with __cli(); while(1); for cpu down and jumps out of it for cpu up. Good for testing but not very useful. After talking to paulus we will use the RTAS cpu stop and cpu start.

Re: [PATCH] Hot swap CPU support for 2.4.1

2001-02-04 Thread Lars Marowsky-Bree
On 2001-02-05T15:00:40, Rusty Russell <[EMAIL PROTECTED]> said: > I did the infrastructure, Anton did the bugfinding and PPC support, > aka. the hard stuff. Other architectures need to implement > __cpu_disable, __cpu_die and __cpu_up for them to work. Volunteers > appreciated. Rusty, what

Re: [PATCH] Hot swap CPU support for 2.4.1

2001-02-04 Thread Frank Davis
Hello, Which archs still need to implement it? I briefly looked over the patch and noticed that it had i386, ppc, mips64, and s390 already there. Regards, Frank >Hi all, > >I did the infrastructure, Anton did the bugfinding and PPC >support, >aka. the hard stuff. Other architectures need to

[PATCH] Hot swap CPU support for 2.4.1

2001-02-04 Thread Rusty Russell
Hi all, I did the infrastructure, Anton did the bugfinding and PPC support, aka. the hard stuff. Other architectures need to implement __cpu_disable, __cpu_die and __cpu_up for them to work. Volunteers appreciated. This patch allows you to down & up CPUs as follows: # echo 0 >

[PATCH] Hot swap CPU support for 2.4.1

2001-02-04 Thread Rusty Russell
Hi all, I did the infrastructure, Anton did the bugfinding and PPC support, aka. the hard stuff. Other architectures need to implement __cpu_disable, __cpu_die and __cpu_up for them to work. Volunteers appreciated. This patch allows you to down up CPUs as follows: # echo 0

Re: [PATCH] Hot swap CPU support for 2.4.1

2001-02-04 Thread Frank Davis
Hello, Which archs still need to implement it? I briefly looked over the patch and noticed that it had i386, ppc, mips64, and s390 already there. Regards, Frank Hi all, I did the infrastructure, Anton did the bugfinding and PPC support, aka. the hard stuff. Other architectures need to

Re: [PATCH] Hot swap CPU support for 2.4.1

2001-02-04 Thread Anton Blanchard
Rusty, what would be needed to "hot-add" CPUs ? The PPC version at the moment simply locks a cpu in the idle loop with __cli(); while(1); for cpu down and jumps out of it for cpu up. Good for testing but not very useful. After talking to paulus we will use the RTAS cpu stop and cpu start. In

Re: [PATCH] Hot swap CPU support for 2.4.1

2001-02-04 Thread Rusty Russell
In message [EMAIL PROTECTED] you write : Hello, Which archs still need to implement it? I briefly looked over the patch an d noticed that it had i386, ppc, mips64, and s390 already there. PPC is there (kinda hackish, but proof of concept). For the rest, I don't consider: return