Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932414AbbKMUCl (ORCPT ); Fri, 13 Nov 2015 15:02:41 -0500 Received: from www.linutronix.de ([62.245.132.108]:33684 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754225AbbKMUCj (ORCPT ); Fri, 13 Nov 2015 15:02:39 -0500 Date: Fri, 13 Nov 2015 15:01:45 -0500 (EST) From: Thomas Gleixner To: Jon Hunter cc: Kevin Hilman , Jason Cooper , Marc Zyngier , Stephen Warren , Thierry Reding , Geert Uytterhoeven , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [RFC PATCH 1/2] genirq: Add runtime resume/suspend support for IRQ chips In-Reply-To: <5645A6F6.6020202@nvidia.com> Message-ID: References: <1447166377-19707-1-git-send-email-jonathanh@nvidia.com> <1447166377-19707-2-git-send-email-jonathanh@nvidia.com> <7hio56dctz.fsf@deeprootsystems.com> <5645A6F6.6020202@nvidia.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1703 Lines: 41 On Fri, 13 Nov 2015, Jon Hunter wrote: > On 12/11/15 23:20, Kevin Hilman wrote: > > If all the RPM devices in the domain go idle, it will be powered off > > independently of the status of the irqchip because the irqchip isn't > > using RPM. > > That's dependent on how the irqchip uses these helpers. If these helpers > invoke RPM then that will not be the case. You need a very proper description of how that domain is working. If all devices are idle, it's not necessary correct to power down the irqchip as is might serve other devices as well. OTOH, if it can be powered down then all idle devices need to release the irq they requested because request_irq() would hold a ref on the power domain. I have no idea how you can describe that proper. > > Is there a longer-term plan to handle the irqchips as a "normal" device > > and use RPM? IMO, that approach would be helpful even for irqchips that > > share power domains with CPUs, since there are efforts working towards > > using genpd/RPM to manage CPUs/clusters. > > That would ideal. However, the majority of irqchips today > create/register them with IRQCHIP_DECLARE() and not as "normal" devices. > Therefore, I was reluctant to add "struct device" to the irqchip > structure. However, if this is what you would prefer and Thomas is ok > with it, then that would be fine with me. I have no objections against that, but how is the 'struct device' going to be initialized? Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/