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 15:40:26 +0200	[thread overview]
Message-ID: <467A7FCA.40708@domain.hid> (raw)
In-Reply-To: <b647ffbd0706210614ib24568bq6f5bc149c2bbc423@domain.hid>

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

Dmitry Adamushko wrote:
> On 21/06/07, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>> > [ .. ]
>> > 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.
> 
> I have no problems in this respect. I was just a bit sarcastic with
> the way to say "it's my fault".
> 
> 
>> It's a sign that the design might be
>> too complex now
> 
> frankly speaking, I don't think it's really complex :)
> 
> 
>> 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...
> 
> Yeah.. we had already conversations on this topic (I think with
> Philippe) and, if I recall right, that was one of the reasons. That's
> why synchronize_irq() is in the nucleus layer.

Hmm, then we may be forced to get the cookie out of ipipe's hands again
and put it back into a nucleus irq array, i.e. move the cookie
dereferencing under a nucleus managed per-irq lock. But there is still
the issue with xnsched_t::current_account...


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

  reply	other threads:[~2007-06-21 13:40 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
2007-06-21 13:14             ` Dmitry Adamushko
2007-06-21 13:40               ` Jan Kiszka [this message]
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=467A7FCA.40708@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.