Skip to contentSkip to conversation

CONFIG_PREEMPT doesn't work with ADEOS

Adeos-main Bernhard Walle 3 participants 8 messages Apr 18, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

I have a kernel 2.6.15.6 with
http://download.gna.org/adeos/patches/v2.6/i386/adeos-ipipe-2.6.15-i386-1.2-03.patch
patch. In this configuration, CONFIG_PREEMPT doesn't work any more, i.e. the kernel is not preempted.

With the kernel without ADEOS patch, it works fine. A test program is at http://www.bwalle.de/temp/kern-preempt.tar.bz2.

Do you know what's wrong?

Regards,
Bernhard

Signature · 3 lines
Bei der Eroberung des Weltraums sind zwei Probleme zu lösen: die
Schwerkraft und der Papierkrieg. Mit der Schwerkraft wären wir fertig
geworden. -- Wernher von Braun
#1 lore raw
Quoted 7 lines · Bernhard Walle

Hello,

I have a kernel 2.6.15.6 with
http://download.gna.org/adeos/patches/v2.6/i386/adeos-ipipe-2.6.15-i386-1.2-03.patch
patch. In this configuration, CONFIG_PREEMPT doesn't work any more, i.e. the kernel is not preempted.

How do you check this?

Quoted 8 lines

With the kernel without ADEOS patch, it works fine. A test program is at http://www.bwalle.de/temp/kern-preempt.tar.bz2.

Do you know what's wrong?

Regards,
Bernhard

Signature · 1 line
Philippe.
#2 lore raw
Quoted 4 lines · Philippe Gerum
Quoted 2 lines · Bernhard Walle

Hello,

Quoted 9 lines
Quoted 6 lines

I have a kernel 2.6.15.6 with
http://download.gna.org/adeos/patches/v2.6/i386/adeos-ipipe-2.6.15-i386-1.2-03.patch

patch. In this configuration, CONFIG_PREEMPT doesn't work any more, i.e. the kernel is not preempted.

How do you check this?

Forget about this question. I'm going to give a look at your testcase when time allows. Thanks.

Quoted 11 lines
Quoted 8 lines

With the kernel without ADEOS patch, it works fine. A test program is at http://www.bwalle.de/temp/kern-preempt.tar.bz2.

Do you know what's wrong?

Regards,
Bernhard

Signature · 1 line
Philippe.
#3 lore raw
Quoted 12 lines · Philippe Gerum
Quoted 11 lines · Philippe Gerum
Quoted 8 lines · Bernhard Walle

Hello,

I have a kernel 2.6.15.6 with
http://download.gna.org/adeos/patches/v2.6/i386/adeos-ipipe-2.6.15-i386-1.2-03.patch

patch. In this configuration, CONFIG_PREEMPT doesn't work any more, i.e. the kernel is not preempted.

Quoted 6 lines
Quoted 2 lines

How do you check this?

Forget about this question. I'm going to give a look at your testcase when time allows. Thanks.

I did, and I can confirm this (2.6.16, original ipipe-1.2-03 applied, ipipe on vs. off). Maybe something related to the TASK_ATOMICSWITCH changes?

Quoted 11 lines
Quoted 11 lines
Quoted 8 lines

With the kernel without ADEOS patch, it works fine. A test program is at http://www.bwalle.de/temp/kern-preempt.tar.bz2.

Do you know what's wrong?

Regards,
Bernhard

Jan

#4 lore raw
Quoted 19 lines · Jan Kiszka
Quoted 17 lines · Philippe Gerum
Quoted 14 lines · Philippe Gerum
Quoted 8 lines · Bernhard Walle

Hello,

I have a kernel 2.6.15.6 with
http://download.gna.org/adeos/patches/v2.6/i386/adeos-ipipe-2.6.15-i386-1.2-03.patch

patch. In this configuration, CONFIG_PREEMPT doesn't work any more, i.e. the kernel is not preempted.

How do you check this?

Quoted 8 lines
Quoted 3 lines

Forget about this question. I'm going to give a look at your testcase when time allows. Thanks.

I did, and I can confirm this (2.6.16, original ipipe-1.2-03 applied, ipipe on vs. off). Maybe something related to the TASK_ATOMICSWITCH changes?

