Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1096603ybs; Mon, 25 May 2020 07:08:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkIyulaKlpD+YhTX3zQYZnQ+V/7o7a3P9ef/XChUGLuDBtHbGE9+KEe75+CWmLC9elE0ks X-Received: by 2002:a17:906:148f:: with SMTP id x15mr18390308ejc.85.1590415697479; Mon, 25 May 2020 07:08:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590415697; cv=none; d=google.com; s=arc-20160816; b=lqS2ysWH3I9ejtKvGImNiiRjqn4ncuvSDZ1fVpoDDcc8Ye2KRqXu61QFnXIva7yf+R y4dUYgOBnyjyE2fBpUxTZI6hw0z2R9BPPJRarDi0LaYqnytokCuoLoC33EDPlIwlZL81 EPwrbNv/pSx+ARHyPVvSt+FJ32GYMNHz4WMDOjtMcCBTBhGJDS18OOnE1/qFMY4lO1QM 32j2Mga20378XhahvUw3qMZfbi7FSBTcuPwPL4TA5YyuQ7dYsry9iDHrH7s+AC7AMQBe Je4bEwotFj0pHhilB2o8OWYdd6PR7J2NaOXKqj4tVUy0R3K9zM+JnZ4bjgL3UjtdttmM v3dQ== 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:dkim-signature; bh=8kBUM1gbnQZMgNVGdDg7q1JwWLIaqxcQUP3zyJY/daM=; b=gsMhtT57uOyqDgyoQzhqUfhohriJE5bnr21zgeXnSD44Ho1eMCY4XhFMCsn9OZC/zi wq5GrAnUziQEPZlORMLoixfJ2b1lOozWNXxLi3S6dwMnCmEly2JcwLPcWJYg3crVa1d5 waoaNB4gV+3XENys4+21XpW9i0udP6trGJEu1oaPk+zOkFiS9Q4sYbfkG4cqRCOj/R4f Z9YH3ZXx5NJVcPQvuDIoBxBw9HSTAxVMhnXFtsK6BTteuT0/4OFL3nnW8W6eSQx3JuSM b6+iBXTync4LtenUyve1ZDlUrmfl0eTWxUJqsuDj1Mibnm52HsfZ93I56Y9Y5rnok1mN BTwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=djIhABcz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f22si8654209edx.79.2020.05.25.07.07.52; Mon, 25 May 2020 07:08:17 -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=pass header.i=@kernel.org header.s=default header.b=djIhABcz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390827AbgEYOFx (ORCPT + 99 others); Mon, 25 May 2020 10:05:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:56194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388862AbgEYOFw (ORCPT ); Mon, 25 May 2020 10:05:52 -0400 Received: from localhost (lfbn-ncy-1-985-231.w90-101.abo.wanadoo.fr [90.101.63.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BC9EA2078B; Mon, 25 May 2020 14:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590415552; bh=4VZk7RGn/PZBtXmEcizHf6YuFu228DNJ0CvSOZvd4BE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=djIhABcz5/fRiDGNcdUszfyq0up8K+3x3CkQ/nelt1OocgB6msuJwEizqeMiNWURe hxbFIRagK4FJ90O4P8/mnGAm5naoZrRqw0YMNh7o4fvMR8aVumSLb+wDTQ8PaYKcn9 qAn7oLs40TIYavPqgVIiInlrv+PaZpuGPHjV7n34= Date: Mon, 25 May 2020 16:05:49 +0200 From: Frederic Weisbecker To: Peter Zijlstra 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: <20200525140541.GA28923@lenoir> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200525132105.GW325280@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.9.4 (2018-02-28) 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 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