From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932270AbbJUU33 (ORCPT ); Wed, 21 Oct 2015 16:29:29 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:54148 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750846AbbJUU31 (ORCPT ); Wed, 21 Oct 2015 16:29:27 -0400 Date: Wed, 21 Oct 2015 21:29:08 +0100 From: Russell King - ARM Linux To: Geert Uytterhoeven Cc: Yang Yingliang , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Jiang Liu , Thomas Gleixner , Marc Zyngier , Mark Rutland , Will Deacon , Hanjun Guo , Linux-sh list Subject: Re: [RFC PATCH v6 3/3] arm: fix a migrating irq bug when hotplug cpu Message-ID: <20151021202907.GN32532@n2100.arm.linux.org.uk> References: <1443087135-17044-1-git-send-email-yangyingliang@huawei.com> <1443087135-17044-4-git-send-email-yangyingliang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 21, 2015 at 01:47:49PM +0200, Geert Uytterhoeven wrote: > On Thu, Sep 24, 2015 at 11:32 AM, Yang Yingliang > wrote: > > When cpu is disabled, all irqs will be migratged to another cpu. > > In some cases, a new affinity is different, the old affinity need > > to be updated and if irq_set_affinity's return value is IRQ_SET_MASK_OK_DONE, > > the old affinity can not be updated. Fix it by using irq_do_set_affinity. > > > > And migrating interrupts is a core code matter, so use the generic > > function irq_migrate_all_off_this_cpu() to migrate interrupts in > > kernel/irq/migration.c. > > > > Cc: Jiang Liu > > Cc: Thomas Gleixner > > Cc: Marc Zyngier > > Cc: Mark Rutland > > Cc: Will Deacon > > Cc: Russell King - ARM Linux > > Cc: Hanjun Guo > > Signed-off-by: Yang Yingliang > > --- > > arch/arm/Kconfig | 1 + > > arch/arm/include/asm/irq.h | 1 - > > arch/arm/kernel/irq.c | 62 ---------------------------------------------- > > arch/arm/kernel/smp.c | 2 +- > > 4 files changed, 2 insertions(+), 64 deletions(-) > > > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > > index 72ad724..bffba78 100644 > > --- a/arch/arm/Kconfig > > +++ b/arch/arm/Kconfig > > @@ -1492,6 +1492,7 @@ config NR_CPUS > > config HOTPLUG_CPU > > bool "Support for hot-pluggable CPUs" > > depends on SMP > > + select GENERIC_IRQ_MIGRATION > > This causes the following warnings during s2ram on r8a7791/koelsch > (dual-core CA15): Thanks for the report. I'll see what tonight's boot run says for my platforms. Hopefully, the author of these changes can help debug this. -- FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.