Re: [PATCH] arm64: fix a migrating irq bug when hotplug cpu

2015-09-01 Thread Yang Yingliang
在 2015/8/31 20:20, Marc Zyngier 写道: On Sun, 30 Aug 2015 21:15:56 +0800 Hanjun Guo wrote: On 08/30/2015 02:12 AM, Marc Zyngier wrote: On 2015-08-29 16:12, Jiang Liu wrote: On 2015/8/29 21:00, Yang Yingliang wrote: From: Yang Yingliang When cpu is disabled, all irqs will be migratged to an

Re: [PATCH] arm64: fix a migrating irq bug when hotplug cpu

2015-09-01 Thread Will Deacon
On Mon, Aug 31, 2015 at 01:20:31PM +0100, Marc Zyngier wrote: > On Sun, 30 Aug 2015 21:15:56 +0800 > Hanjun Guo wrote: > > I agree. In arch/arm64/kernel/irq.c the irq migrate code is the same > > as ARM32, and it's duplicate. But this is a bugfix, can we fix it in > > a simple way, and refactor th

Re: [PATCH] arm64: fix a migrating irq bug when hotplug cpu

2015-08-31 Thread Marc Zyngier
On Sun, 30 Aug 2015 21:15:56 +0800 Hanjun Guo wrote: > On 08/30/2015 02:12 AM, Marc Zyngier wrote: > > On 2015-08-29 16:12, Jiang Liu wrote: > >> On 2015/8/29 21:00, Yang Yingliang wrote: > >>> From: Yang Yingliang > >>> > >>> When cpu is disabled, all irqs will be migratged to another cpu. > >>

Re: [PATCH] arm64: fix a migrating irq bug when hotplug cpu

2015-08-30 Thread Hanjun Guo
On 08/30/2015 02:12 AM, Marc Zyngier wrote: On 2015-08-29 16:12, Jiang Liu wrote: On 2015/8/29 21:00, Yang Yingliang wrote: From: Yang Yingliang 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 affini

Re: [PATCH] arm64: fix a migrating irq bug when hotplug cpu

2015-08-29 Thread Marc Zyngier
On 2015-08-29 16:12, Jiang Liu wrote: On 2015/8/29 21:00, Yang Yingliang wrote: From: Yang Yingliang 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 affin

Re: [PATCH] arm64: fix a migrating irq bug when hotplug cpu

2015-08-29 Thread Jiang Liu
On 2015/8/29 21:00, Yang Yingliang wrote: > From: Yang Yingliang > > 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 becau