From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [PATCH v3 3/4] irq: Allow multiple clients to register for irq affinity notification Date: Fri, 26 Sep 2014 08:10:04 -0700 Message-ID: <7hioka4dv7.fsf@deeprootsystems.com> References: <1409170479-29955-1-git-send-email-lina.iyer@linaro.org> <1409170479-29955-4-git-send-email-lina.iyer@linaro.org> <20140902184305.GB91995@ilina-mac.local> <7htx3vbfqr.fsf@deeprootsystems.com> <20140926094003.GL5182@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from mail.kernel.org ([198.145.19.201]:39775 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754819AbaIZPKL (ORCPT ); Fri, 26 Sep 2014 11:10:11 -0400 In-Reply-To: <20140926094003.GL5182@n2100.arm.linux.org.uk> (Russell King's message of "Fri, 26 Sep 2014 10:40:03 +0100") Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Russell King - ARM Linux Cc: Thomas Gleixner , ulf.hansson@linaro.org, linux-pm@vger.kernel.org, daniel.lezcano@linaro.org, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, Lina Iyer , linux-arm-kernel@lists.infradead.org Russell King - ARM Linux writes: > On Fri, Sep 26, 2014 at 11:29:56AM +0200, Thomas Gleixner wrote: >> On Thu, 25 Sep 2014, Kevin Hilman wrote: >> > Maybe I'm missing something, or maybe we're just lucky and nobody uses >> > them together, but irq_set_affinity_notifier() only allows a single >> > notifier to be registered at any given time. So if you had a system >> >> A single notifier per irq ..... > > So what about two drivers wanting to use this notifier, but sharing an > interrupt? > > It sounds to me like this notifier was misdesigned from the very start, > and it should always have supported multiple notifiers. I agree. $SUBJECT patch tries to add that support, and is part of a series wanting to use these notifiers in the PM QoS subsystem, while at the same time not breaking existing users. I suppose this series could be written without $SUBJECT patch, and crossing fingers in the hopes that an existing user of the notifiers doesn't also need to use the pm_qos constraints, but that seems like knowingly leaving an armed landmine laying around. Kevin