All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Dmitry Adamushko <dmitry.adamushko@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [RFC][PATCH] shirq locking rework
Date: Thu, 21 Jun 2007 14:56:51 +0200	[thread overview]
Message-ID: <467A7593.4040402@domain.hid> (raw)
In-Reply-To: <b647ffbd0706210252o1074fa6aof00e82b5ba5a2509@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1310 bytes --]

Dmitry Adamushko wrote:
> On 21/06/07, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>> [ ... ]
>>
>> Unfortunately, that whole thing make me meditate about the whole issue
>> again. And now I wonder why we make such a fuss about locking for shared
>> IRQs (where it should be correct with any of the new patches) while we
>> do not care about the non-shared, standard scenario.
> 
> surprise-surprise.. sure, one way or another it must be fixed. heh..
> too many bugs (and I don't even want to say who's responsible) :-/

I wouldn't accept all the responsibility if I were you. We all went
through this code several times. It's a sign that the design might be
too complex now, and I feel like having some share in this.

> 
>> Sigh, the never ending IRQ story...
> 
> should be reviewed.
> 

Things get worse, at least with XENO_OPT_STATS: Due to the runtime
statistics collection, we may end up with dangling references to our
xnintr object even after xnintr_shirq_unlock().

We would actually need some kind of IRQ_INPROGRESS + synchronize_irq()
at i-pipe level. But we have the problem, in contrast to the kernel,
that we reschedule from inside the handler (more precisely: at nucleus
level), thus synchronize_irq() would not just wait on some simple
handler to exit...

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2007-06-21 12:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19 18:40 [Xenomai-core] [RFC][PATCH] shirq locking rework Jan Kiszka
2007-06-20 21:04 ` Dmitry Adamushko
2007-06-20 21:58   ` Jan Kiszka
2007-06-21  8:03     ` Dmitry Adamushko
2007-06-21  9:20       ` Jan Kiszka
2007-06-21  9:52         ` Dmitry Adamushko
2007-06-21 12:56           ` Jan Kiszka [this message]
2007-06-21 13:14             ` Dmitry Adamushko
2007-06-21 13:40               ` Jan Kiszka
2007-06-22 11:53                 ` Jan Kiszka
2007-06-22 12:17                   ` Dmitry Adamushko
2007-06-22 12:24                     ` Jan Kiszka
     [not found]         ` <467A5B85.9010103@domain.hid>
2007-06-21 17:24           ` Philippe Gerum
2007-06-21 17:46             ` Jan Kiszka
  -- strict thread matches above, loose matches on Subject: below --
2007-06-25 19:11 Dmitry Adamushko
2007-06-25 20:29 ` Jan Kiszka
2007-06-30  8:36   ` Dmitry Adamushko

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=467A7593.4040402@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=dmitry.adamushko@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.