Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4302978iog; Tue, 28 Jun 2022 13:18:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t9IJfKMEZNKsWK1eG0urzjoEKqGETc/BhQQZ95fc+ghqtaJPAkuhrLIApSFvd86hi1Nlrf X-Received: by 2002:a05:6402:d0a:b0:437:66ca:c211 with SMTP id eb10-20020a0564020d0a00b0043766cac211mr26019619edb.29.1656447509330; Tue, 28 Jun 2022 13:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656447509; cv=none; d=google.com; s=arc-20160816; b=MOrN9jcCyYF2SwOV1eTDrz4UCqYz7KXoTTVZPoj1SxCJesEaFDG44tltW7ZwuvF0Ez 4AWuHOinLY60qT15YNspaSN+Koq9JUKJVbVxw1ZeE/DeYBM4DxDh8jiWoOOF9FhtDrNZ DliuJjYY1NvBqiyQGTBbafOYKICayUzpZAd5SuO4CLgiJqO0dvOh9I4mDafmH9npdbK9 8aF3OAs4IFBVebhpYXeqh9Spm2SoTvvhhAiV5dkqbShpPms2zvgiSk+z+XFjLMPpKaRR 0QtRgvxf8xg256cbttcsync8mfrQA6+vTyL6yNqXudxB18RUxGa1sgiuBfATFi/f65oX pGVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:dkim-signature; bh=yP7z++hmLdln35/PWmu6kJvToesBwvqVRLcqwtfTqHw=; b=CaHjsS/vtVvKHR0ZzsS/EC2kovsjc6ydZiXwH6rOyV2tj0x79lk0DXFpDiQUAztIu7 OZvrbexjiW/CN87YT4/6Rc066y75n2n6HGj1mXIqm75TxdxAXbwO9bKLEZsbfInwP71U /pdpbulHXOfLqtuDK+Y8n3EejML0I8ibSkXcVI3P+iD/aXAs0aTdOjfliKF53a8ljBlu tuJUUj8d/mXrBYbFnG8g3NkljYGo1xgO3ovNdP7WIHQX1EdJvu121iL+7VhorAvOazeh Cu8AUW3TWGdDXyhn2nShFsCdZLub0gbBvyAQfGmD9eT5BAryzWD/qp8Y3XOnqS/PCKn3 L7Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Wf4kJNvU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hw8-20020a170907a0c800b007269e67e7ffsi9940384ejc.544.2022.06.28.13.18.03; Tue, 28 Jun 2022 13:18:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Wf4kJNvU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231592AbiF1UQI (ORCPT + 99 others); Tue, 28 Jun 2022 16:16:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230500AbiF1UPf (ORCPT ); Tue, 28 Jun 2022 16:15:35 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F7DF248E3; Tue, 28 Jun 2022 13:11:47 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id i18so24222433lfu.8; Tue, 28 Jun 2022 13:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yP7z++hmLdln35/PWmu6kJvToesBwvqVRLcqwtfTqHw=; b=Wf4kJNvUbmGXAp0NKucvsRru3Al5eajFw/oZCCKXVRRSqAQeeg8pU5Ege0VPhodaH7 IEvU3zGwXrbw+cRkIIQcjHHVhS8kZoOxWWZkL3cJEM0QeyptAEr7JYrzzIseoD7tWwNx GwEWmjo8AA9qQAOthsc9dxhRBtotQ5CWSpAy4Z5KA4HJNAOLWvmdl/DBy+mLSpTuwguG nXhqsIWc0WAhnJEKWESan3ugOFaug8LyIgmFKNvWHvMWfvOG2TncTre7680CDJF/DzZs wADgKv0PoqodHkVCeWuh9jF85+a3yot3LdR+4xBpltsfJhTaVVjqHbtImVNB8Digj3+w J20g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=yP7z++hmLdln35/PWmu6kJvToesBwvqVRLcqwtfTqHw=; b=4UVV9UFKDlF281gjmd9p4yoI8Tgz3SjoOxvsm78sh0ofi12zH1cF9eJulF430d8ceE j6lVukb4OcJPfcS4hcVD78Mw6u4c5sPjnWF6+RHhZPPTGvjeSUx+7g2jle5cjfp5shKO miyvt9psuiAJlimzgggbwnedjdHDjuTxqS4kEOT8cY1X4s2yG8hoJZV8cpQfnoLNZ1Et xbbffavW+U4wFTca2kYftT6XxfYKslaKUZ6iG+QIrKD2Pn8o6BxtgdkzJGAxDUrxXmms snbMPvesBFK8JlEOjWIO9ZTIvqoi0pcEDUssGoexvAHzPGX+v99nvDfw+Lqwi6Rg0qKM LWAA== X-Gm-Message-State: AJIora+ImrJOuZOdNMyM3r1lG0l1B/eYd7nEJx3/PkbwXBpmd23YAw2a kb0JCGbhTv9VimHZXUC4nFY= X-Received: by 2002:a05:6512:128f:b0:480:fd23:6647 with SMTP id u15-20020a056512128f00b00480fd236647mr13566368lfs.136.1656447105293; Tue, 28 Jun 2022 13:11:45 -0700 (PDT) Received: from pc638 ([155.137.26.201]) by smtp.gmail.com with ESMTPSA id v8-20020a05651203a800b0047f9fa2925csm2315627lfp.234.2022.06.28.13.11.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 13:11:44 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Tue, 28 Jun 2022 22:11:37 +0200 To: "Alex Xu (Hello71)" Cc: paulmck@kernel.org, alexander.deucher@amd.com, amd-gfx@lists.freedesktop.org, Arve =?utf-8?B?SGrDuG5uZXbDpWc=?= , Christian Brauner , christian.koenig@amd.com, Greg Kroah-Hartman , Hridya Valsaraju , "Jason A. Donenfeld" , Joel Fernandes , linux-kernel@vger.kernel.org, Martijn Coenen , rcu@vger.kernel.org, Suren Baghdasaryan , Todd Kjos , Theodore Ts'o , uladzislau.rezki@sony.com, urezki@gmail.com, wireguard@lists.zx2c4.com, Xinhui.Pan@amd.com Subject: Re: CONFIG_ANDROID (was: rcu_sched detected expedited stalls in amdgpu after suspend) Message-ID: References: <1656357116.rhe0mufk6a.none.ref@localhost> <1656357116.rhe0mufk6a.none@localhost> <20220627204139.GL1790663@paulmck-ThinkPad-P17-Gen-1> <1656379893.q9yb069erk.none@localhost> <20220628041252.GV1790663@paulmck-ThinkPad-P17-Gen-1> <1656421946.ic03168yc3.none@localhost> <20220628185437.GA1790663@paulmck-ThinkPad-P17-Gen-1> <1656443915.mdjoauhqe0.none@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1656443915.mdjoauhqe0.none@localhost> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Excerpts from Paul E. McKenney's message of June 28, 2022 2:54 pm: > > All you need to do to get the previous behavior is to add something like > > this to your defconfig file: > > > > CONFIG_RCU_EXP_CPU_STALL_TIMEOUT=21000 > > > > Any reason why this will not work for you? > > As far as I know, I do not require any particular RCU debugging features > intended for developers; as an individual user and distro maintainer, I > would like to select the option corresponding to "emit errors for > unexpected conditions which should be reported upstream", not "emit > debugging information for development purposes". > Sorry but we need to apply some assumption, i.e. to me the CONFIG_ANDROID indicates that a kernel runs on the Android wise device. When you enable this option on you specific box it is supposed that some Android related code are activated also on your device which may lead to some side effect. > > Therefore, I think 0 is a suitable setting for me and most ordinary > (not tightly controlled) distributions. My concern is that other users > and distro maintainers will also have confusion about what value to set > and whether the warnings are important, since the help text does not say > anything about Android, and "make oldconfig" does not indicate that the > default value is different for Android. > diff --git a/kernel/rcu/Kconfig.debug b/kernel/rcu/Kconfig.debug index 9b64e55d4f61..ced0d1f7c675 100644 --- a/kernel/rcu/Kconfig.debug +++ b/kernel/rcu/Kconfig.debug @@ -94,7 +94,8 @@ config RCU_EXP_CPU_STALL_TIMEOUT If the RCU grace period persists, additional CPU stall warnings are printed at more widely spaced intervals. A value of zero says to use the RCU_CPU_STALL_TIMEOUT value converted from - seconds to milliseconds. + seconds to milliseconds. If CONFIG_ANDROID is set for non-Android + platform and you unsure, set the RCU_EXP_CPU_STALL_TIMEOUT to zero. config RCU_TRACE bool "Enable tracing for RCU" Will it work for you? -- Uladzislau Rezki