From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Ralf Rösch" <xenomai@cantastic.org>, xenomai@xenomai.org
Subject: Re: [Xenomai] Testing on Freescale i.MX6
Date: Wed, 07 May 2014 19:54:09 +0200 [thread overview]
Message-ID: <536A7341.9050007@xenomai.org> (raw)
In-Reply-To: <536A6B76.5070503@cantastic.org>
On 05/07/2014 07:20 PM, Ralf Rösch wrote:
>
> Am 05.05.2014 13:44, schrieb Gilles Chanteperdrix:
>> Unfortunately, I have not experienced the high latencies myself,
>> probably because I tested the system without display. Anyway, from
>> what I understood, if you want good latencies, you have to disable the
>> L2 cache write-allocate policy.
>>
> which is default in >= 3.10?
It is modified in the git for 3.10, but the patch has not been generated
I believe.
> I found a hack which solves my problem:
>
> diff --git a/arch/arm/kernel/ipipe_tsc.c b/arch/arm/kernel/ipipe_tsc.c
> index 4eb5050..f759a20 100644
> --- a/arch/arm/kernel/ipipe_tsc.c
> +++ b/arch/arm/kernel/ipipe_tsc.c
> @@ -132,6 +132,11 @@ void __init __ipipe_tsc_register(struct
> __ipipe_tscinfo *info)
> (unsigned long)(tsc_area + 0x80));
> hard_local_irq_restore(flags);
>
> +#ifdef CONFIG_CPU_FREQ_GOV_PERFORMANCE
> + if (registered)
> + tsc_info.freq = 498000000;
> +#endif
> +
> printk(KERN_INFO "I-pipe, %u.%03u MHz clocksource\n",
> tsc_info.freq / 1000000, (tsc_info.freq % 1000000) / 1000);
> if (!registered)
To do the same thing cleanly, you should call ipipe_tsc_register again
when the frequency changes, unfortunately, it does not fix the timer
frequency, so, you will experience a lot of useless timer interrupts.
IOW, the problem is not really solved. The best workaround I found for
the freescale kernel 3.0 is to start the processor directly with the
target frequency (people want fast boots usually, so booting with the
highest frequency makes more sense anyway), this also avoids having to
enable cpufreq. Which is why I told you to look at this patch for the
solution to your problem.
> In Kernel 3.10 (Freescale) I did not observe this type of error (i have
> tested for about 2 days).
> Do you know how much the max. latency could be involved when this sort
> of error is triggered?
This error probably has nothing to do with latency (interrupt latency or
scheduling latency, as returned by cyclictest or the latency test as
what we mean on this list when we say latency without precising latency
of what). You may want to look at the freescale kernel to see if it does
not have any patch regarding mmc.
>
> [3]
> BTW i have attached an other patch which might be helpful.
Thanks, will merge.
--
Gilles.
next prev parent reply other threads:[~2014-05-07 17:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-04 10:40 [Xenomai] Testing on Freescale i.MX6 Ralf Roesch
2014-05-04 15:57 ` Gilles Chanteperdrix
2014-05-05 7:45 ` Ralf Roesch
2014-05-05 10:51 ` Gilles Chanteperdrix
2014-05-05 11:28 ` Ralf Roesch
2014-05-05 11:44 ` Gilles Chanteperdrix
2014-05-07 17:20 ` Ralf Rösch
2014-05-07 17:54 ` Gilles Chanteperdrix [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-05-07 19:09 Paul S.
2014-05-07 20:45 ` Ralf Roesch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=536A7341.9050007@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@cantastic.org \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.