All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Mathieu Rondonneau <mathieu_rondonneau@hotmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Support for Raspberry PI 2 B
Date: Mon, 9 Nov 2015 12:45:31 +0100	[thread overview]
Message-ID: <20151109114531.GA1563@hermes.click-hack.org> (raw)
In-Reply-To: <BLU437-SMTP73704258277408A0F2C238F0150@phx.gbl>

On Sun, Nov 08, 2015 at 04:54:39PM -0800, Mathieu Rondonneau wrote:
> > Well, I am sorry, I am unable to communicate in a language where the
> > (universal) rules of logic do not apply. I suspect very few people
> > can.
> >
> I don't think it is about that.

It is exactly about that. The doc says "if the handler is
handle_fasteoi_irq, then add irq_hold and put an ipipe_lock in the
mask/unmask callbacks". Applying partially the "then" clause, when
the condition is false (when the handler is not handle_fasteoi_irq)
is an error of logic.

> What i am saying is the doc does not need to follow the coding structure.
> I think what I take from it (and I tend to forget) is that the doc is 
> for specific port and does not mean to be generic.

I have tried to make everything for the ARM architecture so that the
work of porting the I-pipe can be generic. So, having a
documentation that is not generic would be a failure.

> > Anyway, I am interested by your contribution, but as it is, I am
> > afraid you still misunderstood.
> >
> Please explain one more time, I really would like to understand :)
> I like what you guys are doing.
> the RPI2 uses handle_percpu_devid_irq for the local 
> timers/counters/IPI/videocore.
> 
> Once I get something working, I definitely will send you a patch for you 
> guys to review.

I was talking about your contribution to the documentation. But of
course, the contribution of the port would be welcome, but this goes
without saying, since the documentations says it:
http://xenomai.org/2014/09/porting-xenomai-dual-kernel-to-a-new-arm-soc/#Publishing_your_modifications

> 
> >>
> >> Side note: with two irqchip (one for handle_level_irq that does not
> >> lock_irq in mask and the one for handle_percpu_devid_irq that does the
> >> lock_irq in mask()) it does work.
> >
> > You can probably have only one irqchip and not bother to insert the
> > calls to ipipe_lock/unlock_irq.
> 
> Ok, this is new peace of information, that would work too. But then, 
> when one needs a lock_irq in mask and one does not?
> (it is the same question as 2 comments above.

As the doc says, when the handler is handle_fasteoi_irq.

-- 
					    Gilles.
https://click-hack.org


  reply	other threads:[~2015-11-09 11:45 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <56358DE3.8030308@hotmail.com>
2015-11-02  2:58 ` [Xenomai] Support for Raspberry PI 2 B (devm_request_threaded_irq) Mathieu Rondonneau
2015-11-02  3:21   ` Mathieu Rondonneau
2015-11-02  5:23     ` Mathieu Rondonneau
2015-11-02 15:15       ` Philippe Gerum
2015-11-04  3:18         ` Mathieu Rondonneau
2015-11-04  7:04           ` Gilles Chanteperdrix
2015-11-05  0:51             ` Mathieu Rondonneau
2015-11-05  6:08               ` [Xenomai] Support for Raspberry PI 2 B Mathieu Rondonneau
2015-11-08  5:55                 ` Mathieu Rondonneau
2015-11-08  8:42                   ` Gilles Chanteperdrix
2015-11-08 17:04                     ` Mathieu Rondonneau
2015-11-08 17:10                       ` Gilles Chanteperdrix
2015-11-08 17:20                         ` Mathieu Rondonneau
2015-11-08 17:26                           ` Gilles Chanteperdrix
2015-11-08 17:36                             ` Mathieu Rondonneau
2015-11-08 17:45                               ` Gilles Chanteperdrix
2015-11-08 21:47                                 ` Mathieu Rondonneau
2015-11-08 23:09                                   ` Gilles Chanteperdrix
2015-11-09  0:54                                     ` Mathieu Rondonneau
2015-11-09 11:45                                       ` Gilles Chanteperdrix [this message]
2015-11-10  1:10                                         ` Mathieu Rondonneau
2015-11-08 23:22                                   ` Gilles Chanteperdrix
2015-11-09  0:56                                     ` Mathieu Rondonneau
2015-11-02 15:12     ` [Xenomai] Support for Raspberry PI 2 B (devm_request_threaded_irq) Philippe Gerum
2015-10-24  4:21 [Xenomai] Support for Raspberry PI 2 B Mathieu Rondonneau
  -- strict thread matches above, loose matches on Subject: below --
2015-10-22  8:52 Wolfram Wadepohl
2015-10-22 15:46 ` 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=20151109114531.GA1563@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=mathieu_rondonneau@hotmail.com \
    --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.