From patchwork Tue Oct 16 14:00:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 10643589 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 154DC15E2 for ; Tue, 16 Oct 2018 14:10:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 009392A0C9 for ; Tue, 16 Oct 2018 14:10:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F34B92A0E7; Tue, 16 Oct 2018 14:10:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8A9202A0C9 for ; Tue, 16 Oct 2018 14:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=VGTKZfDB6iAODpRZSmLYZkbW17bri2d++61GovcJ2HQ=; b=bbh ck5zNUdjXl9CnewppZ/S5Syz9uhPDmZU5aOTy79X/UtyrqnUxSP0wZZSezjaARoBZ/6tVwz/zSYwv BhtUGW+k5hCNc9Z3XAOnDdJF4LKjTw/FjdB9Gf2FAqijQnMefvkUvb12zD5WiqYN4dDA0zRtkyuIH QPRHdHY99F412uuSPsdqD1NYZ6tMuUiv13Gz5emmCuX/HChdIWF1LB+qkORlZlFGIa5dxRcIDo9G9 Nm21IQwk7rj+3Vg1sgBWtzlf+OSJS3OSeeYdq8OFrhvMXmUWlV0xZSYP2nFoddK3cP42T6SoT3TFT U15iGV4whlW0Bhho0LzmMxXhsNPM3cQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCQ3d-000846-5p; Tue, 16 Oct 2018 14:10:49 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCPui-0003tx-DL for linux-rockchip@lists.infradead.org; Tue, 16 Oct 2018 14:01:53 +0000 Received: by mail-wr1-x444.google.com with SMTP id 61-v6so25680567wrb.6 for ; Tue, 16 Oct 2018 07:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=AyjUgKMFmAFThaK4GvWsdrdl4JZ3kTa6zVPrOmGMjOA=; b=OwrJnI6D/huHRM5jiagiGiKBxUHFUlMvwe1t2GexoIKOTqtFGY3vwPCkrAUWdnT5+f n+wvqEq+enR14QpmLTY3VNYAsxMcDtJOZ2R2Cw0rRdiHypMeUGRanfszUimV9omTlSGH ApMgMERT+Pim+X1tp/uH775sDaVLHsJDyJb2Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=AyjUgKMFmAFThaK4GvWsdrdl4JZ3kTa6zVPrOmGMjOA=; b=IP27NEZ88kfGc5B31fb3P3Pt++kICTnKHvuP9EmOPXRBpjTZD0epHD5Yn9QfE8mp0L TmAce/J1z+EgCxuYS+U2jy+fAxSNC1B35izpiiXXXZGQWHiUqi7rLtcU963HOJb68Q92 CIm0pJMokpzj16CaGZ3LjfabGpSrbSILm+j9Ey8QIgx0t4pcqS1L4UHdZanipO7B1HmQ B2eSECgF00mLVqPALUqaUwVn1L/Yv909qA2gI/eYz3/PLnTbq5Sde1Lqe+G0yADYTaqR vFYYnc6EIRHHd3w3bf2y4MgIX3sxIWIBY+E3QRgqzlw8v7T4RssR35Su/atXBSnJgjnx E2nA== X-Gm-Message-State: ABuFfohFvm/XeI+YIfuzzO6rT7+wplMTZFusq0gxDG9UDik3Z/MKTJLX LVYDyrumGe+ZN6UdWv/Ij4TRmw== X-Google-Smtp-Source: ACcGV614RNSZy+OjIvsEaE9ONlZaDAeI1a8EpD+wP5Gt58g75Bh8DJgL6KJJ2ZjTenoZPwHLydiQBg== X-Received: by 2002:adf:cd0c:: with SMTP id w12-v6mr19534363wrm.67.1539698480294; Tue, 16 Oct 2018 07:01:20 -0700 (PDT) Received: from localhost.localdomain (221.56.88.92.rev.sfr.net. [92.88.56.221]) by smtp.gmail.com with ESMTPSA id b81-v6sm10195012wmh.47.2018.10.16.07.01.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Oct 2018 07:01:19 -0700 (PDT) From: Daniel Lezcano To: heiko@sntech.de Subject: [PATCH] DT: rockchip: Fix stability issues with the 'performance' governor on rock960 Date: Tue, 16 Oct 2018 16:00:20 +0200 Message-Id: <1539698431-12616-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181016_070136_484248_30B3B50C X-CRM114-Status: GOOD ( 11.34 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Shawn Lin , linux-kernel@vger.kernel.org, Vicente Bergas , "open list:ARM/Rockchip SoC support" , Rob Herring , Manivannan Sadhasivam , Enric Balletbo i Serra , Ezequiel Garcia , "moderated list:ARM/Rockchip SoC support" MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP When the performance governor is set as default, the rock960 hangs around one minute after booting, whatever the activity is (idle, key pressed, loaded, ...). Based on the commit log found at https://patchwork.kernel.org/patch/10092377/ "vdd_log has no consumer and therefore will not be set to a specific voltage. Still the PWM output pin gets configured and thence the vdd_log output voltage will changed from it's default. Depending on the idle state of the PWM this will slightly over or undervoltage the logic supply of the RK3399 and cause instability with GbE (undervoltage) and PCIe (overvoltage). Since the default value set by a voltage divider is the correct supply voltage and we don't need to change it during runtime we remove the rail from the devicetree completely so the PWM pin will not be configured." After removing the vdd-log from the rock960's specific DT, the board does no longer hang and shows a stable behavior. Apply the same change for the rock960 by removing the vdd-log from the DT. Signed-off-by: Daniel Lezcano Tested-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi index 6c8c4ab..56abbb0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi @@ -57,18 +57,6 @@ regulator-always-on; vin-supply = <&vcc_sys>; }; - - vdd_log: vdd-log { - compatible = "pwm-regulator"; - pwms = <&pwm2 0 25000 0>; - regulator-name = "vdd_log"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <1400000>; - regulator-always-on; - regulator-boot-on; - vin-supply = <&vcc_sys>; - }; - }; &cpu_l0 {