From: Philippe Gerum <rpm@xenomai.org>
To: Kolja Waschk <xenoka09@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] More blackfin kernel oops under heavy load
Date: Sun, 06 Mar 2011 05:17:52 +0100 [thread overview]
Message-ID: <1299385072.2200.2.camel@domain.hid> (raw)
In-Reply-To: <alpine.DEB.1.10.1103011145430.14165@domain.hid>
On Tue, 2011-03-01 at 11:50 +0100, Kolja Waschk wrote:
> Hi,
>
> >> http://www.ixo.de/tmp/till20110228.tgz
>
> After verifying that no one yet checked, I updated the code in the archive to even better reflect the "real" situation. The main thread emits a number on stdout every second endlessly, waiting for SIGINT. To trigger the fault, it is necessary to contact the net server (with wget as I described) in a fast loop and after some time (about 2 seconds in my setup) the kernel fault occurs.
>
> Parameters to tune the load on the system are the frame size (MODT_BUFLEN in modt.h) and a nop loop in till.c rtdm_loop() (line 84). The BF537 here is running with 133 MHz bus clock, 533 MHz system clock.
>
100% reproducible here as well. Does this fix help?
diff --git a/arch/blackfin/mach-common/entry.S b/arch/blackfin/mach-common/entry.S
index a5847f5..a7650ce 100644
--- a/arch/blackfin/mach-common/entry.S
+++ b/arch/blackfin/mach-common/entry.S
@@ -892,8 +892,17 @@ ENDPROC(_ret_from_exception)
#ifdef CONFIG_IPIPE
_resume_kernel_from_int:
+ r1 = LO(~0x8000) (Z);
+ r1 = r0 & r1;
+ r0 = 1;
+ r0 = r1 - r0;
+ r2 = r1 & r0;
+ cc = r2 == 0;
+ /* Sync the root stage only from the outer interrupt level. */
+ if !cc jump .Lnosync;
r0.l = ___ipipe_sync_root;
r0.h = ___ipipe_sync_root;
+ [--sp] = reti;
[--sp] = rets;
[--sp] = ( r7:4, p5:3 );
SP += -12;
@@ -901,6 +910,8 @@ _resume_kernel_from_int:
SP += 12;
( r7:4, p5:3 ) = [sp++];
rets = [sp++];
+ reti = [sp++];
+.Lnosync:
rts
#else
#define _resume_kernel_from_int 2f
--
Philippe.
next prev parent reply other threads:[~2011-03-06 4:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-28 11:44 [Xenomai-help] More blackfin kernel oops under heavy load Kolja Waschk
2011-02-28 12:08 ` Gilles Chanteperdrix
2011-02-28 12:25 ` Kolja Waschk
2011-02-28 12:19 ` Gilles Chanteperdrix
2011-02-28 12:48 ` Kolja Waschk
2011-02-28 12:41 ` Gilles Chanteperdrix
2011-02-28 12:56 ` Kolja Waschk
2011-02-28 13:52 ` Gilles Chanteperdrix
2011-02-28 18:46 ` Kolja Waschk
2011-03-01 10:50 ` Kolja Waschk
2011-03-06 4:17 ` Philippe Gerum [this message]
2011-03-06 11:58 ` Kolja Waschk
2011-03-01 12:13 ` Gilles Chanteperdrix
2011-03-01 17:47 ` Philippe Gerum
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=1299385072.2200.2.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=xenoka09@domain.hid \
--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.