Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752489AbdCaIQT (ORCPT ); Fri, 31 Mar 2017 04:16:19 -0400 Received: from foss.arm.com ([217.140.101.70]:55978 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750978AbdCaIQQ (ORCPT ); Fri, 31 Mar 2017 04:16:16 -0400 Subject: Re: [PATCH 1/1] irq: add IRQF_TRIGGER_MASK on PPI by default To: Thomas Gleixner , Aniruddha Banerjee References: Cc: Jonathan Hunter , "linux-kernel@vger.kernel.org" , Thierry Reding , Stephen Warren From: Marc Zyngier Organization: ARM Ltd Message-ID: <6bb214e5-7007-8541-ca95-838542f95b2a@arm.com> Date: Fri, 31 Mar 2017 09:16:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1270 Lines: 35 On 31/03/17 09:01, Thomas Gleixner wrote: > On Thu, 30 Mar 2017, Aniruddha Banerjee wrote: > >> add IRQF_TRIGGER_MASK on PPI by default so that the PPIs are >> not configured as edge-triggered, which may be wrong for certain GIC >> implementations such as the GIC-400 > > The above is just useless blurb. > > I can't figure out at all WHY a generic interface has anything to do with > edge trigger configuration. > > I assume this is (Nvidia) GIC specific nonsense, so why are you inflicting > this on every caller of this interface unconditionally w/o explaining what > the impact of this change might be and why it does not cause havoc for any > existing caller? > > This is function is implemented in kernel/irq/ not in foo/gic/ so you > better come up with some coherent explanation. Indeed. I'm not aware of anything wrong so far with GIC400, so this is most likely referring to an integration issue. Furthermore, PPI triggers are usually not configurable on GIC400. My bet is that this is only a DT issue, but in the absence of any coherent justification, it is hard to make an educated guess... Aniruddha: please state your problem clearly so that we can understand what exactly is going wrong. Thanks, M. -- Jazz is not dead. It just smells funny...