Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4059399iog; Tue, 28 Jun 2022 08:12:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s8UOV4C0hBLVoWlayaInz0zs7/ZFID8qOMKBenIYyG47ptsSSdlLFBvhBWnYZDczi9I1Of X-Received: by 2002:a17:902:6b8c:b0:168:fee5:884 with SMTP id p12-20020a1709026b8c00b00168fee50884mr5534444plk.105.1656429148820; Tue, 28 Jun 2022 08:12:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656429148; cv=none; d=google.com; s=arc-20160816; b=UirPkR6XnARMHUPHovW40+P9I6h6TfMcQwJkuPMqiD8OzDkqkSgp7ftRJ31Wfz4DNn ykSvtfoa5u9hl9Ij9CBsWOFPlcpnbRkEOBxJg62UITJb4Tjs6lVBglRFY2AM9PJxkLTV NG56w/OtWDH5CI6E9M3cw5pzF7Imo1RjVeJ/cTukpZnN+kJMy2itpWdEm9+KrQVmTXO8 KOMxVhF0yqI2TDt2VXh7E//Wb9ryN9k0TcCCUv3jmrn0/yfW787cVt3GPyZTzmC8fjGt gG4hMCGu+DKpHUGFY9RH2XYKGutPfg3X/eXiJzHtg4fM0sVSqQb6MMBIpRyP4Uc1mJT4 vNBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id :mime-version:in-reply-to:references:cc:to:subject:from:date :dkim-signature; bh=mJdxWi+vRg5mX2ammRonQra2G8KMb7ygMvIk+e3y9ss=; b=ROC1plNT94ZNoXhS7WIO81oOQl1rKWQ5rVnwVU9k8cslUF5NIRxrax5MEJ2QMLGer2 cu7yMQJ74TFezYUcRuR3WNcLpifqRExgBvTy1Z4y8kSROd9VWFwpX6bw3EnTokdPDMHl lh35YIRDlujGq9L56MkRRcVd3pTZQA5kvbErzSv1V/s7zhexWYOMSZ6VbF9kig6bEfDg xAEs2ax02poBnvWLTsLi1r3XTPw9MqPgGhc8KvuhtZ4xHvtMpXqHd1ePSoBhP7o/0INV iygZbADPUcZawuhFHxC9FRI/UxAnmqo99K0s51zsMb80roHbb+TWb19ycDrvZXg3ElO6 zNjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=oL0go7DA; 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=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nl2-20020a17090b384200b001e68b44501esi264485pjb.5.2022.06.28.08.11.57; Tue, 28 Jun 2022 08:12:28 -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=@yahoo.ca header.s=s2048 header.b=oL0go7DA; 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=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346329AbiF1PC5 (ORCPT + 99 others); Tue, 28 Jun 2022 11:02:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347681AbiF1PCv (ORCPT ); Tue, 28 Jun 2022 11:02:51 -0400 Received: from sonic306-20.consmr.mail.gq1.yahoo.com (sonic306-20.consmr.mail.gq1.yahoo.com [98.137.68.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C91B533E3C for ; Tue, 28 Jun 2022 08:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1656428570; bh=mJdxWi+vRg5mX2ammRonQra2G8KMb7ygMvIk+e3y9ss=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From:Subject:Reply-To; b=oL0go7DAuaFwQBzxvAj93d5o/SRTjNurU3QevVXsSEJxvo7Naj/0J+rNSfMdOvVLsbXQIJTgLgUCMJlU0HpKFx6gGK9IgnHONv6IJij+vdQjV6ecfmmbLwOdIjumy+0fQbsK0oG9uoW+5C7HxIjlr3BK4byXi+oNWczQp9HFN883jCjR0EzSS1D23qiEoH3byuhhARCoFcBPywWTnQBv0gzW2LVDgM0OIVqLSNFpWDvjoqS2lFSIurwF/S+22aH7CpNFfNS1vHakRqRd2/HI9C46cobOKtf9FPhbbw1Zm5jyeYnxIE2nSmowLa/xjdkZfrTXQXfg2yLIXIjWtynpSA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1656428570; bh=jCd3itgRrfW+cbzZVwm+EqZW7GYNioHLqwThqMhCf88=; h=X-Sonic-MF:Date:From:Subject:To:From:Subject; b=Kyb1zFacnb78pUvFy50wTca1sb81DaB6HtI8PgG8iONE6NYQmjP7wHrP2HzY373G+jENj7C3h5RZPwJkPsYcWWd6Db/PDZMWGY8RBEROJazlTHT4SWWIBTlA0aYNrASoT0OP8xOJ6S8DMftdpzq99pT1kMAs65hL9rSRlKiuThVN84a1Kj8A2FybZZSrlgcLDY3bmHae3cAq6w9Vtn8wzSbyt97KbwuS+xfwj2zh8nK8Xm3Dzie84jYbgbk7hI9sK0eFajuwy4SxSIbPm3bGypsRflNTQY4pOoL5XXb/b6S0CS6Zxm5IeQKON/mBxBnenpvE0tMmSjFFxY6E31Dq6g== X-YMail-OSG: 8l3EnbgVM1l8CCCIXzJxNxhAKM2TpC2vXdUg0UqinPjPg6O0qI8zEPIiarA5C.6 sqK__HFKUxJT7zG1JF6uGyon9oNZeN.0NMaSIEV7ygGfCt_44w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wfOP.02 tSC8x7PbjGtYZGorfeXQT4YvWYonzHcgAT3BMHwcc9CCzpVoiuj6k X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Tue, 28 Jun 2022 15:02:50 +0000 Received: by hermes--production-ne1-7459d5c5c9-f2z7w (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f5e4bf9d72858dcfc86edb9d0d0ee251; Tue, 28 Jun 2022 15:02:44 +0000 (UTC) Date: Tue, 28 Jun 2022 11:02:40 -0400 From: "Alex Xu (Hello71)" Subject: CONFIG_ANDROID (was: rcu_sched detected expedited stalls in amdgpu after suspend) To: paulmck@kernel.org, rcu@vger.kernel.org, urezki@gmail.com, uladzislau.rezki@sony.com, Greg Kroah-Hartman , Arve =?iso-8859-1?b?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Hridya Valsaraju , Suren Baghdasaryan , linux-kernel@vger.kernel.org, "Jason A. Donenfeld" , wireguard@lists.zx2c4.com, Theodore Ts'o Cc: alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, amd-gfx@lists.freedesktop.org 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> In-Reply-To: <20220628041252.GV1790663@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Message-Id: <1656421946.ic03168yc3.none@localhost> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.20280 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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 12:12 am: > On Mon, Jun 27, 2022 at 09:50:53PM -0400, Alex Xu (Hello71) wrote: >> Ah, I see. I have selected the default value for=20 >> CONFIG_RCU_EXP_CPU_STALL_TIMEOUT, but that is 20 if ANDROID. I am not=20 >> using Android; I'm not sure there exist Android devices with AMD GPUs.=20 >> However, I have set CONFIG_ANDROID=3Dy in order to use=20 >> ANDROID_BINDER_IPC=3Dm for emulation. >>=20 >> In general, I think CONFIG_ANDROID is not a reliable method for=20 >> detecting if the kernel is for an Android device; for example, Fedora=20 >> sets CONFIG_ANDROID, but (AFAIK) its kernel is not intended for use with= =20 >> Android userspace. >>=20 >> On the other hand, it's not clear to me why the value 20 should be for=20 >> Android only anyways. If, as you say in=20 >> https://lore.kernel.org/lkml/20220216195508.GM4285@paulmck-ThinkPad-P17-= Gen-1/, >> it is related to the size of the system, perhaps some other heuristic=20 >> would be more appropriate. >=20 > It is related to the fact that quite a few Android guys want these > 20-millisecond short-timeout expedited RCU CPU stall warnings, but no one > else does. Not yet anyway. >=20 > And let's face it, the intent and purpose of CONFIG_ANDROID=3Dy is extrem= ely > straightforward and unmistakeable. So perhaps people not running Android > devices but wanting a little bit of the Android functionality should do > something other than setting CONFIG_ANDROID=3Dy in their .config files. = Me, > I am surprised that it took this long for something like this to bite you= . >=20 > But just out of curiosity, what would you suggest instead? Both Debian and Fedora set CONFIG_ANDROID, specifically for binder. If=20 major distro vendors are consistently making this "mistake", then=20 perhaps the problem is elsewhere. In my own opinion, assuming that binderfs means Android vendor is not a=20 good assumption. The ANDROID help says: > Enable support for various drivers needed on the Android platform It doesn't say "Enable only if building an Android device", or "Enable=20 only if you are Google". Isn't the traditional Linux philosophy a=20 collection of pieces to be assembled, without gratuitous hidden=20 dependencies? For example, [0] removes the unnecessary Android=20 dependency, it doesn't block the whole thing with "depends on ANDROID". It seems to me that the proper way to set some configuration for Android=20 kernels is or should be to ask the Android kernel config maintainers,=20 not to set it based on an upstream kernel option. There is, after all,=20 no CONFIG_FEDORA or CONFIG_UBUNTU or CONFIG_HANNAH_MONTANA. WireGuard and random also use CONFIG_ANDROID in a similar "proxy" way as=20 rcu, there to see if suspends are "frequent". This seems dubious for the=20 same reasons. I wonder if it might be time to retire CONFIG_ANDROID: the only=20 remaining driver covered is binder, which originates from Android but=20 is no longer used exclusively on Android systems. Like ufs-qcom, binder=20 is no longer used exclusively on Android devices; it is also used for=20 Android device emulators, which might be used on Android-like mobile=20 devices, or might not. My understanding is that both Android and upstream kernel developers=20 intend to add no more Android-specific drivers, so binder should be the=20 only one covered for the foreseeable future. > For that matter, why the private reply? Mail client issues, not intentional. Lists re-added, plus Android,=20 WireGuard, and random. Thanks, Alex. [0] https://lore.kernel.org/all/20220321151853.24138-1-krzk@kernel.org/