From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932465AbcHKPHL (ORCPT ); Thu, 11 Aug 2016 11:07:11 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:19391 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932355AbcHKPHJ (ORCPT ); Thu, 11 Aug 2016 11:07:09 -0400 Subject: Re: [tip:smp/hotplug] cpu/hotplug: Prevent alloc/free of irq descriptors during CPU up/down (again) To: Sebastian Andrzej Siewior References: <1470244948-17674-3-git-send-email-boris.ostrovsky@oracle.com> <287b42da-0388-f43e-34f7-a90935c33fa9@oracle.com> <20160811132020.bkdneatkijy7qxal@linutronix.de> <20160811141736.ce6bjtvbg4riquo2@linutronix.de> <20160811144427.j4j3n42eufomtnid@linutronix.de> Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, jgross@suse.com, torvalds@linux-foundation.org, mingo@kernel.org, hpa@zytor.com, peterz@infradead.org, anna-maria@linutronix.de From: Boris Ostrovsky Message-ID: Date: Thu, 11 Aug 2016 11:06:29 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160811144427.j4j3n42eufomtnid@linutronix.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/11/2016 10:44 AM, Sebastian Andrzej Siewior wrote: > On 2016-08-11 10:30:57 [-0400], Boris Ostrovsky wrote: >> So you must have converted Xen code already then? Can you post those >> patches (not all 1285, just Xen-related, assuming there are no >> dependencies) and I'll see if I can add them to this series? > > This is patch 77. I *hope* the only clash (if any) will be in > cpuhotplug.h. I did not yet retest things in terms of apply & compile. > I plan to do so within this + next week. If you want to test it right > away, please do so :) > > From: Sebastian Andrzej Siewior > Date: Wed, 4 Nov 2015 21:06:00 +0100 > Subject: [PATCH] xen: events: fifo: Convert to hotplug state machine > > Install the callbacks via the state machine. In theory we could remove the > upper call evtchn_fifo_alloc_control_block() and have callback invoked for > all online CPUs but this does not reflect the currect code. > > Cc: Konrad Rzeszutek Wilk > Cc: Boris Ostrovsky > Cc: David Vrabel > Cc: xen-devel@lists.xenproject.org > Signed-off-by: Sebastian Andrzej Siewior > --- > drivers/xen/events/events_fifo.c | 33 +++++++++++---------------------- > include/linux/cpuhotplug.h | 1 + > 2 files changed, 12 insertions(+), 22 deletions(-) I was actually looking for arch/x86/xen/enlighten.c patch but if you don't have it I can do it myself. > --- a/include/linux/cpuhotplug.h > +++ b/include/linux/cpuhotplug.h > @@ -22,6 +22,7 @@ enum cpuhp_state { > CPUHP_SMPCFD_PREPARE, > CPUHP_RELAY_PREPARE, > CPUHP_SLAB_PREPARE, > + CPUHP_XEN_EV_PREPEARE, Misspelled PREPARE. -boris