All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Zyngier <marc.zyngier@arm.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Talel Shenhar <talel@amazon.com>, <nicolas.ferre@microchip.com>,
	<jason@lakedaemon.net>, <mark.rutland@arm.com>,
	<mchehab+samsung@kernel.org>, <robh+dt@kernel.org>,
	<davem@davemloft.net>, <shawn.lin@rock-chips.com>,
	<tglx@linutronix.de>, <devicetree@vger.kernel.org>,
	<gregkh@linuxfoundation.org>, <linux-kernel@vger.kernel.org>,
	<dwmw@amazon.co.uk>, <jonnyc@amazon.com>, <hhhawa@amazon.com>,
	<ronenk@amazon.com>, <hanochu@amazon.com>, <barakw@amazon.com>
Subject: Re: [PATCH v2 2/2] irqchip: al-fic: Introduce Amazon's Annapurna Labs Fabric Interrupt Controller Driver
Date: Thu, 06 Jun 2019 08:10:24 +0100	[thread overview]
Message-ID: <86o93bgpen.wl-marc.zyngier@arm.com> (raw)
In-Reply-To: <8930de04d7f40b84068e4478a12fc496d53930c9.camel@kernel.crashing.org>

On Wed, 05 Jun 2019 23:02:13 +0100,
Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> 
> On Wed, 2019-06-05 at 13:22 +0100, Marc Zyngier wrote:
> > 
> > > +	 * This is generally fixed depending on what pieces of HW it's wired up
> > > +	 * to.
> > > +	 *
> > > +	 * We configure it based on the sensitivity of the first source
> > > +	 * being setup, and reject any subsequent attempt at configuring it in a
> > > +	 * different way.
> > 
> > Is that a reliable guess? It also strikes me that the DT binding doesn't
> > allow for the trigger type to be passed, meaning the individual drivers
> > have to request the trigger as part of their request_irq() call. I'd
> > rather you have a complete interrupt specifier in DT, and document the
> > various limitations of the HW.
> 
> Actually the DT does, but Talel forgot to update the "example" part of
> the binding patch. The description does say 2 cells.

Yeah, I missed that and only read the example.

> This is the best approach imho (translation: I asked Talel to do it
> this way :-) The other option which I don't like is to stick to
> #interrupt-cells = 1, and have a separate property in the interrupt
> controller node to indicate whether it needs to be configured as level
> or edge.

Right, that's what I was suggesting in a separate email.

> These FICs are used for what is generally fixed wires inside the SoC,
> so it doesn't matter much either way, but I prefer having it self
> configured based on source just in case a future implementation doesn't
> have the limitation of all inputs having the same trigger type.

Fair enough. But it should be pretty easy to verify statically that
all interrupt specifiers targeting this interrupt controller have a
similar type.

RobH, is that something the yaml thing could do for us?

Thanks,

	M.

-- 
Jazz is not dead, it just smells funny.

WARNING: multiple messages have this Message-ID (diff)
From: Marc Zyngier <marc.zyngier@arm.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Talel Shenhar <talel@amazon.com>,
	nicolas.ferre@microchip.com, jason@lakedaemon.net,
	mark.rutland@arm.com, mchehab+samsung@kernel.org,
	robh+dt@kernel.org, davem@davemloft.net,
	shawn.lin@rock-chips.com, tglx@linutronix.de,
	devicetree@vger.kernel.org, gregkh@linuxfoundation.org,
	linux-kernel@vger.kernel.org, dwmw@amazon.co.uk,
	jonnyc@amazon.com, hhhawa@amazon.com, ronenk@amazon.com,
	hanochu@amazon.com, barakw@amazon.com
Subject: Re: [PATCH v2 2/2] irqchip: al-fic: Introduce Amazon's Annapurna Labs Fabric Interrupt Controller Driver
Date: Thu, 06 Jun 2019 08:10:24 +0100	[thread overview]
Message-ID: <86o93bgpen.wl-marc.zyngier@arm.com> (raw)
In-Reply-To: <8930de04d7f40b84068e4478a12fc496d53930c9.camel@kernel.crashing.org>

