Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp975725pxb; Tue, 9 Feb 2021 18:35:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJLfvr7KQnosirUONUA7VpDF+JpXo4OEcK5Hkm0MkiU3mgYosfcOTFrIdu6b3/2maxaqUc X-Received: by 2002:a17:907:7784:: with SMTP id ky4mr688604ejc.89.1612924522705; Tue, 09 Feb 2021 18:35:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612924522; cv=none; d=google.com; s=arc-20160816; b=MKmsLV7BNIu7ve4GXzg2DIwP6aRyS5ilB1vwI6QYohXKVEKQy99DjxbNfKO2/xQvnM 3kK7wLio21HHFU0H7oWW0vdFvhhmSV/i104fQJS+OakYuugMRowotXRmXxnCvsOKlSqq j/2JVv8D0PoWKff4C7fJyR6vki9uG6PKSclg0mvUfxs+8yjsRQwnL1zgCcN67/Dh3LRf F62tDNXw6KkfzET3hqqCUogJ25qn3HYi+eptxvt3BKowQiz3HYl059eAwx86yZkciTc7 ucFLhycTcwxhcO8hIOzUQS5/l6iUTKH7+WOv1XrpxlBMcu8n5kLQ6iLBGZqPtTbKBJ6q r6Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :dkim-signature:dkim-signature; bh=tniNfQI9zU/BebxOxoqaAf0OdO5pRgsTSECculbGH98=; b=O/ToJwfGWwlLB7nTsBDH2TwYWS++xD7hOFl5GbkJ72Q0arauFrI2v35NprDI65KMWt 80nkTJmeC8heuoQrsZrNyzJ3hDMp36cPCzbqY4nhMyiq9p/ePn7HTgliByEy8UsO4pQD PXtsvN98OXlED9Bb8Xuka2+bCKeguERFXy5svi1IjOE/2eZTDqi6irME0pMD9HyGEfjh da5QUfHFAZ/sN4HtH7gdfzP9op++oRIOgZy7jykMPApB//xCH2BRfB2p/0374JZQBGk7 wm+Ql9P+TigVbdeho7SL+rxqlFTmWpzNR2NlY3D8cMVYFco+YrzzXNXv/HdJs+kCyca1 DCrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm2 header.b=lNOHzNhX; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=GiW3i68s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si299527ejm.573.2021.02.09.18.34.59; Tue, 09 Feb 2021 18:35:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm2 header.b=lNOHzNhX; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=GiW3i68s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234410AbhBJCcW (ORCPT + 99 others); Tue, 9 Feb 2021 21:32:22 -0500 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:46153 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235208AbhBJCIz (ORCPT ); Tue, 9 Feb 2021 21:08:55 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 4681B580265; Tue, 9 Feb 2021 21:08:09 -0500 (EST) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Tue, 09 Feb 2021 21:08:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type:content-transfer-encoding; s=fm2; bh=tniNf QI9zU/BebxOxoqaAf0OdO5pRgsTSECculbGH98=; b=lNOHzNhXzvds/Gpfnclud imQbRei/iq/6OexwtWpZS4WXckLZJsdVP+FCmjrJvs7CuH7u9g6/OgED+fI90Adn wgmHoD4ydzB9GT+RirDKyeqH3EHXrsfoW/rG22h3zFJbowpdJi6igUtUwbE+WTBz zhdsYg7shu6491eYMIEYSDJsS3A2xGGC5A/9gjJi4b7ny08BY/M2XtAd3ST5hTtP xYOfWse+YnYI17PXzGjx5ToRO/ZLkIdKEBUiDUuuI/GlAzAZgtGWZjhI13qnzJLu QAIK2Pc4oxZgvn0vU2R35Eipv900mK+Ci5wn9k3QfJt6MWxmqPSUbP3JtL6l3z25 g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=tniNfQI9zU/BebxOxoqaAf0OdO5pRgsTSECculbGH 98=; b=GiW3i68sU1T3RobxRJUBi03JMZSxRWuiYHZ3ZZh3QL7sm0C76u2o/0vZW mUpb089Nm0ML2kcGY+GCxbUPnCPrrQSM/tNIV9cNH54b1jrnJUPRl3FnHbw2Zjrv EgME3DfnYjRDznkqBHU1rmoPZt5gT/CCcBZn4JHgeb0+UMsizJU2rAnLzoyqfgJh DulUQ415VP+0SAHNAhCZth51VzPr3iIWP/iOvT4Yb2Rq5QXxa2ZNtSdzxDAwoYiA GBUMearc4HRVinNGIjHNuEm+WZdpQ9hcspamNt6BtVe3lQpHy+cYofvA72h0NIMK x518zJp3sX70gyypowvmeVitM32Og== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrheeigdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepnhhnvght uceonhhnvghtsehfrghsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpeeugeekvd ehheevheetieetudeljedvvddtieevvdeukeejgfeuheffueelueegueenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehnnhgvthesfhgrshhtmh grihhlrdhfmh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3AAC1A0005E; Tue, 9 Feb 2021 21:08:08 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-93-gef6c4048e6-fm-20210128.002-gef6c4048 Mime-Version: 1.0 Message-Id: In-Reply-To: <1cd0c2ee-aa3a-4da2-9c0c-57cc5a1dad49@www.fastmail.com> References: <20210209213330.hnc7op72zoj24mgz@pali> <7b0988cc-eeb8-4ea7-92f6-e8234ca910d3@www.fastmail.com> <20210209224223.p22yhjdy7ibzepss@pali> <93745280-dbe9-491c-a79d-c9c364b83880@www.fastmail.com> <20210209225630.mdwnzkvnaz3r4blt@pali> <20210210002619.43104a9b@kernel.org> <1cd0c2ee-aa3a-4da2-9c0c-57cc5a1dad49@www.fastmail.com> Date: Tue, 09 Feb 2021 18:07:41 -0800 From: nnet To: =?UTF-8?Q?Marek_Beh=C3=BAn?= Cc: =?UTF-8?Q?Pali_Roh=C3=A1r?= , a.heider@gmail.com, andrew@lunn.ch, gerald@gk2.net, gregory.clement@bootlin.com, kostap@marvell.com, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, luka.perkov@sartura.hr, miquel.raynal@bootlin.com, mturquette@baylibre.com, rmk+kernel@armlinux.org.uk, sboyd@kernel.org, tmn505@gmail.com, vladimir.vid@sartura.hr Subject: =?UTF-8?Q?Re:_[PATCH_mvebu_v2_00/10]_Armada_37xx:_Fix_cpufreq_changing_b?= =?UTF-8?Q?ase_CPU_speed_to_800_MHz_from_1000_MHz?= Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 9, 2021, at 5:51 PM, nnet wrote: > On Tue, Feb 9, 2021, at 5:31 PM, nnet wrote: > > On Tue, Feb 9, 2021, at 3:26 PM, Marek Beh=C3=BAn wrote: > > > On Tue, 09 Feb 2021 15:16:45 -0800 > > > nnet wrote: > > >=20 > > > > I've two of these and I've just swapped them (and re-pasted the = heat sinks). > > > >=20 > > > > The second one ran under load for awhile and now has frozen as w= ell. > > > >=20 > > > > Under a moderate load `wget -O /dev/null ` @X00Mbits = they are fine. > > > >=20 > > > > Under a 1 min speed test of load ~200Mbits routed WireGuard they= freeze. > > > >=20 > > > > They fine with both those workloads @1000_800. > > > >=20 > > > > Perhaps it's heat? Unfortunately I don't have any numbers on tha= t ATM. > > >=20 > > > Try disabling cpufreq in kernel completely, compile boot image at > > > 1200 MHz. If it continues freezing, then I fear we can't help you = with > > > 1200 MHz :( > >=20 > > cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_freque= ncies=20 > > 200000 300000 600000 1200000=20 > >=20 > > I'm not getting any freezes with 1.2GHz fixed after 20 minutes of lo= ad: > >=20 > > echo 1200000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_f= req > >=20 > > Setting it back to min 200MHz I get a freeze within a minute: > >=20 > > echo 200000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_fr= eq > >=20 > > > Marek > > > >=20 > > +#define MIN_VOLT_MV_FOR_L0_L1_1GHZ 1108 >=20 > Based on the below at boot time might an equivalent of the above need=20= > to be 1225 for 1.2GHz? >=20 > 1200_750 > SVC REV: 5, CPU VDD voltage: 1.225V >=20 > 1000_800 > SVC REV: 5, CPU VDD voltage: 1.108V I did this for a quick test for 1.2GHz: +#define MIN_VOLT_MV_FOR_L0_L1_1GHZ 1225 This is working well so far. Frequency is shifting up/down with load app= lied/stopped.