Message-ID: Date: Tue, 14 Feb 2006 10:07:12 +0200 From: Dmitry Adamushko Subject: Re: [Xenomai-core] Re: [shirq] first test results In-Reply-To: <43F0D374.7010801@domain.hid> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15381_24587923.1139904432106" References: <43ECD570.5000704@domain.hid> <43EDDF9E.4030309@domain.hid> <43F0D374.7010801@domain.hid> List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: xenomai@xenomai.org ------=_Part_15381_24587923.1139904432106 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 13/02/06, Jan Kiszka wrote: > > Dmitry Adamushko wrote: > > On 11/02/06, Jan Kiszka wrote: > >> Dmitry Adamushko wrote: > >>> And as an additional option, > >>> it could be interesting to print out to the log if not all "counter" > >> values > >>> then min,max,average (the same like for the latency :) per second or > per > >>> 1000 interrupts; so to see whether tweaking the MAX_EDGEIRQ_COUNTER > may > >> make > >>> the things better. > >> Yes, maybe it's too small. But this also depends on the absolute time > >> required for so many loops, something we should see in the traces then= . > >> I'm afraid that we will finally have to move the UART's read-from-fifo > >> to task context to reduce the time spent in IRQ context. > > > > Good. Keep me informed as before. > > > > We got it working. :) Great! > Anyway, this works now. But we also found a bug, as usual, a clean-up > bug: You released the IRQ line based on the wrong test, see attached > patch. Ah... it worked for my test cases since it depended on the order of xnintr_detach() calls. Thanks. With this fix applied and the IRQ flags as well as the > /proc/xenomai/irq output cleaned up, I would say you great work is ready > for merge! So I'll create the final patch and submit it to Philippe for merging. One more thing is making all this stuff optional; XENO_OPT_SHIRQ and XENO_OPT_SHIRQ_EDGE or something like this. Thanks, > Jan > > -- Best regards, Dmitry Adamushko ------=_Part_15381_24587923.1139904432106 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
On 13/02/06, Jan Kiszka <jan.kiszka@domain.hid= .de> wrote:
Dmitry Adamushko wrote:
> On 11/02/06, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>> Dmitry A= damushko wrote:
>>> And as an additional option,
>>>= ; it could be interesting to print out to the log if not all "counter&= quot;
>> values
>>> then min,max,average (the same like for= the latency :) per second or per
>>> 1000 interrupts; so to se= e whether tweaking the MAX_EDGEIRQ_COUNTER may
>> make
>>= > the things better.
>> Yes, maybe it's too small. But this also depends on the absolu= te time
>> required for so many loops, something we should see in = the traces then.
>> I'm afraid that we will finally have to move t= he UART's read-from-fifo
>> to task context to reduce the time spent in IRQ context.
&g= t;
> Good. Keep me informed as before.
>

We got it worki= ng. :)

Great!


Any= way, this works now. But we also found a bug, as usual, a clean-up
bug: = You released the IRQ line based on the wrong test, see attached
patch.

Ah... it worked for my test cases since it depended on the order of xnintr_= detach() calls. Thanks.


With this fi= x applied and the IRQ flags as well as the
/proc/xenomai/irq output clea= ned up, I would say you great work is ready
for merge!

So I'll create the final patch and submit it to Philippe for merging.
One more thing is making all this stuff optional; XENO_OPT_SHIRQ and XENO_O= PT_SHIRQ_EDGE or something like this.
 

T= hanks,
Jan



--
Best r= egards,
Dmitry Adamushko ------=_Part_15381_24587923.1139904432106--