Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2753862imw; Wed, 6 Jul 2022 11:08:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sACz40vXVprNlLVHcyfS8H96m9phSJsdu5Dzx4Ez41/5W+DyUZIVId21bspO813PEjNsy1 X-Received: by 2002:a17:903:1312:b0:16b:e369:5c1f with SMTP id iy18-20020a170903131200b0016be3695c1fmr17808101plb.43.1657130905236; Wed, 06 Jul 2022 11:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657130905; cv=none; d=google.com; s=arc-20160816; b=BjYSA6omgcjHsBpdqJZ2u+fOkSZkWeevKwgMgQE/lRqpWVHlgUiesXjaBgGtIpESJ+ km9bN+ZzrMGZ8o9H+TV308vX1s5wZ93neisWh79WygSADsr9AQ2Bt9Ye020i/St3Q/jd mRgimidyVd2MHwCJVaBkwGE3pjJovzvv/dyh4A3mjUWZUhU8CUYp4Xb3ZS3RCeWKbrIb 1+BRE1C5SKYmBC5+42btIHfbjxQzAJGnYfKggfCL7XHSiBOre58HF1tvklVYrjxT2MV9 O7uhSFTynUyK83Xy1xBLq+EtO0bWCiDAXrJ0oOEs6DauBhk/lIt0WulZlMIrYTSiQD+k p/cQ== 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-transfer-encoding :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=Fea0K9C8kbqVygyPSKp5LpUx+zO6YGMyTFLQnJk+AKE=; b=tJpQnckkUKXnkz4upkgKbwQQnxAWL5klgiEHAGd9CXVLBsb89/jmWf+yS7oipt9Wjw kNZuNc/fC0+ZxCh7WAMfkQaa3Uq+Rf+VBF5IfJ5co/Fe/unXKf3ipc1yMgGcVhdzaajl wCUDPQ9tFeK8yMBDHZdhkTK7wTys0AY2PZfYtQirshJhePdw+UVtNFS4kKfI2NQaIxFT sETJnQv8SVCQeGO/Y+hy8Lty49Fu9qW0SRSZf7ylAmO3O0UMNDBok1aQLPejawyrCPCk d242SRJ/h/PyhGAxWMZyWrX3GrU4SP2mmiRoDeB49fk0gvG/cGbYs+7ecYZmVV7vjKbY 6dGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=puo1g9Az; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x14-20020a170902ec8e00b00165d4cde165si4341546plg.27.2022.07.06.11.08.11; Wed, 06 Jul 2022 11:08:25 -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=@kernel.org header.s=k20201202 header.b=puo1g9Az; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234206AbiGFR6o (ORCPT + 99 others); Wed, 6 Jul 2022 13:58:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233338AbiGFR6m (ORCPT ); Wed, 6 Jul 2022 13:58:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 180821F2E3; Wed, 6 Jul 2022 10:58:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 96E98B81CE4; Wed, 6 Jul 2022 17:58:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BD24C3411C; Wed, 6 Jul 2022 17:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657130317; bh=h25aVeHEgkHaVPyaTQr5NxvSyXw5BSGKREwTzlwDrdI=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=puo1g9AzHSF2FmBYwXNs3dIOkZ8TEaRDawW6Pr+xvcVxPLtBfLMZMliI9LWQh9NIV 1OuRFJJxLGB2bbue4AE1urp81PylCCvJ+f8Er6QWRT+WHg98Ya+cs08AxiIggsE95k 1Uy3aqCA22UGDzNR792frvmHrovEHlF7LhhPUWtlgeQKKB1YEO+POwkL6I//qkYpm1 5VZPEpUmG3TnKoW7wzMFD5v/44rCe4AldKQOKiULNm8qNZZh2fymtcP1//jZvW+GIa FPqIEEuYvpsbrVN/qSyteauJRbituHTuRUuQB89E3myAtwvDQWsaq2DhkB+OLPueze WG/JTs7KMMvYg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id D58AA5C0F78; Wed, 6 Jul 2022 10:58:36 -0700 (PDT) Date: Wed, 6 Jul 2022 10:58:36 -0700 From: "Paul E. McKenney" To: Uladzislau Rezki Cc: Christian =?iso-8859-1?Q?K=F6nig?= , "Alex Xu (Hello71)" , wireguard@lists.zx2c4.com, "Jason A. Donenfeld" , Joel Fernandes , Greg Kroah-Hartman , Xinhui.Pan@amd.com, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Suren Baghdasaryan , rcu@vger.kernel.org, Hridya Valsaraju , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Theodore Ts'o , alexander.deucher@amd.com, Todd Kjos , uladzislau.rezki@sony.com, Martijn Coenen , Christian Brauner Subject: Re: CONFIG_ANDROID (was: rcu_sched detected expedited stalls in amdgpu after suspend) Message-ID: <20220706175836.GI1790663@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <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> <79c6ad70-47d9-47fe-4bb4-33fcf356dd37@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Wed, Jul 06, 2022 at 07:48:20PM +0200, Uladzislau Rezki wrote: > Hello. > > On Mon, Jul 04, 2022 at 01:30:50PM +0200, Christian K?nig wrote: > > Hi guys, > > > > Am 28.06.22 um 22:11 schrieb Uladzislau Rezki: > > > > 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? > > > > sorry for jumping in so later, I was on vacation for a week. > > > > Well when any RCU period is longer than 20ms and amdgpu in the backtrace my > > educated guess is that we messed up some timeout waiting for the hw. > > > > We usually do wait a few us, but it can be that somebody is waiting for ms > > instead. > > > > So there are some todos here as far as I can see and It would be helpful to > > get a cleaner backtrace if possible. > > > Actually CONFIG_ANDROID looks like is going to be removed, so the CONFIG_RCU_EXP_CPU_STALL_TIMEOUT > will not have any dependencies on the CONFIG_ANDROID anymore: > > https://lkml.org/lkml/2022/6/29/756 But you can set the RCU_EXP_CPU_STALL_TIMEOUT Kconfig option, if you wish. Setting this option to 20 will get you the behavior previously obtained by setting the now-defunct ANDROID Kconfig option. Thanx, Paul