Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754603AbbLERZX (ORCPT ); Sat, 5 Dec 2015 12:25:23 -0500 Received: from www.linutronix.de ([62.245.132.108]:53403 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753053AbbLERZW (ORCPT ); Sat, 5 Dec 2015 12:25:22 -0500 Date: Sat, 5 Dec 2015 18:24:31 +0100 (CET) From: Thomas Gleixner To: Thomas Petazzoni cc: Jason Cooper , Marc Zyngier , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tawfik Bayouk , Nadav Haklai , Lior Amsalem , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement Subject: Re: [PATCH 0/5] Fix regression introduced by set_irq_flags() removal In-Reply-To: <20151204120329.30a52cf4@free-electrons.com> Message-ID: References: <1445347435-2333-1-git-send-email-thomas.petazzoni@free-electrons.com> <20151020140427.GE3953@io.lakedaemon.net> <20151020160828.497fcc80@free-electrons.com> <20151111092638.587a53a4@free-electrons.com> <20151204120329.30a52cf4@free-electrons.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: 1608 Lines: 35 Thomas, On Fri, 4 Dec 2015, Thomas Petazzoni wrote: > Well, the problem is that IRQ_NOAUTOEN is a global flag, which is OK > for global interrupts, but not good for per-CPU interrupts, since you > don't have the information on a per-CPU basis of which interrupt was > enabled before suspend, and therefore should be re-enabled after resume. > > Until now, we don't have the problem since the only per-CPU interrupt > we were using was the local timer interrupt, and the local timers on > secondary CPUs are switched off during suspend and re-enabled during > resume. So re-enabling the interrupt on the boot CPU on resume is > sufficient. > > However, our network driver recently switched to using per-CPU > interrupts as well, and in this case, it is really important to be able > to re-enable the per-CPU interrupts and the appropriate CPUs at resume > time. Since our HW registers are made so that it is not possible to > read out at suspend time which interrupts are enabled, we have to ask > the Linux kernel at resume time which interrupts should be re-enabled > at the HW level. Which is what my more complicated series was doing. > > Do you have other suggestions to allow us to know which per-CPU > interrupts should be re-enabled on the different CPUs at resume time ? Ok. That makes sense. So I'm going to pick up the core change. 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/