Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5397109ima; Tue, 5 Feb 2019 11:03:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ85iOqcEIWU9h9pettQEjOhCEjcS7ZZE1FJsSXJhFdvTiOlGexHniCenO8xZ3lgQVfWYgT X-Received: by 2002:a63:1b58:: with SMTP id b24mr1003674pgm.247.1549393422036; Tue, 05 Feb 2019 11:03:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549393422; cv=none; d=google.com; s=arc-20160816; b=jZHqg7oQQNlCVT63lX5GWR1dSTnZyDetD8PEZcmZM08tGrP2PmfWmIv/tHnXcY+Wxy JId17jxO2Zjlcw2psVjOYgD5K2UIRrUGyx01i8JEKdKh42odfq7O8jYlrsWkPQxwh0eT sJsyrRD0+Ek6TA3UynX7VOYNqKHCOBTTbGJPZannh5m+PSUrIf817QQ3Aclk/4WIQFR8 jyhkBrKKH/pBcos54MXPydSRJmjC8by/lcKmiZNvhIcZ9W4I7sDiGr87gOSCbhHecGO0 PZQUu/4Pa/GT/u8xVIdNvSbRt4Qs1DvfqEDDtCCqpaHTjz/bQyw9FeOcHGjQdhWHqX+g pj9w== 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=Eyxl/CVGAeQWHmDghEt8s2Ek9CySbUvfooBFFiJq+Js=; b=HCmKdmq6LQMXi4uYjkP8DNm6pz4qEYTkT5/MaGwnGPz060wpsDn2xz9VwBzkHNxNcN pAG50kNQ/AIHcGeHLgEO+A+REQU0VJxjO5hv1VzYl/sfsYFqlYR5fu2uKahyJDT/nTja yB94v3CKBlfx9i9uYTggMMj/XHapljr+xChO5NWl9v0+6v+fjialDbW2p5H9nbjS1ZR3 MtIEo+C/0cz/SIOsMXomSFUGAXEKuwkg174UM5zz3qcSZtK35f8NRZheoYbMMYgA3Fuk ujsPSyPCsktJMV1YAmxjkmyugVU0yH129l22jAKaZQOPj5MkrV4E0xfyRtAQK2mn4PY2 fLvQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si3908778pll.271.2019.02.05.11.03.26; Tue, 05 Feb 2019 11:03:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727835AbfBES7S (ORCPT + 99 others); Tue, 5 Feb 2019 13:59:18 -0500 Received: from emh06.mail.saunalahti.fi ([62.142.5.116]:39052 "EHLO emh06.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727090AbfBES7S (ORCPT ); Tue, 5 Feb 2019 13:59:18 -0500 Received: from darkstar.musicnaut.iki.fi (85-76-69-76-nat.elisa-mobile.fi [85.76.69.76]) by emh06.mail.saunalahti.fi (Postfix) with ESMTP id 985E730150; Tue, 5 Feb 2019 20:59:14 +0200 (EET) Date: Tue, 5 Feb 2019 20:59:14 +0200 From: Aaro Koskinen To: Tom Li , "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: <20190205185914.GB16356@darkstar.musicnaut.iki.fi> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190205130559.GA12858@localhost.localdomain> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Feb 05, 2019 at 09:05:59PM +0800, Tom Li wrote: > On Tue, Feb 05, 2019 at 11:58:09AM +0200, Aaro Koskinen wrote: > > Can you try below fix? It works on my Loongson. > > Hello Aaro, thanks for your response. But in case you've missed > the original thread, please check it at: > > https://lkml.org/lkml/2018/11/13/857 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. > My problem is NOT about how to fix the problem on Loongson (or > x86): the patch in the original thread (only has one-line-of-code, > simply changes timing of cpufreq_core_init), or your patch, is > indeed working. But they are workarounds, the real issue is the race > condition in cpufreq. Looking at irq_work_sync(), I cannot think how it could work on UP machine with interrupts disabled. A.