Don't know yet, I'm rebuilding an instrumented kernel, but considering that we don't even have local echo of keystrokes, I'd rather think of IRQs lagging in the pipeline log. More news later.

Quoted 23 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

With the kernel without ADEOS patch, it works fine. A test program is at http://www.bwalle.de/temp/kern-preempt.tar.bz2.

Quoted 8 lines
Quoted 8 lines
Quoted 5 lines

Do you know what's wrong?

Regards,
Bernhard

Jan

------------------------------------------------------------------------

_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main

Signature · 1 line
Philippe.
#5 lore raw
Quoted 27 lines · Philippe Gerum
Quoted 25 lines · Jan Kiszka
Quoted 21 lines · Philippe Gerum
Quoted 9 lines · Philippe Gerum
Quoted 6 lines · Bernhard Walle

Hello,

I have a kernel 2.6.15.6 with
http://download.gna.org/adeos/patches/v2.6/i386/adeos-ipipe-2.6.15-i386-1.2-03.patch

Quoted 6 lines
Quoted 3 lines

patch. In this configuration, CONFIG_PREEMPT doesn't work any more, i.e. the kernel is not preempted.

How do you check this?

Forget about this question. I'm going to give a look at your testcase when time allows. Thanks.

Quoted 6 lines
Quoted 3 lines

I did, and I can confirm this (2.6.16, original ipipe-1.2-03 applied, ipipe on vs. off). Maybe something related to the TASK_ATOMICSWITCH changes?

Don't know yet, I'm rebuilding an instrumented kernel, but considering that we don't even have local echo of keystrokes, I'd rather think of IRQs lagging in the pipeline log. More news later.

Er, the softlockup detector triggers while the module holds the CPU, so the timer top-half must be running properly. Something is possibly fishy in the IRQ return path for x86 from resume_kernel and beyond.

Quoted 27 lines
Quoted 24 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

With the kernel without ADEOS patch, it works fine. A test program is at http://www.bwalle.de/temp/kern-preempt.tar.bz2.

Do you know what's wrong?

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

Regards,
Bernhard

Jan

------------------------------------------------------------------------

_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main

Signature · 1 line
Philippe.
#6 lore raw
In reply to Bernhard Walle
Quoted 7 lines · Bernhard Walle

Hello,

I have a kernel 2.6.15.6 with
http://download.gna.org/adeos/patches/v2.6/i386/adeos-ipipe-2.6.15-i386-1.2-03.patch
patch. In this configuration, CONFIG_PREEMPT doesn't work any more, i.e. the kernel is not preempted.

Quoted 6 lines

With the kernel without ADEOS patch, it works fine. A test program is at http://www.bwalle.de/temp/kern-preempt.tar.bz2.

Do you know what's wrong?

Ok, bug confirmed and spotted. It's an x86 specific issue that impacts Adeos back in the pre-Ipipe times. An updated patch will follow once I made sure that the fix does not cause any regression, especially on SMP systems. Thanks for reporting this way, the quality of your testcase made a real difference to locate the issue rapidly.

Signature · 1 line
Philippe.
#7 lore raw
In reply to Bernhard Walle
Quoted 7 lines · Bernhard Walle

Hello,

I have a kernel 2.6.15.6 with
http://download.gna.org/adeos/patches/v2.6/i386/adeos-ipipe-2.6.15-i386-1.2-03.patch
patch. In this configuration, CONFIG_PREEMPT doesn't work any more, i.e. the kernel is not preempted.

Quoted 5 lines

With the kernel without ADEOS patch, it works fine. A test program is at http://www.bwalle.de/temp/kern-preempt.tar.bz2.

Do you know what's wrong?

This should improve things quite a bit:

i386/kernel/entry.S renamed from i386/kernel/entry.S~ +1 -1
@@ -231,7 +231,7 @@
 
 #ifdef CONFIG_PREEMPT
 ENTRY(resume_kernel)
-	CLI
+	cli
 	cmpl $0,TI_preempt_count(%ebp)	# non-zero preempt_count ?
 	jnz restore_nocheck
 need_resched:
Signature · 1 line
Philippe.