Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2014711ybi; Mon, 1 Jul 2019 04:41:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxW3GSGzdPAT4kgO6gQhoGLPxfl0dycJ8Abt7a1qt0lhYqMu6rXrnvcUwrTHK/3OCud0doP X-Received: by 2002:a63:f501:: with SMTP id w1mr6736841pgh.444.1561981299812; Mon, 01 Jul 2019 04:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561981299; cv=none; d=google.com; s=arc-20160816; b=i6Bss6NeHNWeD1qHjNxmeCRJ5PHyeD/M2KS2tExvnMttewAYeVzD0xZHN8TJLa4gGJ CVFSVU49z5ZYD5GLIXf7GAbcGVntXmi3t5aQAzltkYwcCUvjA064f4f7qTYKZQGod/0d rtleSes80ixsgSRfvly5Y4GTLtx9yKVnhe3mu/LVtmOQ3yo77uBB/xLFyYyeTGTbYEdU zemW0xWi5AEkF3CFLJ2mpHnuPaMew48vSfmcONFJ+BoQlmDcD8WMqDNuvYEY69VpId1K dMrVLQ/qIa5k5sTEzUqreJSxxYfpvbvhVTAEY3I84TiHUwFrzSFFoLdrj+7ZhaUXqdmr 4zrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/YbOmDAxzKBUUTE3bwSAsDLnPgMNPrq2i2UgKYvd+lc=; b=O/vEHvehm0GauTWzCtDx3gE/nYpbPsZ43qS8/mx996ZeDezfh2nx8YQ09TpcWU3B4B x6xzXD18Ag7eqyzeEqM3YsgAD+5TGaryZPNbPpEHmvq8CfbA9J0IngDbc1TsT5vqa+47 ysmpgR5T55ZjeUqvVZp8+bh+ysU5eeocBvtyQ9JibXhCMZoFgwF6Q5x86ZuDoMRjppRJ FGANq7B7lncsCeo1JILBQ1zY0zt04VMfobvTQ/SoiosigPl3widRXqMj9gY5PRGoIGNp 3ezHKX3jJwtjQrk82MOyCqsg5M8GaaGxOcQFzfi8XQaC1Zg6bkvpRSTZAGwm9Zu2ouis dBUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si10007066pgo.463.2019.07.01.04.41.24; Mon, 01 Jul 2019 04:41:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728860AbfGAKYv (ORCPT + 99 others); Mon, 1 Jul 2019 06:24:51 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:40098 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbfGAKYv (ORCPT ); Mon, 1 Jul 2019 06:24:51 -0400 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1hhtUI-0002kx-SR; Mon, 01 Jul 2019 12:24:43 +0200 Date: Mon, 1 Jul 2019 12:24:42 +0200 From: Sebastian Andrzej Siewior To: Peter Zijlstra Cc: "Paul E. McKenney" , Scott Wood , Joel Fernandes , Steven Rostedt , rcu , LKML , Thomas Gleixner , Ingo Molnar , Josh Triplett , Mathieu Desnoyers , Lai Jiangshan Subject: Re: [RFC] Deadlock via recursive wakeup via RCU with threadirqs Message-ID: <20190701102442.35grdpcsbrwyyaco@linutronix.de> References: <20190627173831.GW26519@linux.ibm.com> <20190627181638.GA209455@google.com> <20190627184107.GA26519@linux.ibm.com> <13761fee4b71cc004ad0d6709875ce917ff28fce.camel@redhat.com> <20190627203612.GD26519@linux.ibm.com> <20190628141522.GF3402@hirez.programming.kicks-ass.net> <20190628155404.GV26519@linux.ibm.com> <20190628160408.GH32547@worktop.programming.kicks-ass.net> <20190628172056.GW26519@linux.ibm.com> <20190701094215.GR3402@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190701094215.GR3402@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-07-01 11:42:15 [+0200], Peter Zijlstra wrote: > I'm not sure if smp_send_reschedule() can be used as self-IPI, some > hardware doesn't particularly like that IIRC. That is, hardware might > only have interfaces to IPI _other_ CPUs, but not self. > > The normal scheduler code takes care to not call smp_send_reschedule() > to self. and irq_work: 471ba0e686cb1 ("irq_work: Do not raise an IPI when queueing work on the local CPU") Sebastian