Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3789400ybz; Mon, 4 May 2020 09:44:06 -0700 (PDT) X-Google-Smtp-Source: APiQypLM+Z7ZtGEGyeTsykBydihyYH4s2ZTuhe6J1Ei5y0bsBSTwADyiNtcad2zuUF4nmOyj796F X-Received: by 2002:aa7:cb0f:: with SMTP id s15mr15073663edt.164.1588610646294; Mon, 04 May 2020 09:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588610646; cv=none; d=google.com; s=arc-20160816; b=0ZsIz7f65tGXjXCi3kO54vSIEdMUmWtWCE9bSqUGppuqqbghbKhKFYV9TKsDb7u1L/ va4ftxBzIzIfkFOOJvGDeRavB+9DFs3hJTWi19n1l06TZxpA4r2oaH4V0nD0rrNM30AD 0kYzQ9aIL5FcAjLxeeQXEkO9KKnJoi0b0WVO2SZen6czflM50aBWHoCicuXZOOs939Ho PilEv5BJEOHGzxOF2fUkd5xFKYl5ETKDSZPBXjqb3fiqEpOSQNhjHWPOVy7/H04gIrOd GVXTxHrsesdhf87DOF5mFHkiJSa3rcHva3TD6jP41SwizSxwe827QxdhwZ+g8cdJ5AOA EbjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=vdg1rkzemmkCMJ7/0H2GFUcV8lxjS65Px6J0j+PovYg=; b=tTExTsxOavZEfvSLIeNCTKYbCOIp32LW0r9Q7IhF4AQGvXQ1tpYtgdF1N5I1p31pfx CM9jB3oB5+99otNV7n5MUYVV4pK9TFV4+wwl1D9ukYo7jaS8BPad4KShONN0z7hI2ICM dMuHXyRYYNUaRxWPgQ9n9hk+JB4Xa7T3STBP0Ttsxh2tQo0IF8nWwcbahkOnfhJaRTep AjgUX97HIvQa+OtbBSof1JZxrWoa/rvo9H22gApaGmwejjWYGAigxrH8k0TZZBNbIyvI sdw1+fgFw0eSXb6fBHB6vIzWYFzMoFIBDiSIRlH3Zt4ixcJ6bwvf9Jg7E5E9Nk+tFp+T tbDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b="Y/aTiaTT"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=cm9vUxZg; 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=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch10si7121665edb.454.2020.05.04.09.43.41; Mon, 04 May 2020 09:44:06 -0700 (PDT) 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=@cerno.tech header.s=fm2 header.b="Y/aTiaTT"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=cm9vUxZg; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729873AbgEDQkc (ORCPT + 99 others); Mon, 4 May 2020 12:40:32 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:52077 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729670AbgEDQkb (ORCPT ); Mon, 4 May 2020 12:40:31 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7B6705C012C; Mon, 4 May 2020 12:40:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 04 May 2020 12:40:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=vdg1rkzemmkCMJ7/0H2GFUcV8lx jS65Px6J0j+PovYg=; b=Y/aTiaTTCbUEqHfBZSwZqiKXNNL2FArO54/ZQMuMG0r 7qtCc7ho8YP4X+ye6cRZinCsk66zG7VqfuYaPPZms2PVkbC96ErrZX5dygRoaELW aiSqDzSWQYW/BK0c11HWyEE2D4LeVnEDbCIimDlt02tVF2pml4YRFqRHEASmQyYO 56N6HjPQq57hnf41vAC81IArxfV+GrZiYJlLbzkNaRFJYJ1yztOc1usxYBkAyZZV 66s8KrGjnhAeiwsARNuj52vrgcQSpq0P/VT/Fj8tAJC42/iKcA36dRVL80j0+6Yc n4piP5Uo4vwMzK6Gt7/yOB/BeSmFlpYapSniuW/Sg9Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=vdg1rk zemmkCMJ7/0H2GFUcV8lxjS65Px6J0j+PovYg=; b=cm9vUxZgSj8xrHFvxxmOzq IJ2j6pduJTzKjWN3uQ0bvn1W2MyQiSXXZ2PL1zQz1/rrXJrRLNveKsk3Wzp3t5ZT EiOXtsQzbGrALLR9P2Jeelh4TWatBOvqgmasmkCDYMupZDGWnDe7sETdMgzAL2Qs 99nTioh79KMcdPYo0DBjYXwu14buskO81171EFz74VVQqKTjt4agAvfA3SNZWgwf sfNQ034Gtjy/rFl2TOKcxI2RGDC6E9beHe2Vag03UYcMvkWJV81jc7KabB2DrHrj 5nro+w52i6l3Va5yw03TkJYm+JOoSFchh3tajxRb6cRhRAuglNlGmPG5+eL10ytg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrjeeggdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtudenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeduvdduhfekkeehgffftefflefgffdtheffudffgeevteffheeuiedvvdejvdfg veenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 397F13066016; Mon, 4 May 2020 12:40:29 -0400 (EDT) Date: Mon, 4 May 2020 18:40:27 +0200 From: Maxime Ripard To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Robin Murphy , Chen-Yu Tsai , Rob Herring , devicetree , linux-kernel , linux-sunxi , Piotr Oniszczuk , linux-arm-kernel Subject: Re: [linux-sunxi] Re: [PATCH v2] arm64: dts: allwinner: h6: Use dummy regulator for Tanix TX6 Message-ID: <20200504164027.tvlkcbfoz3igeh6x@gilmour.lan> References: <20200428142629.8950-1-peron.clem@gmail.com> <98246e5d-ebef-bcb5-f0b8-d74b3834b835@arm.com> <20200428164522.p7ypca7zwocc7alq@gilmour.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pwelueerzpkvwdem" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --pwelueerzpkvwdem Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Apr 30, 2020 at 03:48:04PM +0200, Cl=E9ment P=E9ron wrote: > On Tue, 28 Apr 2020 at 18:45, Maxime Ripard wrote: > > > > On Tue, Apr 28, 2020 at 06:23:35PM +0200, Cl=E9ment P=E9ron wrote: > > > Hi Robin, > > > > > > On Tue, 28 Apr 2020 at 17:21, Robin Murphy wro= te: > > > > > > > > On 2020-04-28 3:26 pm, Cl=E9ment P=E9ron wrote: > > > > > Tanix TX6 has a fixed regulator. As DVFS is instructed to change > > > > > voltage to meet OPP table, the DVFS is not working as expected. > > > > > > > > Hmm, isn't that really a bug in the DVFS code? I guess it's just bl= indly > > > > propagating -EINVAL from the fixed regulators not implementing > > > > set_voltage, but AFAICS it has no real excuse not to be cleverer and > > > > still allow switching frequency as long as the voltage *is* high en= ough > > > > for the given OPP. I wonder how well it works if the regulator is > > > > programmable but shared with other consumers... that case probably = can't > > > > be hacked around in DT. > > > > > > Like you, I thought that the DVFS was clever enough to understand this > > > but guess not.. > > > > > > Maybe they are some cases where you don't want to leave the voltage h= igh and > > > reduce the frequency. But I don't know such case. > > > > I assume the intent was to prevent a regulator driver to overshoot and = end up > > over-volting the CPU which would be pretty bad. > > > > I guess we could check that the voltage is in the range opp < actual vo= ltage < > > max opp voltage ? >=20 > As this could take more time than expected, >=20 > Could you drop the commit : > add1e27fb703f65f33191ccc70dd9d811254387c > arm64: dts: allwinner: h6: Enable CPU opp tables for Tanix TX6 It's done, thanks! Maxime --pwelueerzpkvwdem Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXrBFewAKCRDj7w1vZxhR xY/yAQDBc+uu39+S+nGtqfFozjixwQHz6PT7mFJIq3iYoXM1cAD/WNTMNvIvvI+Y UjQG+ErJYUhaQLPXVlTIfHrf9w8nNwc= =jPeV -----END PGP SIGNATURE----- --pwelueerzpkvwdem--