Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3260061ybi; Tue, 2 Jul 2019 04:54:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwP+mQPP4uBopDiG6jKy8gACMeSICUkE660oO/S0+NUM4G425oC6pbPJkfytPb/HD3v0GXE X-Received: by 2002:a63:1d2:: with SMTP id 201mr30329477pgb.232.1562068445651; Tue, 02 Jul 2019 04:54:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562068445; cv=none; d=google.com; s=arc-20160816; b=cMkNby1Tpgh94iaS+qJ60ZwbKeJKFS8YYbsc3f2NiwhdG7S0zRy45K+tFzY2NTFZgy po6kxDSJWIqajWOBNLdxNbmBR2q7v34mT6Om5vu57Br1LL6UJYX57VeGZzbjdF7gcXw9 eCbpDtqyxLWjO+nQaWPeqohv9cReQKaKagIYZNhnJzGGC24K6nVkLaTKKkNdji8sfKrv g+I07+V0KZR4D6reG5vxlcDMe7yXZY+98PgPmCm4xyzUtl56AH7DQMtD9CRdR+GT3PUP mFEn53yosrcAm75P5SqbVzfKuMQIZnx1KYv0GCKQKWkBij9Sb0jxKQ/l2fD6KpLVpb3r CGCQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=G4KYhGZJ1XOPo/KEgtHo4F/8yTgECoCrsepvLRFVQy0=; b=lOHSpT8m74+jKBDn2k2TagSUZJAXgx5lBa/sCD3rqQW2UqCKEiV7hg+6h2HPw+XrS7 KNJYSo/TJoSGAAY3xEddmK21QbyohBY4F/HcjX1Q/lG7VWJV0lGFFP16b5nzkWSPK0uk VQ1U+579SzFXlb5Wlbo6LArzxXkoBI3K4KpQ6YQCZwW6eTgdnMuMFShfnWyYPd4QU5BQ +ks+hnHmk6ys3h7NDYTSafEX2Wdei0v9eigGb6DHqY8rWGx1ZkMVPZ/4Sfdkw5GI7Ex1 i7kA6IGrp3+ba4CgUMKYebjUxI91fRaKMr7w9ifVb63uiyQBGCEVyQj/bCPR2vb58nIZ n+uA== 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 i3si12121420plt.306.2019.07.02.04.53.51; Tue, 02 Jul 2019 04:54:05 -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 S1726598AbfGBLxb convert rfc822-to-8bit (ORCPT + 99 others); Tue, 2 Jul 2019 07:53:31 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:45586 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbfGBLxb (ORCPT ); Tue, 2 Jul 2019 07:53:31 -0400 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1hiHLd-0008Gs-DE; Tue, 02 Jul 2019 13:53:21 +0200 Date: Tue, 2 Jul 2019 13:53:21 +0200 From: Sebastian Andrzej Siewior To: Corey Minyard Cc: Kurt Kanzenbach , Steven Rostedt , Corey Minyard , linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , tglx@linutronix.de Subject: Re: [PATCH RT v2] Fix a lockup in wait_for_completion() and friends Message-ID: <20190702115321.a7wtdovhz6hn7px2@linutronix.de> References: <20190628214903.6f92a9ea@oasis.local.home> <20190701190949.GB4336@minyard.net> <20190701161840.1a53c9e4@gandalf.local.home> <20190701204325.GD5041@minyard.net> <20190701170602.2fdb35c2@gandalf.local.home> <20190701171333.37cc0567@gandalf.local.home> <20190701172825.7d861e85@gandalf.local.home> <20190702070418.h6ynkkgk6v6s3aii@linutronix.de> <20190702083536.vt346ysqmq6q23iz@linutronix.de> <20190702114028.GE5041@minyard.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20190702114028.GE5041@minyard.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-02 06:40:28 [-0500], Corey Minyard wrote: > On Tue, Jul 02, 2019 at 10:35:36AM +0200, Sebastian Andrzej Siewior wrote: > > On 2019-07-02 09:04:18 [+0200], Kurt Kanzenbach wrote: > > > > In fact, my system doesn't boot with this commit in 5.0-rt. > > > > > > > > If I revert 90e1b18eba2ae4a729 ("swait: Delete the task from after a > > > > wakeup occured") the machine boots again. > > > > > > > > Sebastian, I think that's a bad commit, please revert it. > > > > > > I'm having the same problem on a Cyclone V based ARM board. Reverting > > > this commit solves the boot issue for me as well. > > > > Okay. So the original Corey fix as in v5.0.14-rt9 works for everyone. > > Peter's version as I picked it up for v5.0.21-rt14 is causing problems > > for two persons now. > > > > I'm leaning towards reverting it back to old version for now… > > Just to avoid confusion... it wasn't my patch 1921ea799b7dc56 > (sched/completion: Fix a lockup in wait_for_completion()) that caused > the issue, nor was it Peter's version of it. Instead, it was the patch > mentioned above, 90e1b18eba2ae4a729 ("swait: Delete the task from after a > wakeup occured"), which came from someone else. I can verify by visual > inspection that that patch is broken and it should definitely be removed. > Just don't want someone to be confused and remove the wrong patch. The commit 90e1b18eba2ae4a729 is delta of reverting your patch and adding Peter's patch instead. If you look into the queue https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/diff/patches/swait-Delete-the-task-from-after-a-wakeup-occured.patch?h=linux-5.0.y-rt-patches&id=8ef6644ae2ac8fc18f157c3deb70fa9acb95a486 is what Peter suggested in the thread and this https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/diff/patches/sched-completion-Fix-a-lockup-in-wait_for_completion.patch?h=linux-5.0.y-rt-patches&id=8ef6644ae2ac8fc18f157c3deb70fa9acb95a486 is the removal. > -corey Sebastian