From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932672AbcBXEqO (ORCPT ); Tue, 23 Feb 2016 23:46:14 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:35215 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932171AbcBXEpx (ORCPT ); Tue, 23 Feb 2016 23:45:53 -0500 Subject: Re: Interesting csd deadlock on ARC To: Noam Camus , Peter Zijlstra References: <56C6BA82.1060909@synopsys.com> <56CBEC66.2030401@synopsys.com> <20160223095824.GH6356@twins.programming.kicks-ass.net> <56CC32A3.5020804@synopsys.com> <20160223103950.GJ6356@twins.programming.kicks-ass.net> CC: "linux-arch@vger.kernel.org" , Marc Zyngier , Frederic Weisbecker , lkml , arcml From: Vineet Gupta Message-ID: <56CD356E.3010704@synopsys.com> Date: Wed, 24 Feb 2016 10:15:34 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.12.197.208] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 23 February 2016 04:28 PM, Noam Camus wrote: >> From: Peter Zijlstra [mailto:peterz@infradead.org] >> Sent: Tuesday, February 23, 2016 12:40 PM > >> The only requirement for irq_work is that it runs after the NMI completes and runs from regular IRQ context. >There are no strict interrupt priority requirements, only that it happens. > > We here already use self IPI and irq_work on ARC (with no NMI concerns). > Please see patch at: > https://github.com/EZchip/linux/commit/e42556738e610295f917c79dae166373cd11de88 So this relies on 2nd level intc providing the IPI. For UP we still need the software triggered interrupt provided by core intc.