Re: FPU context switching fix for SMP

2005-02-15 Thread William Lee Irwin III
On Tue, Feb 15, 2005 at 09:40:57AM -0800, David S. Miller wrote: > I've modified your patch to only do this in the SMP case. > Here is how the two mechanisms work: [...] > The SMP case works in that each thread, when scheduled(), has > it's PSR_EF flag cleared. > This fork() bug takes away that inv

Re: FPU context switching fix for SMP

2005-02-15 Thread David S. Miller
On Wed, 26 Jan 2005 09:24:42 +0100 "Krzysztof Helt" <[EMAIL PROTECTED]> wrote: > Here is a patch for FPU context switching in SMP. > > A copy_thread() function clears PF_USEDFPU flag for a new thread, > but it does not clear the PSR_EF bit. Thus, a first FPU exception > called from the child thre

Re: FPU context switching fix for SMP

2005-01-29 Thread Baurjan Ismagulov
On Wed, Jan 26, 2005 at 03:09:51PM -0800, David S. Miller wrote: > On Wed, 26 Jan 2005 23:06:41 +0100 Baurjan Ismagulov <[EMAIL PROTECTED]> > wrote: > > On Wed, Jan 26, 2005 at 12:26:10AM -0800, William Lee Irwin III wrote: > > > Are you sure a bugfix merits a copyright attribution? It's atypical

Re: FPU context switching fix for SMP

2005-01-26 Thread David S. Miller
On Wed, 26 Jan 2005 23:06:41 +0100 Baurjan Ismagulov <[EMAIL PROTECTED]> wrote: > On Wed, Jan 26, 2005 at 12:26:10AM -0800, William Lee Irwin III wrote: > > Are you sure a bugfix merits a copyright attribution? It's atypical > > elsewhere... > > IANAL, but as I understand section 2 of GPL, it req

Re: FPU context switching fix for SMP

2005-01-26 Thread Baurjan Ismagulov
On Wed, Jan 26, 2005 at 12:26:10AM -0800, William Lee Irwin III wrote: > Are you sure a bugfix merits a copyright attribution? It's atypical > elsewhere... IANAL, but as I understand section 2 of GPL, it requires that any changes are logged. With kind regards, Baurjan. - To unsubscribe from this

Re: FPU context switching fix for SMP

2005-01-26 Thread Krzysztof Helt
Dnia 26-01-2005 o godz. 9:26 William Lee Irwin III napisaƂ(a): > On Wed, Jan 26, 2005 at 09:24:42AM +0100, Krzysztof Helt wrote: > > Here is a patch for FPU context switching in SMP. > > A copy_thread() function clears PF_USEDFPU flag for a new thread, > > but it does not clear the PSR_EF bit. Thus

Re: FPU context switching fix for SMP

2005-01-26 Thread William Lee Irwin III
On Wed, Jan 26, 2005 at 09:24:42AM +0100, Krzysztof Helt wrote: > Here is a patch for FPU context switching in SMP. > A copy_thread() function clears PF_USEDFPU flag for a new thread, > but it does not clear the PSR_EF bit. Thus, a first FPU exception > called from the child thread is not handled p

FPU context switching fix for SMP

2005-01-26 Thread Krzysztof Helt
Here is a patch for FPU context switching in SMP. A copy_thread() function clears PF_USEDFPU flag for a new thread, but it does not clear the PSR_EF bit. Thus, a first FPU exception called from the child thread is not handled properly. I made the patch after PPC and MIPS architectures - both clear