Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2308661pxb; Wed, 9 Feb 2022 15:48:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJynedT3QZU+xZjBuUL5+rVWzXUSxNcOhp90VpbadfnzxxFkBmnWJaANh79viaNs+RcVee7I X-Received: by 2002:a17:902:ea11:: with SMTP id s17mr4654628plg.171.1644450485138; Wed, 09 Feb 2022 15:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644450485; cv=none; d=google.com; s=arc-20160816; b=V+SvzPuqIvdMoHlnw/6gG62UkC1JUyl+wY2kdVVXVoEfsls+X3oLyuJ+t0vr7Ksp5O /F/QPJTxq95sm4YDI+/xeClrAkWpNTxbaV/tccEzqOHHlNTixLA9sG3YTlbcJ2zjPini HrnEvsjWamEf6rYcbPRkPB5OEz4XHtutvAbpM4ARWNp8KV3Yh8BJ1Wr3E5mojdZjjWAU 0k3vliFbQb0S7kllvShWkW55DiWF5gUsUDhpOdLmdozHUOzyMnwjBHze2sGX9rYB87zQ +za7aypnQRlHrLwA2meOEyilWggidQnQUYoLj76DnfGRt4i+KUhp2O1bB2aSoe8f4Hgq K4Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=78nJXDfmr//iqkCpJCXmmDUOzZ8w2oIwGyGP9nLOEfc=; b=DCNwA2WyLv9LqO5zQJrSPFluiqPImwhFZ4W4QHhaNoekQX+xuHedlRN5u1uSMzOI9F I7gcLOQxA8ZdlEuCieCuRgfP8UgwPSVeerXs7tl6ZXd64TZxDovkrC4c7grhumalx5W7 f5ol6RVyA0Yo3ROUo+3zX2Fj201lBzKcQU6OcIbZFvpntoxBjC46DJEpGX648qnEEKiB Yt1c83KkVBog2UtbSPzIEnxo+7UkrPTJPPnx9oGSqvC+/mfxh6tGmOQXUlwO6BQjh/Vh Eyuve4G2NlAVGTd1s4e+zPSLQ8BG/93ggrMNbkK6haW0IzC1aqDuz4XRnZwszDokLth8 qurQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=Vunja1Wp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w17si383063pll.453.2022.02.09.15.48.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:48:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=Vunja1Wp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5AB25E0939FA; Wed, 9 Feb 2022 15:25:33 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232242AbiBIUqa (ORCPT + 99 others); Wed, 9 Feb 2022 15:46:30 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:41928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232243AbiBIUqZ (ORCPT ); Wed, 9 Feb 2022 15:46:25 -0500 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 265D8DF49885 for ; Wed, 9 Feb 2022 12:46:23 -0800 (PST) Received: by mail-pf1-x42d.google.com with SMTP id y8so3739187pfa.11 for ; Wed, 09 Feb 2022 12:46:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=78nJXDfmr//iqkCpJCXmmDUOzZ8w2oIwGyGP9nLOEfc=; b=Vunja1WpaNu5p6wfFPAjyHKQ8YyGTJ6zeo0OoPoWTGhTqeSRtYhi4zvfqDseMj3UaW f84lAthwXw3UmvPfjk8ltUYN+JefaEAAuhJdgRwPHutOufpI+G0S6FKbZCIaBsXQfbq6 NOLHolki2PKzt93ROK4Fj786sndwLxv4UVwArcIECjJ8Gu6H4LxHwMAT0wq3Nvz2Qjvw PvdCas6sjRqGl9+A1kZY31Y9t8HYwweJ4LlzpklB2wR6mNTB0J1CCIzM5BRCQWAGOGml PwNraH9ZBkJfm6V1UR7bFUixi9NJ7gwmInSV888GLX2Gia9BNowSFWJZMz90TiGIqWSV CQhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=78nJXDfmr//iqkCpJCXmmDUOzZ8w2oIwGyGP9nLOEfc=; b=yv/sC337L66wAYjA5x9g1Jihhxy1p/SU4WDM2/n/+N1M9YBqdD9q7bTtVWRyPh2VCw ukYIcszK3TBTlDRFDa97QKvyYinmKh4agQbXUg2Ck4/OKT0dokEgcLnmG8MAvEbuT01Z 4+yiInKrqKEfk7yw36xSyQtUVFSu0sKyzEseO4gwohSD/rvp8MyO7r1DiJr8TpBWhGLM LTuVaYT9tbuMk3rK0zJTOfMd6IrSjtwsfVCV8HBFJyx6rSQqsxDk1lg3hh8pWThOfo4V RXxqAxjkt2r7fDY0WImO1sFxdYFcFOfgqOqDx3isPyrqwtxGwTkye4n9WkAVvznq0IrM yLhQ== X-Gm-Message-State: AOAM532yD5JtBR9YNbXTtTv+hLRQ2e6mVvMhFmh22whwB0HLfnv0gUQG fUnK2idEYrzFiiczHAI+yE/Gtw== X-Received: by 2002:a63:3d85:: with SMTP id k127mr3361676pga.350.1644439582562; Wed, 09 Feb 2022 12:46:22 -0800 (PST) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id k14sm8399557pgt.73.2022.02.09.12.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 12:46:21 -0800 (PST) From: Kevin Hilman To: Christian Hewitt , Rob Herring , Mark Rutland , Neil Armstrong , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Christian Hewitt Subject: Re: [PATCH] arm64: dts: meson: remove CPU opps below 1GHz for G12B/SM1 In-Reply-To: <20220209135535.29547-1-christianshewitt@gmail.com> References: <20220209135535.29547-1-christianshewitt@gmail.com> Date: Wed, 09 Feb 2022 12:46:21 -0800 Message-ID: <7ha6ezojj6.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Christian Hewitt writes: > Amlogic G12B and SM1 devices experience CPU stalls and random board > wedges when the system idles and CPU cores clock down to lower opp > points. Recent vendor kernels include a change to remove 100-250MHz > (with no explanation) [0] but other downstream sources also remove > the 500/667MHz points (also with no explanation). Unless 100-667Mhz > opps are removed or the CPU governor forced to performance, stalls > are observed, so let's remove them an improve stability/uptime. > > [0] https://github.com/khadas/linux/commit/20e237a4fe9f0302370e24950cb1416e038eee03 hehe, not a very helpful changelog in that khadas kernel commit :( > Signed-off-by: Christian Hewitt > --- > Numerous people have experienced this issue and I have tested with > only the low opp-points removed and numerous voltage tweaks: but it > makes no difference. With the opp points present an Odroid N2 or > Khadas VIM3 reliably drop off my network after being left idling > overnight with UART showing a CPU stall splat. With the opp points > removed I see weeks of uninterupted uptime. It's beyond my skills > to research what the cause of the stalls might be, but if anyone > ever figures it out we can always restore things. NB: This issue > is not too widely reported in forums, but that's largely because > most of the Amlogic supporting distros have been including this > change picked from my kernel patchset for some time. Very interesting. I've also noticed instability across suspend resume on VIM3/VIM3L and only got as far in debugging to noticing it was DVFS/OPP related, but didn't get much further yet. I'll give this a try to see if it helps. Thanks for finding & posting! Kevin