Skip to contentSkip to conversation

Fix a previously reverted "fix"

PATCH In review Chirag Jog 2 participants 2 messages Jul 10, 2008 – Jul 11, 2008 PowerPC

lore
Share & tools
lore

Chirag Jog

author
#0 lore raw

PATCH 1/1 Fix a previously reverted "fix"

This patch reintroduces a "fix" that got reverted. Here was the original patch http://lkml.org/lkml/2007/5/22/133

Here is the new patch
This patch also fixes OOPS reported here: http://lkml.org/lkml/2008/6/19/146

Quoted 1 line

From [email protected]

arch/powerpc/kernel/entry_64.S +2 -7
@@ -579,14 +579,9 @@ do_work:
 	cmpdi	r0,0
 	crandc	eq,cr1*4+eq,eq
 	bne	restore
-	/* here we are preempting the current task */
 1:
-	li	r0,1
-	stb	r0,PACASOFTIRQEN(r13)
-	stb	r0,PACAHARDIRQEN(r13)
-	ori	r10,r10,MSR_EE
-	mtmsrd	r10,1		/* reenable interrupts */
-	bl	.preempt_schedule
+	/* preempt_schedule_irq() expects interrupts disabled. */
+	bl	.preempt_schedule_irq
 	mfmsr	r10
 	clrrdi	r9,r1,THREAD_SHIFT
 	rldicl	r10,r10,48,1	/* disable interrupts again */
Tested-by on v1 1/1
#1 lore raw

Hi Chirag,

Quoted 9 lines · On Thu, 10 Jul 2008 22:34:56 +0530 Chirag Jog <[email protected]> wrote:

This patch reintroduces a "fix" that got reverted. Here was the original patch http://lkml.org/lkml/2007/5/22/133

Here is the new patch
This patch also fixes OOPS reported here: http://lkml.org/lkml/2008/6/19/146

From [email protected]

This indeed fixes the oops we get with matrix_mult, good job.

You can add my

Sebastien.

Quoted 23 lines
arch/powerpc/kernel/entry_64.S +2 -7
@@ -579,14 +579,9 @@ do_work:
 	cmpdi	r0,0
 	crandc	eq,cr1*4+eq,eq
 	bne	restore
-	/* here we are preempting the current task */
 1:
-	li	r0,1
-	stb	r0,PACASOFTIRQEN(r13)
-	stb	r0,PACAHARDIRQEN(r13)
-	ori	r10,r10,MSR_EE
-	mtmsrd	r10,1		/* reenable interrupts */
-	bl	.preempt_schedule
+	/* preempt_schedule_irq() expects interrupts disabled. */
+	bl	.preempt_schedule_irq
 	mfmsr	r10
 	clrrdi	r9,r1,THREAD_SHIFT
 	rldicl	r10,r10,48,1	/* disable interrupts again */