On Wed, 05 Jun 2019 23:02:13 +0100,
Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> 
> On Wed, 2019-06-05 at 13:22 +0100, Marc Zyngier wrote:
> > 
> > > +	 * This is generally fixed depending on what pieces of HW it's wired up
> > > +	 * to.
> > > +	 *
> > > +	 * We configure it based on the sensitivity of the first source
> > > +	 * being setup, and reject any subsequent attempt at configuring it in a
> > > +	 * different way.
> > 
> > Is that a reliable guess? It also strikes me that the DT binding doesn't
> > allow for the trigger type to be passed, meaning the individual drivers
> > have to request the trigger as part of their request_irq() call. I'd
> > rather you have a complete interrupt specifier in DT, and document the
> > various limitations of the HW.
> 
> Actually the DT does, but Talel forgot to update the "example" part of
> the binding patch. The description does say 2 cells.

Yeah, I missed that and only read the example.

> This is the best approach imho (translation: I asked Talel to do it
> this way :-) The other option which I don't like is to stick to
> #interrupt-cells = 1, and have a separate property in the interrupt
> controller node to indicate whether it needs to be configured as level
> or edge.

Right, that's what I was suggesting in a separate email.

> These FICs are used for what is generally fixed wires inside the SoC,
> so it doesn't matter much either way, but I prefer having it self
> configured based on source just in case a future implementation doesn't
> have the limitation of all inputs having the same trigger type.

Fair enough. But it should be pretty easy to verify statically that
all interrupt specifiers targeting this interrupt controller have a
similar type.

RobH, is that something the yaml thing could do for us?

Thanks,

	M.

-- 
Jazz is not dead, it just smells funny.

  reply	other threads:[~2019-06-06  7:10 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-05 10:51 [PATCH v2 0/2] Amazon's Annapurna Labs Fabric Interrupt Controller Talel Shenhar
2019-06-05 10:51 ` Talel Shenhar
2019-06-05 10:52 ` [PATCH v2 1/2] dt-bindings: interrupt-controller: Amazon's Annapurna Labs FIC Talel Shenhar
2019-06-05 10:52   ` Talel Shenhar
2019-06-05 11:08   ` Sudeep Holla
2019-06-05 15:49   ` Eduardo Valentin
2019-06-05 15:49     ` Eduardo Valentin
2019-06-06  7:23     ` Shenhar, Talel
2019-06-06  7:23       ` Shenhar, Talel
2019-06-05 10:52 ` [PATCH v2 2/2] irqchip: al-fic: Introduce Amazon's Annapurna Labs Fabric Interrupt Controller Driver Talel Shenhar
2019-06-05 10:52   ` Talel Shenhar
2019-06-05 12:22   ` Marc Zyngier
2019-06-05 14:38     ` Shenhar, Talel
2019-06-05 14:38       ` Shenhar, Talel
2019-06-05 15:12       ` Marc Zyngier
2019-06-05 22:06         ` Benjamin Herrenschmidt
2019-06-06  7:05           ` Marc Zyngier
2019-06-06  7:05             ` Marc Zyngier
2019-06-06  7:49             ` Benjamin Herrenschmidt
2019-06-06  7:25         ` Shenhar, Talel
2019-06-06  7:25           ` Shenhar, Talel
2019-06-05 22:02     ` Benjamin Herrenschmidt
2019-06-06  7:10       ` Marc Zyngier [this message]
2019-06-06  7:10         ` Marc Zyngier
2019-06-05 12:50   ` Greg KH
2019-06-05 14:51     ` Shenhar, Talel
2019-06-05 14:51       ` Shenhar, Talel
2019-06-05 15:40       ` Greg KH
2019-06-05 14:56     ` David Woodhouse

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=86o93bgpen.wl-marc.zyngier@arm.com \
    --to=marc.zyngier@arm.com \
    --cc=barakw@amazon.com \
    --cc=benh@kernel.crashing.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=dwmw@amazon.co.uk \
    --cc=gregkh@linuxfoundation.org \
    --cc=hanochu@amazon.com \
    --cc=hhhawa@amazon.com \
    --cc=jason@lakedaemon.net \
    --cc=jonnyc@amazon.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mchehab+samsung@kernel.org \
    --cc=nicolas.ferre@microchip.com \
    --cc=robh+dt@kernel.org \
    --cc=ronenk@amazon.com \
    --cc=shawn.lin@rock-chips.com \
    --cc=talel@amazon.com \
    --cc=tglx@linutronix.de \
    /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.