Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4885251iob; Mon, 9 May 2022 04:05:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/MrxBVxgMl4qvXi+GFeOPWTKCsYVJlqbTIU4nbdZ7zSIR4E86Osc9ZCc24gn3uAx6YnoH X-Received: by 2002:a17:90b:17d0:b0:1dc:7697:1e92 with SMTP id me16-20020a17090b17d000b001dc76971e92mr17286741pjb.154.1652094307105; Mon, 09 May 2022 04:05:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652094307; cv=none; d=google.com; s=arc-20160816; b=Wr/a24TTzOocFpKqB0HOeW8+aVqJZ4YuKcM80DhvH3bK+OnCdskXArUxcXCGQIqVP3 tTkXm3E6oGOeaCTgmkDLa+uQJFtzxzJTcps8qradNTKABFXXcA3+/cx488FVtFqg+0xi mjalnSj6dGN6seoHDGA8zgbbInXWl97iFA4bbECD9iA4i42e5KXpggYzPHFB3rl2IAvb xSYm6/450VLd+hvJPlGBJTbQkyj6sMCOYZDTJaheBDh0LlBxpeMZzCTV3D7lWnW6D/wr 2k4w6+hwllHl9rMLYraqwllkQcyoVoJWkNmQvP+yuI9geclMAooZM7eqJhSQ0ybT7i2k NJKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=rqjpnOUJzRgcRrP/waTDuMu336TXRB4V1nDMgbHbydc=; b=IQrBh1D0zM/I1mur0eUayluvO8koYw/SPEg8hWkm9WL/hC6Ta8gJ6Z/Qcb5iuYc4ok a3e7Y9L/s3JB1OkYjcaNr+uugj+PP8dwhad3WGlOWcDHoYN3nJjchnnRSxG7vB3/qaf6 lEw35QWQDlMQbBYqSocO4iXAGh4sFVOIvEATRCvphvA79yS17cUjxHlhhmP9az32H4x5 i37LDsCHx90xvkupzU3yoNAH3O0mZG53uXn28aCvrJ6nSHhm8L1wTNFIuA9+ow3TAjtq +yB5KPYF71f5oWepV6qudblHADg4twvY9Gs51I228HkYzcydqZ1wUMR1xz92eERZ8a5D tWMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=a7f31izf; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=CQzJ7jh2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 16-20020a630210000000b003ab4cc709bcsi13530983pgc.691.2022.05.09.04.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 04:05:07 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=a7f31izf; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=CQzJ7jh2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 4BFCE286FDF; Mon, 9 May 2022 03:20:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231651AbiEIFBH (ORCPT + 99 others); Mon, 9 May 2022 01:01:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234533AbiEIE7n (ORCPT ); Mon, 9 May 2022 00:59:43 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12AA0BBF; Sun, 8 May 2022 21:55:49 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id AEF995C00F9; Mon, 9 May 2022 00:55:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 09 May 2022 00:55:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1652072146; x= 1652158546; bh=rqjpnOUJzRgcRrP/waTDuMu336TXRB4V1nDMgbHbydc=; b=a 7f31izfTJ1lTX/4z7eDmjD2P0VUB6s6tYswG7DhZ60X3xb6Qy4UOTdlYLgRqaabY Zv6DjzlpJA/nEfRECtqdfRjY9uktz+TUqpTpxTSLCoIurwuJo2gCa/z0BJGKRsqx bbvYMpZqyNeCKTC0y+6xA/FpNMrbKuZyzcEtIGtbTEmkKVJ6JTjEHADwNTLaMyo8 1W5fATtOxe6RvBak0ZWVNy43I5ayO9X2NqpUBlcC5OjLPC7eXqBwJ3IgNW7lsPwl lRY0H7525sbjJfGIzTkfJQXcQz5iNxb48SEs8V4ckA/bo4nOMrS26MJEmjmFjzps 1yzdbxqfOZCw5+OqN7LrQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1652072146; x=1652158546; bh=rqjpnOUJzRgcR rP/waTDuMu336TXRB4V1nDMgbHbydc=; b=CQzJ7jh2Oy1GvhjybovNkgAjl9bQs pmHgxRYueLygNkQZp9BWsk5R3S8qBMktThk3udJjARdwTvwfW1LPls+a794Cb7fI RIJWKrEROsMejphBM8bEjpUPHHlmV3AP8/W8icLgB2lN6JbHc1nq5XfY20kRFGzW WRCzWsCaBqDVpxdMgamNLmgSPxiU8viCvLH2qKEkmRA6+0mcXNtT+9fcMilqBepm EGtvAgEMw/HiO/sbtrnYUHFs6oV/zJ3yu3HxKslGHBSrEcXK2aOxxh11yrFmDmK8 PoOB3GAgjCBXjRqoGlNzGz/c404o4JkeY0oE+cu47KPYO8wtjRl5CfwNA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeekgdeltdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfevfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhephfffheejteegffefheetjedvleethedugefgheeifeekffegueeg ieeikeegjeeinecuffhomhgrihhnpehgihhthhhusgdrtghomhdpkhgvrhhnvghlrdhorh hgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgr mhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 May 2022 00:55:44 -0400 (EDT) Subject: Re: [PATCH] arm64: dts: allwinner: h6: Enable CPU opp tables for OrangePi One Plus To: Chukun Pan Cc: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, x@xff.cz References: From: Samuel Holland Message-ID: <63e88351-2242-b2bf-3e72-1db66cd9d9bf@sholland.org> Date: Sun, 8 May 2022 23:55:43 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi Chukun, On 5/8/22 8:29 AM, Chukun Pan wrote: >> The AXP805 datasheet has this information in the description for REG 1A. >> DVM is disabled by default, and when it is enabled, the default ramp rate >> is 10mV/15.625 us == 640 uV/us. >> >> Did you notice any instability without this delay? > > Actually I write this based on the commit https://github.com/torvalds/linux/commit/ebae33c > ("arm64: dts: allwinner: h6: Enable CPU opp tables for Orange Pi 3") and https://github.com/ > torvalds/linux/commit/fe79ea5 ("arm64: dts: allwinner: h6: Enable CPU opp tables for Pine > H64"), so I think it's necessary to add this delay. Thanks for the context! I think the suggestion comes originally from here: https://lore.kernel.org/lkml/20200405115138.vrrvv7spnv6ifm6x@core.my.home/ From my reading of that thread, there appear to have been no reliability issues before adding this change. It was just based on the available information at the time. On the other hand, adding this property will cause the CPU to spin for up to 112us in _regulator_do_set_voltage() during each CPU frequency change. So this adds a lot of latency, which I would like to avoid if possible. Regards, Samuel >>> @@ -216,6 +222,7 @@ reg_dcdcc: dcdcc { >>> regulator-enable-ramp-delay = <32000>; >>> regulator-min-microvolt = <810000>; >>> regulator-max-microvolt = <1080000>; >>> + regulator-ramp-delay = <2500>; >> >> This change is not related to CPU frequency scaling, so it belongs in a separate >> patch (if it is needed). > > The two commits mentioned above also add this delay to dcdcc regulator. > If there is a need for a separate patch, I will send these separately. > > Thanks, > Chukun > >