* [Adeos-main] CONFIG_PREEMPT doesn't work with ADEOS
@ 2006-04-18 11:14 Bernhard Walle
2006-04-18 11:44 ` Philippe Gerum
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Bernhard Walle @ 2006-04-18 11:14 UTC (permalink / raw)
To: adeos-main
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
--
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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [Adeos-main] CONFIG_PREEMPT doesn't work with ADEOS
2006-04-18 11:14 [Adeos-main] CONFIG_PREEMPT doesn't work with ADEOS Bernhard Walle
@ 2006-04-18 11:44 ` Philippe Gerum
2006-04-18 11:50 ` Philippe Gerum
2006-04-18 13:01 ` Philippe Gerum
2006-04-18 14:00 ` Philippe Gerum
2 siblings, 1 reply; 8+ messages in thread
From: Philippe Gerum @ 2006-04-18 11:44 UTC (permalink / raw)
To: Bernhard Walle; +Cc: adeos-main
Bernhard Walle wrote:
> 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?
> 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
--
Philippe.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Adeos-main] CONFIG_PREEMPT doesn't work with ADEOS
2006-04-18 11:44 ` Philippe Gerum
@ 2006-04-18 11:50 ` Philippe Gerum
2006-04-18 12:05 ` Jan Kiszka
0 siblings, 1 reply; 8+ messages in thread
From: Philippe Gerum @ 2006-04-18 11:50 UTC (permalink / raw)
To: Philippe Gerum; +Cc: adeos-main
Philippe Gerum wrote:
> Bernhard Walle wrote:
>
>> 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?
>
Forget about this question. I'm going to give a look at your testcase
when time allows. Thanks.
>> 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
>
>
>
--
Philippe.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Adeos-main] CONFIG_PREEMPT doesn't work with ADEOS
2006-04-18 11:50 ` Philippe Gerum
@ 2006-04-18 12:05 ` Jan Kiszka
2006-04-18 12:16 ` Philippe Gerum
0 siblings, 1 reply; 8+ messages in thread
From: Jan Kiszka @ 2006-04-18 12:05 UTC (permalink / raw)
To: Philippe Gerum; +Cc: adeos-main
[-- Attachment #1: Type: text/plain, Size: 868 bytes --]
Philippe Gerum wrote:
> Philippe Gerum wrote:
>> Bernhard Walle wrote:
>>
>>> 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?
>>
>
> 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?
>>> 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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Adeos-main] CONFIG_PREEMPT doesn't work with ADEOS
2006-04-18 12:05 ` Jan Kiszka
@ 2006-04-18 12:16 ` Philippe Gerum
2006-04-18 12:54 ` Philippe Gerum
0 siblings, 1 reply; 8+ messages in thread
From: Philippe Gerum @ 2006-04-18 12:16 UTC (permalink / raw)
To: Jan Kiszka; +Cc: adeos-main
Jan Kiszka wrote:
> Philippe Gerum wrote:
>
>>Philippe Gerum wrote:
>>
>>>Bernhard Walle wrote:
>>>
>>>
>>>>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?
>>>
>>
>>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.
>
>>>>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
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Adeos-main mailing list
> Adeos-main@domain.hid
> https://mail.gna.org/listinfo/adeos-main
--
Philippe.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Adeos-main] CONFIG_PREEMPT doesn't work with ADEOS
2006-04-18 12:16 ` Philippe Gerum
@ 2006-04-18 12:54 ` Philippe Gerum
0 siblings, 0 replies; 8+ messages in thread
From: Philippe Gerum @ 2006-04-18 12:54 UTC (permalink / raw)
To: Philippe Gerum; +Cc: adeos-main
Philippe Gerum wrote:
> Jan Kiszka wrote:
>
>> Philippe Gerum wrote:
>>
>>> Philippe Gerum wrote:
>>>
>>>> Bernhard Walle wrote:
>>>>
>>>>
>>>>> 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?
>>>>
>>>
>>> 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.
>
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.
>>
>>>>> 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
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Adeos-main mailing list
>> Adeos-main@domain.hid
>> https://mail.gna.org/listinfo/adeos-main
>
>
>
--
Philippe.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Adeos-main] CONFIG_PREEMPT doesn't work with ADEOS
2006-04-18 11:14 [Adeos-main] CONFIG_PREEMPT doesn't work with ADEOS Bernhard Walle
2006-04-18 11:44 ` Philippe Gerum
@ 2006-04-18 13:01 ` Philippe Gerum
2006-04-18 14:00 ` Philippe Gerum
2 siblings, 0 replies; 8+ messages in thread
From: Philippe Gerum @ 2006-04-18 13:01 UTC (permalink / raw)
To: Bernhard Walle; +Cc: adeos-main
Bernhard Walle wrote:
> 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?
>
>
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.
--
Philippe.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Adeos-main] CONFIG_PREEMPT doesn't work with ADEOS
2006-04-18 11:14 [Adeos-main] CONFIG_PREEMPT doesn't work with ADEOS Bernhard Walle
2006-04-18 11:44 ` Philippe Gerum
2006-04-18 13:01 ` Philippe Gerum
@ 2006-04-18 14:00 ` Philippe Gerum
2 siblings, 0 replies; 8+ messages in thread
From: Philippe Gerum @ 2006-04-18 14:00 UTC (permalink / raw)
To: Bernhard Walle; +Cc: adeos-main
Bernhard Walle wrote:
> 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?
>
This should improve things quite a bit:
--- arch/i386/kernel/entry.S~ 2006-03-21 14:34:51.000000000 +0100
+++ arch/i386/kernel/entry.S 2006-04-18 15:38:50.000000000 +0200
@@ -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:
--
Philippe.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-04-18 14:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-18 11:14 [Adeos-main] CONFIG_PREEMPT doesn't work with ADEOS Bernhard Walle
2006-04-18 11:44 ` Philippe Gerum
2006-04-18 11:50 ` Philippe Gerum
2006-04-18 12:05 ` Jan Kiszka
2006-04-18 12:16 ` Philippe Gerum
2006-04-18 12:54 ` Philippe Gerum
2006-04-18 13:01 ` Philippe Gerum
2006-04-18 14:00 ` Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.