Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7732445ybi; Thu, 6 Jun 2019 00:13:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8u8iKAffQwVCosIYtTg6pm97uBq5OzAnZIPMks6iPu1f23JxS5D8eQnX4uCIpQ5KLFzvu X-Received: by 2002:aa7:9197:: with SMTP id x23mr15308339pfa.161.1559805203109; Thu, 06 Jun 2019 00:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559805203; cv=none; d=google.com; s=arc-20160816; b=DDb6hH78VxSb9SX4rXX9jzQ1iGH/6kdYjmnL7o/SEcVBk1SiSZ2/0kEzx01aOziXlf HRlb+xdzQBsuJd6wa759IoCQCpDTIJHwc+6+wzMQwPP/LdA71+T6trhmn9yBcKzOuUQM qjvgYY1OZJmp/gMxXNlg7v464UUViIrbQIJ1FJ9WGhQTPVaiQK/EFxLeMjll6bkImzJk aDilWIYfgqt8ooaHB4btTkGh/mduAL52BlR6z5hWczRtB0DYuNouifkvUyPLwIX6zSJB Ya9Y7zFOceBoqSib1Xwt3GmVsBkUWUSrz9/bQwZZkpIos1cIz8TFlnRfgqzveny3pesX NBAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date; bh=Yers4A5xJHcaImHtlwFHEWFe+OigBt405DlRZBLDfEU=; b=Cl+TGLUzUs16gfdOkV8HQq22R5+TN3QiQETb4IANZLlkVGdNk9c0fXqKKO2I0pf3ks 6uHYGyJqay1E5o0Rs5YoqIu8dHcd1BFkTJy8U5NdeabAbFxPc2Y6WdbIqR8RwfmK5hPL MQFpNfILfxeGN3F1orIzA0y/8mqsXF+skpSzap57WhXhEuMBH9IZF6ZBsJd3Hz4r68tk r/I2282OhG4joBdqkOLa9oq8RDg243VakuvJdperGsK3/3flpgeMbZCtCIYQM82za+GA rH0KikM70rCCReSMUPsxsNCdh56Af9w6xgQzU/+KxAbAZ7QFqJRsTPpUE30Qwkf5bQYo /cAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p21si1001901plq.328.2019.06.06.00.13.07; Thu, 06 Jun 2019 00:13:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726674AbfFFHKc (ORCPT + 99 others); Thu, 6 Jun 2019 03:10:32 -0400 Received: from foss.arm.com ([217.140.101.70]:41596 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725782AbfFFHKb (ORCPT ); Thu, 6 Jun 2019 03:10:31 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 39C98374; Thu, 6 Jun 2019 00:10:31 -0700 (PDT) Received: from big-swifty.misterjones.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 13ADB3F246; Thu, 6 Jun 2019 00:10:25 -0700 (PDT) Date: Thu, 06 Jun 2019 08:10:24 +0100 Message-ID: <86o93bgpen.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Benjamin Herrenschmidt Cc: Talel Shenhar , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v2 2/2] irqchip: al-fic: Introduce Amazon's Annapurna Labs Fabric Interrupt Controller Driver In-Reply-To: <8930de04d7f40b84068e4478a12fc496d53930c9.camel@kernel.crashing.org> References: <1559731921-14023-1-git-send-email-talel@amazon.com> <1559731921-14023-3-git-send-email-talel@amazon.com> <8930de04d7f40b84068e4478a12fc496d53930c9.camel@kernel.crashing.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/26 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 05 Jun 2019 23:02:13 +0100, Benjamin Herrenschmidt 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.