Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp76306ima; Tue, 5 Feb 2019 18:20:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IanMefG/ysvYk1TGXg7P6GVcztUTCCHXga87bUjaahUGAp1RYWxZjh+RXX8j6a+Y8VdsQ22 X-Received: by 2002:a65:41c2:: with SMTP id b2mr2515053pgq.67.1549419636765; Tue, 05 Feb 2019 18:20:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549419636; cv=none; d=google.com; s=arc-20160816; b=v9miR+gh61Lh4bU3cYMKQPqs/5U2as3D3bx/QnkO16szYzIFaFZG09A/cBGhqOuu6I 7rXCVbaGz+61wdwWWCB9N0IwkBnV+UoX7oGwZ4y9lqIhULVYbcoFDr89lG07GYPnKlR3 kGqry+z+RPhT0z5mgh6NcMF2oQ1scwv3el282N+t7VRvY3vUGoOfRYRUHuPMyziZNTVb Kj/LGfGOXqGR+gUqqY2VxUzKhQ8ZAIY7BIAx0k8oDVf5OgbU7GpYV29W8CvFPGxUlliF 9XCUifpG+u2yU6MdymwkCNe6DUp1/Vj0obW6A/gzeT1icKdFYnGt0ZhLEafzAeAyFW8r AbuQ== 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=us/uVXMbcG3Sl1RfZIkdB9lIhu1dpiwYxzXRwDuvjLc=; b=SL7UszkTzLMNxFFrKSSPM+gGUiKjOAYuS0MLJUXUFSsJ1U3VvdqtTt+u9d3/4Rbkul SckeUYbu7puuOhlpALKZiFqtFs+q73vZmvwSUOZOgzm2NgIu2EWV5cop9JlkkZqBlt77 GZBEpwPW3DC76fkNE0hNSz2aakTySuNMzTkJKTucDoLf3P0iT0/Fnls1ULVCQcZvY0bm ZoiNIUbnObEJ0mIVETdngzUDzS9s4IWyZ6oZFxG5aib91O62XFBWGOnTGK7qMYxm53IP IoY89wkyIDn6+ce/+nPn2X2J6HGMy/ZKqPgZWY0NeUyHGEoJ2YJWvGrzW5QeOzb2n+O3 9hCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tomli.me header.s=1490979754 header.b=OLa7wtqD; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tomli.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o9si4776137pfe.63.2019.02.05.18.20.21; Tue, 05 Feb 2019 18:20:36 -0800 (PST) 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; dkim=pass header.i=@tomli.me header.s=1490979754 header.b=OLa7wtqD; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tomli.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728199AbfBFBWj (ORCPT + 99 others); Tue, 5 Feb 2019 20:22:39 -0500 Received: from tomli.me ([153.92.126.73]:49470 "EHLO tomli.me" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726528AbfBFBWj (ORCPT ); Tue, 5 Feb 2019 20:22:39 -0500 Received: from tomli.me (localhost [127.0.0.1]) by tomli.me (OpenSMTPD) with ESMTP id 20be58de; Wed, 6 Feb 2019 01:22:36 +0000 (UTC) X-HELO: x220 Authentication-Results: tomli.me; auth=pass (login) smtp.auth=tomli; iprev=pass Received: from tor27.quintex.com (HELO x220) (199.249.230.80) by tomli.me (qpsmtpd/0.95) with ESMTPSA (DHE-RSA-CHACHA20-POLY1305 encrypted); Wed, 06 Feb 2019 01:22:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tomli.me; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:in-reply-to; s=1490979754; bh=JjZsmmcr6qWH0XRoq5LSjyhKAP6lnbsK6fZ5OoZdsNM=; b=OLa7wtqDiUIkAQ1bj2hQGygLyV3yfM3iwzScG0rVa9DIbanMlyNiOEF8KQPWrKUX/z035RJGIbMRObROUax3gUKVoaYnt+3+3TfmoOf+oGKD1lXOd8J7dwvfZHobcQXHSBe/x9mVCg99PjVVb7z+Nokm1EfO3ib96r3SSLVjzkr8zfWLPiI/6Sm2U78NObXSlz2MCTf5LFwT+aijNw+l+B70B/pVcsRmtw0/LnCvKENy6u+Bkzk7oeHft3gqS4rJZZ25+EgKcUV8Mrl6ra/BR845qRm0vQrj2+gj/kC2xLkoAxhxof0umpjX0ItW1vdXIZnVw/BsTWk5DN5PxvIjyA== Date: Wed, 6 Feb 2019 09:22:14 +0800 From: tomli@tomli.me To: Aaro Koskinen , "Paul E. McKenney" , "Rafael J. Wysocki" , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Cc: ak@linux.intel.com, bp@alien8.de, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@redhat.com, rjw@rjwysocki.net, viresh.kumar@linaro.org, linux-mips@vger.kernel.org Subject: Re: [REGRESSION 4.20-rc1] 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds") Message-ID: <20190206012214.GA25642@x220> References: <20181113135453.GW9144@intel.com> <20181113151037.GG4170@linux.ibm.com> <20181114202013.GA27603@linux.ibm.com> <20181126220122.GA6345@linux.ibm.com> <20190205050700.GA31571@localhost.localdomain> <20190205095809.GA16356@darkstar.musicnaut.iki.fi> <20190205130559.GA12858@localhost.localdomain> <20190205185914.GB16356@darkstar.musicnaut.iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190205185914.GB16356@darkstar.musicnaut.iki.fi> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > OK, thanks. This looks slightly different from the Loongson problem: > > - In Loongson, we don't get stuck in RCU, but in > cpufreq_dbs_governor_stop -> irq_work_sync(). > > - I run non-preemptible kernel, and my system still gets stuck. > > What is common is that it's UP with i8259 PIC. > > A. Now it's an interesting case. Because on my machine, the problem I encountered seems to be the identical one of the original thread, disabling preempting can effectively solve the lockup. Also, my issue is not only occuring on 4.20-rc1, but also on earlier kernels, with a lower probability. But on your machine, you have another non-identical, but closely- related issue. It seems the timing-dependent lockup of i8259 PIC can be triggered in different ways. The conclusion is clear though, there's a real lockup condition in i8259 PIC driver, and it's causing real issues. Aaro, have you tried submitting your i8259 patch to the mainline? Despite your concerns about its underlying cause, I think a fix should be submitted. If there are no objections from the maintainers, I suggest submitting it to the mainline upstream, and send it to linux-stable, requesting it to be applied on 3.16, 4.4, 4.9, 4.14, 4.19, 4.20 stable branches. If you are busy, I can help submitting. Tom Li