Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1326742ybs; Mon, 25 May 2020 13:03:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziEHs0VSDNmkHfqR5joVE4m88uSBAw8LbA1hMWEAYlF3M7lNRvcUS2f/5ZaDxrY99SmvFp X-Received: by 2002:a17:906:4993:: with SMTP id p19mr21363040eju.67.1590437004194; Mon, 25 May 2020 13:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590437004; cv=none; d=google.com; s=arc-20160816; b=fnvb5m90x+ekFgQVCMLl6gGu7QkzOxK20/dfJBz/2t3b5R6oaRjKQzxiQzy2Sv1mGO huWwYgflukwUOfB22tQBKqA5MbrNbkQcbddU2EFbsqQMzQpQ4JAZ7WulHON+f1rI+Q0G HIbwXTbR7gjsT+AucgIk3osgEN0M5kICHE/6NOWpJyeeS5ERb0ihdYfEtwWW4FGzqECR UZHR3dIYJ/nYjKjPl1vtsUNGGUSySniCwMZDjz4NGGKP9f/muikca4op/JROV7bIyi9t 3jfifXRJ4hxZC84jVYystP3n2HrPIX5+oTBfAmJR7hiA01ktZICFRR3VydcjWe5KqP61 vERw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=sDmy5Xm2F2pY2KhwGXNcV6+J3j89es51xHtTpy+cA+A=; b=h+rdX1nkDLRRUHgpPIex4RJCSRhhdM12b2OsI6rYhgm2V6Ej1QYa//bHVYnxy6G9mg fZ/0Gygm6niKzt6FFIlAS91Bmz8/Mo5lSsUrq65cooa9LZUTqdjAvDdLVoCRHEkbm+sD vnSWzJZhp4WeSvNOzyhB8okcb1EDoUPavj6BgdxW4TYYFpvSRU5jYTWDULlwco0fa4Tl 5+N1/BZ1Rb20OK8uq6//uA6W6QXCIRY6mUXw2KzQFDDMNCrhjnNIRksj0Ms617V3r7UI CwIDJNLtE0E/iY3hsl8S68SKAt4MUTnB6EUc8qg8JfImkGPPGXYILfO/ctGmMqRIqG4p d9QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=EerNxe3s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d9si9701738ejb.393.2020.05.25.13.03.01; Mon, 25 May 2020 13:03:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=EerNxe3s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390974AbgEYOjT (ORCPT + 99 others); Mon, 25 May 2020 10:39:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390944AbgEYOjT (ORCPT ); Mon, 25 May 2020 10:39:19 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EF51C061A0E for ; Mon, 25 May 2020 07:39:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=sDmy5Xm2F2pY2KhwGXNcV6+J3j89es51xHtTpy+cA+A=; b=EerNxe3smaAc3YWerSP2Lw+Npr tFZ8sQaFtxsOb746sxudWvYOKBpBmZArB9MeYtZyCdI7JxOYogp1YFwif7kF+W6eubgzeaPlDYfZ7 mpuchARpKoY0U/x7lncesvfyIRe7TxxaR1mgsoLlp459I9SptO5dMVSiVZzaQU8PZPvFyrxvNBnJ+ 5/SJQNk2nO9Br7ajHJO+rCGLWC91fkjWpFEvebYohEYV5jIB3UQ082WzxdEDn4F0k/3uD4Fuk9+lP k7gAu3DiVqtBhknvniOaWGeNCpeTG/dkMyTQZfvl0dngm0Oqy7wVgO+CiGsSPJTZRqXHbXDRCPRP7 Q11KbcNQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jdEFq-000050-T9; Mon, 25 May 2020 14:39:03 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id F0E6B300B38; Mon, 25 May 2020 16:38:59 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D689D2389FE1F; Mon, 25 May 2020 16:38:59 +0200 (CEST) Date: Mon, 25 May 2020 16:38:59 +0200 From: Peter Zijlstra To: Frederic Weisbecker Cc: Qian Cai , "Paul E. McKenney" , Linux Kernel Mailing List , Thomas Gleixner , Michael Ellerman , linuxppc-dev , Borislav Petkov Subject: Re: Endless soft-lockups for compiling workload since next-20200519 Message-ID: <20200525143859.GX325280@hirez.programming.kicks-ass.net> References: <20200520125056.GC325280@hirez.programming.kicks-ass.net> <20200521004035.GA15455@lenoir> <20200521093938.GG325280@hirez.programming.kicks-ass.net> <20200521104937.GB325303@hirez.programming.kicks-ass.net> <20200521110027.GC325303@hirez.programming.kicks-ass.net> <20200521124113.GC15455@lenoir> <20200525132105.GW325280@hirez.programming.kicks-ass.net> <20200525140541.GA28923@lenoir> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200525140541.GA28923@lenoir> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 25, 2020 at 04:05:49PM +0200, Frederic Weisbecker wrote: > On Mon, May 25, 2020 at 03:21:05PM +0200, Peter Zijlstra wrote: > > @@ -2320,7 +2304,7 @@ static void ttwu_queue_remote(struct task_struct *p, int cpu, int wake_flags) > > > > if (llist_add(&p->wake_entry, &rq->wake_list)) { > > if (!set_nr_if_polling(rq->idle)) > > - smp_call_function_single_async(cpu, &rq->wake_csd); > > + smp_call_function_single_async(cpu, &p->wake_csd); > > else > > trace_sched_wake_idle_without_ipi(cpu); > > Ok that's of course very unlikely but could it be possible to have the > following: > > CPU 0 CPU 1 CPU 2 > ----- > > //Wake up A > ttwu_queue(TASK A, CPU 1) idle_loop { > ttwu_queue_pending { > .... > raw_spin_unlock_irqrestore(rq) > # VMEXIT (with IPI still pending) > //task A migrates here > wait_event(....) > //sleep > > //Wake up A > ttwu_queue(TASK A, CPU 2) { > //IPI on CPU 2 ignored > // due to csd->flags == CSD_LOCK > Right you are. Bah! More thinking....