Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2723875ybi; Thu, 18 Jul 2019 13:12:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyaobUE15y7Ya8IAvXyoYrscPbm02qyvSb55sxj2aR3OfpsgBTnlUWAvpPenR64w6aYDVJ X-Received: by 2002:a63:c0d:: with SMTP id b13mr49410625pgl.420.1563480753410; Thu, 18 Jul 2019 13:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563480753; cv=none; d=google.com; s=arc-20160816; b=Ojk1wWbEVfshvJkihWXSuSuQ7/IEQ9rHdhNLBUMEv18Rz8euFejypl0GT9ZBOylWrI tfDq6U5OzEEP50fXo8i5yCH8lxUeHGTPrnU66/IUmjVMPNnu5rnf/x9dYv+PjlCPhg/N 3vXUIp7dq9FJGsBKgSITRtsnDsfGChj41Db6txYWdEgW5ab7f/OOi1FsBEB/t71T3xr9 slv4r6KZA0Ay0E3MXRSuXIz7wIQyK1H2nvDO5piwK9nidRclvRZeS1Wad34xnE33xMC2 7kGC1IbRIawvMSy6WCbLGbeG2t44Sh550P2Zeb3uRHXXDm2bpITNEpUfrSQ2mMO030Ha +kPw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=9OoP+ogsy7Rl13GlG3dtRrDXYctB3Em7Ughy9fHmJoY=; b=DBUN6Eqf6/smpqmGHjBvZ4J3viXswkZgJW3F10insH7rYfxtXyBHLKnIycE4ZjE8HN 1ZtR/QbL46cmovmPV7+sHC9CXVvomLPxPYHvWPiIFI+pW57n4QillCFMbcwIGZurXkhW LEeHlRoYQ/+tf01/ynxFIF/xYlBm8xCnLSXyjeTAUVlUEcs24C/m7LRDpN0y2fKmtbbf ZnVaZdTQSxJPjpard/uctor39yfm7lEqA4Y4Bk5G4okvQAcXJXOp1VMVZKy72YnJjUi6 4jtTlbl+V4BUJm9FO7nzizxKCiHOk2mpRrSy7NQjq7dlyIanlVf7BMEybSXK8YmySQ2g GRXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IBT9Unu8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id bj5si281860plb.227.2019.07.18.13.12.14; Thu, 18 Jul 2019 13:12:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IBT9Unu8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2391446AbfGRULy (ORCPT + 99 others); Thu, 18 Jul 2019 16:11:54 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:41838 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727687AbfGRULy (ORCPT ); Thu, 18 Jul 2019 16:11:54 -0400 Received: by mail-lj1-f196.google.com with SMTP id d24so28583900ljg.8; Thu, 18 Jul 2019 13:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9OoP+ogsy7Rl13GlG3dtRrDXYctB3Em7Ughy9fHmJoY=; b=IBT9Unu8CAt5magtNHgN/3TRHpkacwbY7EaQeFguDuYVsR0cEnZf590wWs46d1vcy0 GLNJkt7fs3SkPVP8Cwrepy+FBwpGsXELIonoXZ3ZhC+CiRBH651BOvRuOM463I0ajOAu Qquw+rkPdzP10fhbWouZDNbPpfe2XwRIl8+sZD2ZJcYiwujZIFG57Q7dvVA76p9WeH5g NXW5uIKhWvE1gwoHCUdQpNxMyF1QCkv4IZlXMYLUqM47usnzC9u4IrRihYPZ3gVSg9mM b6FLPq3IQLlmpxfxSC/mq4rJthGjqV39RR9IrOlopnZJqX6ycx/a78uCQHZnhDabaMKU yzXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9OoP+ogsy7Rl13GlG3dtRrDXYctB3Em7Ughy9fHmJoY=; b=hSvbvWLwL3hjNdNxj/EXgfywvArKxoNI5rlzF6OCTxoUOX6gjSbIBxBa+uq3SiXd3R h6JrvBwwF3xfKaspT85xDndxW5xR4ZTnRjG7YLvobFXJ2tULZvI9lcA3+xsw194hTlii p6Z5L0ALextRznk7HWw/R6bvnCtysejve6xmCU+HC98iKK6MVpnWY9adGckaPE9dOZKH +JYc5stvYBpIvi3TnqXlFW6gqfZyW8DO+8zIqSidGkDCU0uXb/1AYHtvCZWUQn1JgJ63 cErUXaDhWuLhYpR7aAjngHuSVmi/gn5GExnuZP/i2JTmLMOu20Jv65kBxDbHHxd7NuPy ZB8A== X-Gm-Message-State: APjAAAWPZvmfWzNPjagZzcqOLxslFHAov8MlHIfpcKEAz3u7NXk+xuSa ZOyg0Jg0uM3p5iP5RVo5wCwOzmR3 X-Received: by 2002:a2e:900c:: with SMTP id h12mr24182091ljg.197.1563480710808; Thu, 18 Jul 2019 13:11:50 -0700 (PDT) Received: from [192.168.2.145] (ppp79-139-233-208.pppoe.spdop.ru. [79.139.233.208]) by smtp.googlemail.com with ESMTPSA id t137sm4111643lff.78.2019.07.18.13.11.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jul 2019 13:11:49 -0700 (PDT) Subject: Re: [PATCH V5 11/18] clk: tegra210: Add support for Tegra210 clocks To: Sowjanya Komatineni , Peter De Schrijver Cc: Joseph Lo , thierry.reding@gmail.com, jonathanh@nvidia.com, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, linus.walleij@linaro.org, stefan@agner.ch, mark.rutland@arm.com, pgaikwad@nvidia.com, sboyd@kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, jckuo@nvidia.com, talho@nvidia.com, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, mperttunen@nvidia.com, spatra@nvidia.com, robh+dt@kernel.org, devicetree@vger.kernel.org References: <20190716083701.225f0fd9@dimatab> <21266e4f-16b1-4c87-067a-16c07c803b6e@nvidia.com> <20190716080610.GE12715@pdeschrijver-desktop.Nvidia.com> <72b5df8c-8acb-d0d0-ebcf-b406e8404973@nvidia.com> <2b701832-5548-7c83-7c17-05cc2f1470c8@nvidia.com> <76e341be-6f38-2bc1-048e-1aa6883f9b88@gmail.com> <0706576a-ce61-1cf3-bed1-05f54a1e2489@nvidia.com> <5b2945c5-fcb2-2ac0-2bf2-df869dc9c713@gmail.com> <20190718191820.GG12715@pdeschrijver-desktop.Nvidia.com> <2274fccb-59d3-824c-cb97-55c23a4eaa75@nvidia.com> From: Dmitry Osipenko Message-ID: <5c6e17ed-bdbd-fa27-87e7-aa95dfa7c591@gmail.com> Date: Thu, 18 Jul 2019 23:11:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <2274fccb-59d3-824c-cb97-55c23a4eaa75@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 18.07.2019 22:24, Sowjanya Komatineni пишет: > > On 7/18/19 12:18 PM, Peter De Schrijver wrote: >> On Tue, Jul 16, 2019 at 09:43:16PM +0300, Dmitry Osipenko wrote: >>>> CPU parents are PLL_X, PLL_P, and dfll. PLL_X always runs at higher >>>> rate >>>> so switching to PLL_P during CPUFreq probe prior to dfll clock enable >>>> should be safe. >>> AFAIK, PLLX could run at ~200MHz. There is also a divided output of PLLP >>> which CCLKG supports, the PLLP_OUT4. >>> >>> Probably, realistically, CPU is always running off a fast PLLX during >>> boot, but I'm wondering what may happen on KEXEC. I guess ideally >>> CPUFreq driver should also have a 'shutdown' callback to teardown DFLL >>> on a reboot, but likely that there are other clock-related problems as >>> well that may break KEXEC and thus it is not very important at the >>> moment. >>> >> If you turn off the DFLL, you have to be aware that the voltage margins >> for DFLL use are lower than for PLL use. So you either need to be sure >> to switch to a frequency below fmax @ Vmin or you program the boot >> voltage and then you can use PLLX as setup by the bootloader. For OVR >> regulators you can't program a voltage without the DFLL, so you have to >> tristate the PWM output which will give you a hardwired boot voltage. >> >> Peter. > > Yes, we switch CPU to PLLP and then disable DFLL during suspend. I'm wondering what happens to T124 on resume from suspend, given that it switches CPU to PLLX [1]. I imagine that CPU voltage could be lower than needed if suspend happened on DFLL. I'm also now vaguely recalling that CPUFreq driver was disabled for T124 because of some problems. Or maybe warmboot code is actually touching the voltage regulators? [1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/arch/arm/mach-tegra/sleep-tegra30.S#n389 That is also should be a problem for T30 if voltage scaling is happening and I have some patches in works that are switching CPU to PLLP instead of PLLX on suspend/resume.