All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai-help] IRQ-Latency when in idle State on ARM
@ 2009-06-05 17:36 Karl Tyss
  0 siblings, 0 replies; 17+ messages in thread
From: Karl Tyss @ 2009-06-05 17:36 UTC (permalink / raw)
  Cc: xenomai


----------  Weitergeleitete Nachricht  ----------

Betreff: Re: [Xenomai-help] IRQ-Latency when in idle State on ARM
Datum: Freitag, 5. Juni 2009
Von: Karl Tyss <karl.tyss@domain.hid>
An: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>

Am Freitag, 5. Juni 2009 17:01:13 schrieb Karl Tyss:
> Karl Tyss wrote:
> > Disabling the I- or D-cache is available as an option by using
> > menuconfig under system-type.
>
> Ok. I misread the configuration file. Also note that the idle function
> for arm926 core only disables the I-cache if it was not already
> disabled. So, if you are running with I-cache disabled, fiddling with
> this code should not change anything.

Excuse me if I didn't say it clearly. English is not my native language. Your 
hint helped me to avoid longer latencies while in idle state with both caches 
on. So my configuration is now I-cache on and D-cache on. Then I commented out 
the two lines in the idle task which torn the cache off and on again. Now I see 
no differences in the lantecies when an idle task is being interrupted. The 
"demux_irq" function (not the exact name) in the gpio.c from the at91 tree is 
significantly slower if I-cache was disabled and enabled before.

> 13us or 15us is still ridiculous on ARM. 3us even more. Average values
> are irrelevant, what matters is the worst case. If you only get a 3us
> difference when loading the system, then you are not loading the system
> enough. You should see latencies above 100us when properly loading the
> system. As I already told you, the way to proper load the system is to
> run LTP.

Thanx. I'll put LTP as my next testing task :)

> Disabling the cache is not recommended.

Right before the cpu is put to sleep by cp15 the I-cache is being disabled in 
the idle task. I took this part out. So I leave the I-cache enabled when the 
cpu goes into the idle mode. I suppose that there is a reason for disabling 
the cache. I will ask my wise ARM book on monday. If this issue doesn't belong 
here (xenomai list) just say a word :)

Thanx,
Karl Tyss

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


^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <4A28F029020000F80002DB14@domain.hid>]

end of thread, other threads:[~2009-06-08  7:31 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4A294F59020000F80002DC0E@msw.eppendorf.de>
     [not found] ` <200906051932.16827.karl.tyss@domain.hid>
2009-06-05 18:09   ` [Xenomai-help] IRQ-Latency when in idle State on ARM Gilles Chanteperdrix
2009-06-05 19:08     ` Gilles Chanteperdrix
2009-06-06 17:38       ` Karl Tyss
2009-06-06 18:00         ` Gilles Chanteperdrix
2009-06-05 17:36 Karl Tyss
     [not found] <4A28F029020000F80002DB14@domain.hid>
     [not found] ` <4A28FAD4020000F80002DB27@domain.hid>
2009-06-05  9:00   ` Karl Tyss
2009-06-05  9:31     ` Gilles Chanteperdrix
2009-06-05  9:56       ` Karl Tyss
2009-06-05 11:10         ` Gilles Chanteperdrix
2009-06-05 13:42         ` Gilles Chanteperdrix
2009-06-05 14:09           ` Karl Tyss
2009-06-05 14:16             ` Gilles Chanteperdrix
2009-06-05 14:17             ` Gilles Chanteperdrix
2009-06-05 14:49               ` Karl Tyss
2009-06-05 15:01                 ` Gilles Chanteperdrix
2009-06-05 12:13     ` Bosko Radivojevic
2009-06-08  7:31       ` Karl Tyss

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.