From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752812AbbIQQBH (ORCPT ); Thu, 17 Sep 2015 12:01:07 -0400 Received: from foss.arm.com ([217.140.101.70]:42237 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752418AbbIQQBF (ORCPT ); Thu, 17 Sep 2015 12:01:05 -0400 Date: Thu, 17 Sep 2015 17:01:07 +0100 From: Will Deacon To: Yang Yingliang Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Jiang Liu , Thomas Gleixner , Marc Zyngier , Mark Rutland , Russell King - ARM Linux , "hanjun.guo@linaro.org" Subject: Re: [RFC PATCH v4 3/4] arm64: fix a migrating irq bug when hotplug cpu Message-ID: <20150917160107.GO25634@arm.com> References: <1442467166-1460-1-git-send-email-yangyingliang@huawei.com> <1442467166-1460-4-git-send-email-yangyingliang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1442467166-1460-4-git-send-email-yangyingliang@huawei.com> 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 Thu, Sep 17, 2015 at 06:19:25AM +0100, Yang Yingliang wrote: > When cpu is disabled, all irqs will be migratged to another cpu. > In some cases, a new affinity is different, it needed to be coppied > to irq's affinity. But if the type of irq is LPI, it's affinity will > not be coppied because of irq_set_affinity's return value. Fix it by > using irq_do_set_affinity. > > And migrating interrupts is a core code matter, so use the generic > function move_irqs() 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/arm64/Kconfig | 1 + > arch/arm64/include/asm/irq.h | 1 - > arch/arm64/kernel/irq.c | 62 -------------------------------------------- > arch/arm64/kernel/smp.c | 2 +- > 4 files changed, 2 insertions(+), 64 deletions(-) Removing code is always good, so: Acked-by: Will Deacon but obviously this depends on the core stuff. Will