Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1861994ybz; Thu, 30 Apr 2020 06:51:23 -0700 (PDT) X-Google-Smtp-Source: APiQypKg5saI+jof5YDs4jtSfwCBY64d16CPp/30+Tt40Oic8vPQj7gGKZ8VPWY+rBwm8Qd2YKOD X-Received: by 2002:a17:906:2604:: with SMTP id h4mr2622934ejc.307.1588254683394; Thu, 30 Apr 2020 06:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588254683; cv=none; d=google.com; s=arc-20160816; b=ojwe3jkmuNFUb6/EB8QvwaE30IRdRmWFK1CcdIUI/bhY/nhaz0BSluR6lar4yGrUr7 lZay4qQM/KFu5lYwaBGMesZfVBGJODClq2FHh/APKRTxRQQrMWRd2+HL8atxmi9ey+Fo uMy2W/EikRxVbpRte/jz9XUcxC9o4i+5vIJv+L+9N7+vbVW5eYZaWLN7VA+XAHrs24ic A0RaTeY2vCDLVXnvjYoV99L8w2+8vOoWIIe0KLh2eZnSGn5Zn2IG57RKq6JFd0Ust/cq XXa3Mwg52w63zkryGQ2p9hzBmtNUbllgmiNEfYuGUgrW6yyZ/VlNBweMUZllwJkkCqP4 Ng/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=10MZchLKLWnUIx2ECF9AmTSv1/bLhdLwtRVHSCWf8+g=; b=UVcQTAGskTTt4ch/yJOOwQPT8lOVDYxHmSV39yDEeCgMkWb+4efkgXoi6LncSCg/ku uGCxAl1I/tmMb9wwyQNWRE9zBVUXAr0r+uSiy+tGvFsIYIgWXKrylRkmk+FEBVpI4c0p sArF/MEmLMMAHCOkDMJSUMVcFnm75BYNL46vCOF7JhoC0aaWPOhfn0KU7ij+WkHON8v/ Hl8nFPAjWcEfyXk1Bta0WSt8hLWl03Zy9dOzdlopdvWr4hdPOHZ4p+y/8v3AYW7h7XWj 2WbzFI2hKqPglLs7z2vVx1Fi2AzJZYkmMqjvNiTAeBxKuYR6r8cd3iXJNn6YofejGZTW 3lcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QktBavBK; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk23si5114417edb.282.2020.04.30.06.50.59; Thu, 30 Apr 2020 06:51:23 -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=@gmail.com header.s=20161025 header.b=QktBavBK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727094AbgD3NsR (ORCPT + 99 others); Thu, 30 Apr 2020 09:48:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbgD3NsQ (ORCPT ); Thu, 30 Apr 2020 09:48:16 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E69AC035494; Thu, 30 Apr 2020 06:48:16 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id k18so1522513ion.0; Thu, 30 Apr 2020 06:48:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=10MZchLKLWnUIx2ECF9AmTSv1/bLhdLwtRVHSCWf8+g=; b=QktBavBK6XvPz921HcbrP7hPlPYQsHcjwKAwVazUGuPktYwg0hWVhrpQDMwKYPEpmX YQwTWO5Of3YIILrrAN3BaPXufDisF6Wq4gKImopG9EMRx2I4GFwCPFvXcCU1Q/r3SyCK uJi79JjeszqUlBm56CTuQbiXv3K9LQxr0nTcaDFYqcuuI+CKspZZULdGBa2qseDI+KTX 4j9gOTBXn/+ZSYB/6Ng1f0LLtsz/A4F1PlG/FVq4r1PT57FAx+kkMMz+EWVtoiIbdJxY UoSV76tlgI32brHrtsqmghmLgL/rphijhheE0iv3sM9DYC9UfpM6aFilTg1n2yGD+etb mAlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=10MZchLKLWnUIx2ECF9AmTSv1/bLhdLwtRVHSCWf8+g=; b=bgF0VUy2O+Xl4oILzjFWoTkdzm7WijXWHu/n5Hr6C+acKyaG8BMLwZvGLE4OI4I13f ghKpLt3vsr6/Q1oTWqzQCd8rZIZIpEFgkDDsmLZC+eKPiTdm+zW1wmfNFTGAuaYKRXFs DD7fEtBAaWBv/Gh/SxPjWKs9AFHa89gdBtxAfEoF+KCODFwG/kaIg25DMdNBfdSzvOWl d4c5NRCBaUURZ6bHmbwFqvAIRhXCVy5JlY3No/RPa6eIZU1+SPZFxkwH3VGNA2Pbf908 4kE4HjV7Klcv77Lc0xKQdVRJ7xDPMxEf2+CSesz3xHVPTfzuoAhhMGqXyL55RmWyK1wP jhMA== X-Gm-Message-State: AGi0PuY1/0o+51XkTxspXMkdYjdTPN6YjIZr6waVdWFGslGyx66gKhSU gyVMA3+zQ7FxCQl9OqO6WQc2tnTuuHNpJ/fkswo= X-Received: by 2002:a02:3f44:: with SMTP id c4mr1837141jaf.144.1588254495397; Thu, 30 Apr 2020 06:48:15 -0700 (PDT) MIME-Version: 1.0 References: <20200428142629.8950-1-peron.clem@gmail.com> <98246e5d-ebef-bcb5-f0b8-d74b3834b835@arm.com> <20200428164522.p7ypca7zwocc7alq@gilmour.lan> In-Reply-To: <20200428164522.p7ypca7zwocc7alq@gilmour.lan> From: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Date: Thu, 30 Apr 2020 15:48:04 +0200 Message-ID: Subject: Re: [linux-sunxi] Re: [PATCH v2] arm64: dts: allwinner: h6: Use dummy regulator for Tanix TX6 To: Maxime Ripard Cc: Robin Murphy , Chen-Yu Tsai , Rob Herring , devicetree , linux-kernel , linux-sunxi , Piotr Oniszczuk , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime, On Tue, 28 Apr 2020 at 18:45, Maxime Ripard wrote: > > On Tue, Apr 28, 2020 at 06:23:35PM +0200, Cl=C3=A9ment P=C3=A9ron wrote: > > Hi Robin, > > > > On Tue, 28 Apr 2020 at 17:21, Robin Murphy wrote= : > > > > > > On 2020-04-28 3:26 pm, Cl=C3=A9ment P=C3=A9ron 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 blin= dly > > > 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 enou= gh > > > for the given OPP. I wonder how well it works if the regulator is > > > programmable but shared with other consumers... that case probably ca= n'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 hig= h and > > reduce the frequency. But I don't know such case. > > I assume the intent was to prevent a regulator driver to overshoot and en= d up > over-volting the CPU which would be pretty bad. > > I guess we could check that the voltage is in the range opp < actual volt= age < > max opp voltage ? As this could take more time than expected, Could you drop the commit : add1e27fb703f65f33191ccc70dd9d811254387c arm64: dts: allwinner: h6: Enable CPU opp tables for Tanix TX6 Thanks, Clement > > Maxime