Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2942235imw; Wed, 6 Jul 2022 14:33:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sNNQH8uCJwYgmtOyT0mFy/Rwk37zZ4mZ1pvGEcXrjH03hBTpoBNF7f2lvF+3UUTDs4gnd2 X-Received: by 2002:a17:902:e808:b0:16a:75be:2ba with SMTP id u8-20020a170902e80800b0016a75be02bamr49529872plg.85.1657143216249; Wed, 06 Jul 2022 14:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657143216; cv=none; d=google.com; s=arc-20160816; b=VlwNptxmJkEyMfARrGmHinCAb8lTsHhbqfK36ER6ILCbaOTIol4zw4MD7goZyKrzF/ nJaMFwid1g3N6MBAUtyF5c/lo5YMQiYN97TSIz6JZ5ofMixWCrCjAoma3n7t2mXggeaa kKEzYX9hQ0pEoJoZ0IgYEalS7Nn2ih4Uz1qp5SfjIr/f/OBTipfARmQL875ThulTV31N m+11midBEN9gBmIZlUBxI0eckkFqhtIUNrHIqpQ4SkPWu5kcBA0xdOWOLKuLOiIdCaR0 8X2tEj2+ayC2PoTskg8hAHhZgfih/z4ffBRRd4gJVeFo7Lh7imXnaWwkMQRRB1e/Ink+ eRfA== 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=aLvY/2pX0bhK9GQlYgVujMBqEBLULI/cgzAcdzB2j/8=; b=PRYZ2aa17MDfUV4IMxGqqQvB7qrCCb/9ByzDkUxlAEBGpyyVShHsesWiDXfJttoBuT 9xYkUtmcf5N1Z8DwqXD+Izg8dshrXVle9EearnkavGwQW1LE8g+VdmYprsDHzNDNJrro 6Uptm/8dRH4j4Rssot0exRZbKpZL/1lceOoXCv5rixScNIZwFg5vpkRZ38n/RioA8iIs zCRqpSK5GiVnZvjE41yF1GZ3S4MOGkzHNz+qIuCp/dH+VzHKKZL6V4JiB6matma0fcRz 1Dpm3MS0+6sqbSIkugJ9B8Psa1OaoxpQ3gxyYlR7GpXFw36xoBDr/KpiltATXeiIRvB+ ZmPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qurE6YFd; 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 l4-20020a170902f68400b0016bd8971c85si9994431plg.205.2022.07.06.14.33.19; Wed, 06 Jul 2022 14:33:36 -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=qurE6YFd; 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 S234201AbiGFUmG (ORCPT + 99 others); Wed, 6 Jul 2022 16:42:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233735AbiGFUmE (ORCPT ); Wed, 6 Jul 2022 16:42:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6C7424BCF; Wed, 6 Jul 2022 13:42:03 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 49422620F0; Wed, 6 Jul 2022 20:42:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DEDFC3411C; Wed, 6 Jul 2022 20:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657140122; bh=pe7a6K472B35Fk1ZLJZNNAu/QA2Cq/X9L9IX5KemqnU=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=qurE6YFdbVvNvVoeXgoZcqxGE70mjJwBH7VgzxFINrciQcq8BLjc+FeG4xNN93Pe2 H/LtYDggW0IcPgC2CZC0Lc8R17IIgPuXjBNeRVG1v5QQ+PYuYc/qyJ8Xbi4v8j/IjM iIc+nz4KDPB5AH9D+w8VV4qFYg7gJiQlww9o22b8B6QBTV897KH+gsuhmtqqG4xKfs cKe08VA1ykzmn54D2oNKC9IUT5tmylPHbG5InZ/V0KYLGOq0XW+ZLu+0x8apQs0mcg GFtEAkNGxEAszeaPzpBKxdcsmP1BgcwFmD1WHvMe1LUuzxgayYXPekA71qM6uFZn40 sY92334nGM1yQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 369B35C0F78; Wed, 6 Jul 2022 13:42:02 -0700 (PDT) Date: Wed, 6 Jul 2022 13:42:02 -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: <20220706204202.GJ1790663@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <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> <20220706175836.GI1790663@paulmck-ThinkPad-P17-Gen-1> 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 08:09:49PM +0200, Uladzislau Rezki wrote: > On Wed, Jul 06, 2022 at 10:58:36AM -0700, Paul E. McKenney wrote: > > 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. > > > Right. Or over boot parameter. So for us it is not a big issue :) Specifically rcupdate.rcu_exp_cpu_stall_timeout, for those just now tuning in. ;-) Thanx, Paul