Message-ID: Date: Thu, 9 Feb 2006 13:11:31 +0200 From: Dmitry Adamushko Subject: Re: [Xenomai-core] [Combo-PATCH] Shared interrupts (final) In-Reply-To: <43EB1741.9080809@domain.hid> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14349_7917942.1139483491640" References: <43E86F4D.4050400@domain.hid> <43E8DFC4.4010805@domain.hid> <43E9CE95.3070806@domain.hid> <43EAFD8B.7020400@domain.hid> <43EB1279.3040902@domain.hid> <43EB1741.9080809@domain.hid> List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: xenomai@xenomai.org ------=_Part_14349_7917942.1139483491640 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 09/02/06, Jan Kiszka wrote: > > Philippe Gerum wrote: > > Anders Blomdell wrote: > > > >> My distinct feeling is that the return value should be a scalar and > >> not a set! > >> > > > > To sum up, the valid return values are HANDLED, HANDLED | ENABLE (*), > > HANDLED | CHAINED and CHAINED. It's currently a set because I once > > thought that the "handled" indication (or lack of) could be a valuable > > information to gather at nucleus level to detect unhandled RT > > interrupts. Fact is that we currently don't use this information, > > But it is required for the edge-triggered case to detect when the IRQ > line was at least shortly released. I guess Dmitry introduced that NOINT > just because HANDLED equals 0 so far. As I would say HANDLED =3D=3D !NOIN= T, > we could avoid this new flag by just making HANDLED non-zero. That's it. I was about to make a comment on Philipe's list of possible return values, but you outrun me. HANDLED is 0 so we can not distinguish between HANDLED | CHAINED and CHAINE= D cases. NOINT denotes explicitly the handler's answer "this IRQ is rised not by my hw!" and it's needed (at least) for implementing the edge-triggered irq sharing. It's not necessary in case HANDLED becomes non-zero and, actually, HANDLED is not necessary with NOINT. As I may see, Philipe's list can be mapped as follows : HANDLED -> 0 HANDLED | ENABLE -> ENABLE HANDLED | CHAINED -> CHAINED CHAINED -> CHAINED | NOINT and NOINT as a separete use case (?). Could be useful at least for the edge-triggered stuff. -- Best regards, Dmitry Adamushko ------=_Part_14349_7917942.1139483491640 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
On 09/02/06, Jan Kiszka <jan.kiszka@domain.hid= .de> wrote:
Philippe Gerum wrote:
> Anders Blomdell wrote:
>
>> My= distinct feeling is that the return value should be a scalar and
>&g= t; not a set!
>>
>
> To sum up, the valid return value= s are HANDLED, HANDLED | ENABLE (*),
> HANDLED | CHAINED and CHAINED. It's currently a set because I once=
> thought that the "handled" indication (or lack of) could= be a valuable
> information to gather at nucleus level to detect unh= andled RT
> interrupts. Fact is that we currently don't use this information,<= br>
But it is required for the edge-triggered case to detect when the IR= Q
line was at least shortly released. I guess Dmitry introduced that NOI= NT
just because HANDLED equals 0 so far. As I would say HANDLED =3D=3D !NO= INT,
we could avoid this new flag by just making HANDLED non-zero.

That's it.

I was about to make a comment on Philipe's list of possible return values, = but you outrun me.

HANDLED is 0 so we can not distinguish between HANDLED | CHAINED and CHAINED cases. NOINT denotes explicitly the handler's answer "this IRQ is rised not by my hw!" and it's needed (at least) for implementing th= e edge-triggered irq sharing.

It's not necessary in case HANDLED becomes non-zero and, actually, HANDLED = is not necessary with NOINT.

As I may see, Philipe's list can be mapped as follows :

HANDLED  ->  0
HANDLED | ENABLE  ->  ENABLE
HANDLED | CHAINED ->  CHAINED
CHAINED           &n= bsp;       ->  CHAINED | NOINT

and

NOINT as a separete use case (?). Could be useful at least for the edge-tri= ggered stuff.


--
Best regards,
Dmitry Adamushko ------=_Part_14349_7917942.1139483491640--