From: Jan Kiszka <jan.kiszka@siemens.com>
To: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>,
Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Question regarding rt_sem_p
Date: Tue, 16 Sep 2014 19:52:20 +0200 [thread overview]
Message-ID: <541878D4.4070809@siemens.com> (raw)
In-Reply-To: <20140916155650.GL17690@csclub.uwaterloo.ca>
On 2014-09-16 17:56, Lennart Sorensen wrote:
> On Sun, Sep 14, 2014 at 05:27:04AM +0200, Gilles Chanteperdrix wrote:
>> I am almost sure I fixed an issue with user-space getting -EINTR with
>> gdb. I simply did not want to look for the commit if you still have the
>> issue with 3.14. If 3.14 does not boot, it looks like I will have to
>> search the commit anyway.
>
> I am trying to bacport the 3.14 git tree to 3.12 (so far looking not
> too hard). Just trying to get any of the fixes 3.14 has to see if it
> helps (the commit mentioned did help with some things, so gdb works now).
>
> I spotted this though that looks like a mistake (although clearly harmless
> is CONFIG_IPIPE is enabled)
>
> diff --git a/kernel/sched/clock.c b/kernel/sched/clock.c
> index b30a292..27376a0 100644
> --- a/kernel/sched/clock.c
> +++ b/kernel/sched/clock.c
> @@ -242,6 +242,10 @@ u64 sched_clock_cpu(int cpu)
> struct sched_clock_data *scd;
> u64 clock;
>
> +#ifndef CONFIG_IPIPE
> + WARN_ON_ONCE(!irqs_disabled());
> +#endif
> +
> if (sched_clock_stable())
> return sched_clock();
>
>
> The kernel purposely removed that warning, so why should the ipipe patch
> put it back, and only when ipipe is disabled?
>
Usually such things come in when merge conflicts are resolved.
Upstream replaced local_irq_disable with preempt_enable/disable for the
sched clock. That's fine for our usage, tracing, as we have that under
control when I-pipe is enabled. Without I-pipe, this piece will cause a
false-positive. So a patch to remove this also in 3.14 is definitely
welcome.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2014-09-16 17:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-05 20:33 [Xenomai] Question regarding rt_sem_p PRADHAN, MAKARAND (RC-CA)
2014-08-05 21:23 ` Gilles Chanteperdrix
[not found] ` <1410537098.19920.YahooMailNeo@web142606.mail.bf1.yahoo.com>
2014-09-12 20:35 ` PRADHAN, MAKARAND (RC-CA)
2014-09-12 20:38 ` Gilles Chanteperdrix
2014-09-12 20:52 ` PRADHAN, MAKARAND (RC-CA)
2014-09-12 20:54 ` Gilles Chanteperdrix
2014-09-14 2:44 ` Lennart Sorensen
2014-09-14 3:27 ` Gilles Chanteperdrix
2014-09-14 7:40 ` Philippe Gerum
2014-09-14 15:05 ` Gilles Chanteperdrix
2014-09-15 15:09 ` PRADHAN, MAKARAND (RC-CA)
2014-09-16 15:56 ` Lennart Sorensen
2014-09-16 17:52 ` Jan Kiszka [this message]
2014-09-18 16:49 ` Lennart Sorensen
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=541878D4.4070809@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=lsorense@csclub.uwaterloo.ca \
--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.