All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Howard <pjh@northern-ridge.com.au>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] OMAP L138
Date: Wed, 07 May 2014 08:44:50 +1000	[thread overview]
Message-ID: <1399416290.6054.2.camel@localhost.localdomain> (raw)
In-Reply-To: <5368C905.9030602@xenomai.org>

On Tue, 2014-05-06 at 13:35 +0200, Gilles Chanteperdrix wrote:
> On 05/06/2014 01:00 AM, Peter Howard wrote:
> > On Sun, 2014-05-04 at 21:25 +0200, Gilles Chanteperdrix wrote:
> >> On 04/29/2014 03:46 AM, Peter Howard wrote:
> >>> On Thu, 2014-04-24 at 23:30 +0200, Gilles Chanteperdrix wrote:
> >>>> On 04/23/2014 03:45 AM, Peter Howard wrote:
> >>>>> On Wed, 2014-04-23 at 01:02 +0200, Gilles Chanteperdrix wrote:
> >>>>>> On 04/15/2014 11:59 PM, Peter Howard wrote:
> >>>>>>> On Tue, 2014-04-15 at 13:37 +0200, Gilles Chanteperdrix wrote:
> >>>>>>>> On 04/15/2014 08:03 AM, Peter Howard wrote:
> >>>>>>>>> On Fri, 2014-04-11 at 08:52 +1000, Peter Howard wrote:
> >>>>>>>>>> On Fri, 2014-04-11 at 00:48 +0200, Gilles Chanteperdrix wrote:
> >>>>>>>>>>> On 04/11/2014 12:34 AM, Peter Howard wrote:
> >>>>>>>>>>>> On Fri, 2014-04-11 at 00:23 +0200, Gilles Chanteperdrix wrote:
> >>>>>>>>>>>> (Stripping back conversation on this one - apologies if that's bad
> >>>>>>>>>>>> etiquette for this list)
> >>>>>>>>>>>>  
> >>>>>>>>>>>>> Attachment is better. Also please post the changes you made for omapL138
> >>>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig
> >>>>>>>>>>>> index a075b3e..3d8bc59 100644
> >>>>>>>>>>>> --- a/arch/arm/mach-davinci/Kconfig
> >>>>>>>>>>>> +++ b/arch/arm/mach-davinci/Kconfig
> >>>>>>>>>>>> @@ -41,6 +41,8 @@ config ARCH_DAVINCI_DA850
> >>>>>>>>>>>>  	select ARCH_DAVINCI_DA8XX
> >>>>>>>>>>>>  	select ARCH_HAS_CPUFREQ
> >>>>>>>>>>>>  	select CP_INTC
> >>>>>>>>>>>> +    select IPIPE_ARM_KUSER_TSC if IPIPE
> >>>>>>>>>>>> +    select ARM_FCSE if IPIPE
> >>>>>>>>>>>
> >>>>>>>>>>> You may want to leave the choice of enabling or disabling FCSE to the user.
> >>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> Understood; at the moment the variance on max latency is really bad if
> >>>>>>>>>> you don't enable FCSE.  When I sort out the crashing issues I'll re-test
> >>>>>>>>>> with it off.
> >>>>>>>>>
> >>>>>>>>> Well, FCSE turned out to be my problem.
> >>>>>>>>>
> >>>>>>>>> More specifically,  FCSE and ARM_FCSE_BEST_EFFORT.  Either a) disabling
> >>>>>>>>> ARM_FCSE altogether, or b) selecting ARM_FCSE with ARM_FCSE_GUARENTEED
> >>>>>>>>> gets rid of the crashes/panics with ipipe latency tracing enabled.
> >>>>>>>>>
> >>>>>>>>> So now things seem reasonably stable, I'll go through the full set of
> >>>>>>>>> tests.  Though I still can't do 'xeno-test -l "dohell -l /opt/ltp"' as
> >>>>>>>>> ltp takes out the system without any ipipe/xenomai bits.
> >>>>>>>>>
> >>>>>>>> Ok, FCSE best effort is currently being validated on 3.14, so it may
> >>>>>>>> well be broken. After all, the raw/* branches are work in progress.
> >>>>>>>>
> >>>>>>>
> >>>>>>> Note: selecting ARM_FCSE_BEST_EFFORT produces the same result on the
> >>>>>>> master branch too . . .
> >>>>>>>
> >>>>>> Hi Peter,
> >>>>>>
> >>>>>> I am unable to reproduce these issues with 3.14, FCSE seems to be doing
> >>>>>> just fine, I can boot and run the LTP testsuite and get almost the same
> >>>>>> results as a non patched kernel. I have tried with and without
> >>>>>> preemptible cache flushes, and with and without Xenomai. My rootfs is
> >>>>>> based on busybox and minimal, maybe that is the reason why it works
> >>>>>> fine, could you put a tarball with your rootfs somewhere?
> >>>>>
> >>>>> A bit of testing shows (at least) one case is directly related to the
> >>>>> rootfs.  This is the Texas Instruments rootfs that is supplied for the
> >>>>> DA850 board.  During normal startup, it wants to start the GUI for the
> >>>>> LCD which would go past the 32MB process limit with FCSE enabled.  With
> >>>>> FCSE_GUARENTEED selected this is noted but doesn't cause a crash.  With
> >>>>> FCSE_BEST_EFFORT selected this is noted and then the system crashes
> >>>>> within a few seconds.  I'm not sure if this counts as a bug in
> >>>>> BEST_EFFORT or whether all bets are off if you try to start a process
> >>>>> that's too large.
> >>>>>
> >>>>> At this point I'm not sure if anything else is specific to that rootfs
> >>>>> but I'll still make it available to you to have a look.
> >>>>
> >>>> No luck with your rootfs: matrix_GUI craches indeed, but it also crashes
> >>>> without CONFIG_FCSE, so it would seem the crash is unrelated to the
> >>>> FCSE. Obviously it does not crash with FCSE_GUARANTEED, because it is
> >>>> stopped as soon as it wants to go over 32 MB. And that crash does not
> >>>> cause the cascade of crashes you mentioned, ending with init crashing.
> >>>> The processor on which I am running the tests does not have a
> >>>> framebuffer maybe that is the reason I get a crash, and do not go as far
> >>>> as in your case.
> >>>>
> >>>> Could you post the kernel configuration you use?
> >>>>
> >>>
> >>> Take 3.  Ignore the previous two.  They will probably trigger it, but
> >>> this one I actually tested to confirm it does cause the crash.
> >>
> >> This configuration with only omapl138 replaced with at91sam9263 seems to
> >> run correctly, except for the segfault in the matrix_guiE application,
> >> which I also have on an unpatched kernel. Note that this configuration
> >> sets the cache to writethrough mode which, at least on at91sam9263
> >> results in a much slower kernel than writeback mode.
> >>
> > 
> > Yep. Writethrough is forced by that defconfig selecting the da830 as
> > well as the da850.  Disabling the da830 and turning writethrough off
> > speeds things up slightly but doesn't have any other effect.
> > 
> >> So, I would say any remaining issue is specific to omapl138.
> >>
> > 
> > Seems a reasonable assumption.
> > 
> > Right now I'm largely stumped.  I'm not always getting meaningful
> > backtraces on panic, but when I do they invariably pass through
> > __do_kernel_fault() - often more than once.  It seems I can also trigger
> > the problem if I *disable* xenomai and ipipe, but leave FCSE best-effort
> > and lots of tracing enabled.
> > 
> > On best-effort that >32MB process won't be killed - correct?
> 
> Yes, as soon as a process has a virtual address space larger than 32MB
> it gets relocated to the null fcse pid.
> 
> >  Is it
> > possible to hit problems with the 32MB boundary while in the kernel?
> 
> The kernel mapping does not use fcse pids, so, there is no 32MB limit.
> The kernel has 1GiB + 16MiB of memory.
> 
> One thing you can do to verify if the suppressed cache flushes is what
> causes the issue is to get fcse_flush_needed_p to always return 1, in
> arch/arm/mm/fcse.c
> 

No change.  For that matter, I forgot to mention I'd tried booting with
both I and D caches disabled and still got the same Oops.

> One last thing: could you try and revert commit
> 84f452b1e8fc73ac0e31254c66e3e2260ce5263d
> 

Sadly, no change from that either.

-- 
Peter Howard <pjh@northern-ridge.com.au>



  reply	other threads:[~2014-05-06 22:44 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02  2:59 [Xenomai] OMAP L138 Peter Howard
2014-04-02  7:24 ` Gilles Chanteperdrix
2014-04-02 22:37   ` Peter Howard
2014-04-02 23:31     ` Gilles Chanteperdrix
2014-04-03  1:28       ` Peter Howard
2014-04-07  5:34   ` Peter Howard
2014-04-07  9:53     ` Gilles Chanteperdrix
2014-04-08  2:37       ` Peter Howard
2014-04-08  8:12         ` Gilles Chanteperdrix
2014-04-08 23:44           ` Peter Howard
2014-04-08  9:18     ` Gilles Chanteperdrix
2014-04-08 23:30       ` Peter Howard
2014-04-09  0:18         ` Gilles Chanteperdrix
2014-04-09  0:20         ` Gilles Chanteperdrix
2014-04-09  0:34           ` Peter Howard
2014-04-09  4:27             ` Peter Howard
2014-04-09 11:54               ` Gilles Chanteperdrix
2014-04-10  7:01                 ` Peter Howard
2014-04-10 12:06                   ` Gilles Chanteperdrix
2014-04-10 19:57                     ` Peter Howard
2014-04-10 21:56                       ` Gilles Chanteperdrix
2014-04-10 22:17                         ` Peter Howard
2014-04-10 22:23                           ` Gilles Chanteperdrix
2014-04-10 22:27                             ` Peter Howard
2014-04-10 22:34                             ` Peter Howard
2014-04-10 22:48                               ` Gilles Chanteperdrix
2014-04-10 22:52                                 ` Peter Howard
2014-04-10 22:55                                   ` Gilles Chanteperdrix
2014-04-15  6:03                                   ` Peter Howard
2014-04-15 11:37                                     ` Gilles Chanteperdrix
2014-04-15 21:59                                       ` Peter Howard
2014-04-15 22:25                                         ` Gilles Chanteperdrix
2014-04-16  0:58                                           ` Peter Howard
2014-04-16  7:34                                             ` Gilles Chanteperdrix
2014-04-17  0:30                                               ` Peter Howard
2014-04-17 11:37                                                 ` Gilles Chanteperdrix
2014-04-22 23:02                                         ` Gilles Chanteperdrix
2014-04-23  1:45                                           ` Peter Howard
2014-04-23  2:15                                             ` Peter Howard
2014-04-23 12:13                                             ` Gilles Chanteperdrix
2014-04-24 21:30                                             ` Gilles Chanteperdrix
2014-04-27 22:14                                               ` Peter Howard
2014-04-28  1:19                                               ` Peter Howard
2014-04-29  1:46                                               ` Peter Howard
2014-05-04 19:25                                                 ` Gilles Chanteperdrix
2014-05-05 23:00                                                   ` Peter Howard
2014-05-06 11:35                                                     ` Gilles Chanteperdrix
2014-05-06 22:44                                                       ` Peter Howard [this message]
2014-05-07  0:26                                                         ` Gilles Chanteperdrix
2014-04-10 23:01                             ` Peter Howard
2014-04-11 15:46                               ` Lennart Sorensen
2014-04-14  0:28                                 ` Peter Howard
2014-04-14  1:10                                   ` Lennart Sorensen
2014-04-14  5:02                                     ` Peter Howard
2014-04-14  5:48                                       ` Peter Howard
2014-04-14 13:21                                       ` Lennart Sorensen
2014-04-15  1:58                                     ` Peter Howard

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=1399416290.6054.2.camel@localhost.localdomain \
    --to=pjh@northern-ridge.com.au \
    --cc=gilles.chanteperdrix@xenomai.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.