Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1876217ybd; Sun, 23 Jun 2019 18:59:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHqsbNLNJKxeSaDuQ22WE3qF2pu5qF4G1HLG1FHKJlYMgWC5Kcap1OQZuT7NJgbciJjpmk X-Received: by 2002:a17:90a:258b:: with SMTP id k11mr20852490pje.110.1561341576658; Sun, 23 Jun 2019 18:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561341576; cv=none; d=google.com; s=arc-20160816; b=IxhXc3bmr5OS2mUTG0Jb4j+TdrwZYIXB4mOuFowxNVxVzs+DU8Bt4xGechgKa6SziU 5VQyBNB+O8U5jvxyCBbZGzyCaCxqia0gXQLvTj/be2DJ9LoqKYi7lV0KLLhPj9OeBRQR P4wZyx7cfOSkH3H1ZbNHM7nmBcx/hdr5vp3g3ZPwy1DbwdeRr4Id0bzGjArm9dIHie7m K7EVFRHibCVI/gXgO3F2F5VrN6ao9zpv83sn9e/9v7JbYAY5zUsbq41sY7QtYSDM7qgJ tCOcdHG403t5gn+PQxZupTI+IERVsXRgAREycQqpjQyVreLTtLbxCNQW//trYutA5cyL 1ukA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rPiHCgSWlyFbcnT0W5lDiXP3U67kYIPo6pYV48G/ks4=; b=Kjuq0RDhLxe0VpNasRRESoAqGjlYDZjDFoZYWjDJgF9dOuSwDKeB8PNBDjtBEmWvMv LykPd6oDY+AOeVLZ0C/pKAlsMQotv0AXwuS862nf9IBsuQcNagUXfM0ApifYpsWsMzdg lGkcMrz+2TFfzwf6bqMOkKsX5Y2Ie2Mm4SQxFlo8HzJ27ZO90YmUyeHxGIQA3HPUgcfH L/8rCBEXyBypSXXmZJ/jDMWO80mN/+d/qQemHquLnEXjRClpw85g0OBJH2rzDtPFBTWB TXY53RZkELawhFOHWYhKwbmjAouLmyT8K3JIuhQSvkU8rHNm7a3DyPvM11qC1oDyFsm5 HEsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C1DpDdnA; 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 i7si8189684pgs.560.2019.06.23.18.59.21; Sun, 23 Jun 2019 18:59:36 -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=C1DpDdnA; 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 S1726795AbfFXB5s (ORCPT + 99 others); Sun, 23 Jun 2019 21:57:48 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:34461 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726561AbfFXB5r (ORCPT ); Sun, 23 Jun 2019 21:57:47 -0400 Received: by mail-lj1-f196.google.com with SMTP id p17so10957939ljg.1; Sun, 23 Jun 2019 18:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rPiHCgSWlyFbcnT0W5lDiXP3U67kYIPo6pYV48G/ks4=; b=C1DpDdnAs/+ZUXfe2fzAHS/UGr5Kfwk03xsK7piYc3a4y31Wsl0HCxa1IPpTNCe/xL xIR5VtV2bX/3eiziVZQeieEbrrDaT8Bb5k1ZkD+eBL6HEvTYC4tFE/4IVgM75Jmf0leo 53+UZxGdQ0suo0D2va3pXO0JUx7BfcV3N5qZOCpqGnvGT4oHV7rc2yoisj1xpQUsRBEV F0Ui/7GYb569tH24oUl9/bWwawj92caTrnGQoDwlbcHepb/BYWchPrxaI7gxxZPyW81m A5Vml1XF/I/xqVJX7fnYJtjUu/gEb1/fdLxDQ/aooEHHh8DMuiAEFt1gnE9zDDtTKdGm xjPg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=rPiHCgSWlyFbcnT0W5lDiXP3U67kYIPo6pYV48G/ks4=; b=sfD0v4TweFsINSDYDJNi/t727YAITq11nTuitzKMe+Hl/5On0B6lOSTylpX5X8GAi+ rh/YQri1NXQ2TJZVTn4go8HFwYscBKXzrL8tTDUW7ffGnSx6QdkYn9c0pjxsQZPSq1io kUj4x7Jlw255O72yAQYqeCOCardHu0/ZbVsa1GTCC76VGS1v7miFbOsZYJ0D64h538UT 7gbrwlLJpHxNVXV3NvKEbYYgpiFENQPNT8w7Wgfag2WeWdMeQ3Lf5S6+9brgKk0PjXH9 nO+lqzEtXnLPLAnBBApyuucSvc+FqTpyAEBTwoPBbn/ecYB5ZGDnUGwdZj1CZox8wDzE Bc4w== X-Gm-Message-State: APjAAAU012jgqwB40vDPLLNTYCU0sv/iH+MMrLGmbOw7U+iJg4rWGCa1 NKPvA0zugIEG2n3TzLEOeD+JYegP X-Received: by 2002:a2e:6e0e:: with SMTP id j14mr12976611ljc.85.1561326520760; Sun, 23 Jun 2019 14:48:40 -0700 (PDT) Received: from localhost.localdomain (ppp91-79-162-197.pppoe.mtu-net.ru. [91.79.162.197]) by smtp.gmail.com with ESMTPSA id m17sm1460029lfb.9.2019.06.23.14.48.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Jun 2019 14:48:40 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Jonathan Hunter , Tomeu Vizoso Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 06/11] PM / devfreq: tegra30: Reset boosting on startup Date: Mon, 24 Jun 2019 00:46:53 +0300 Message-Id: <20190623214658.11680-7-digetx@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190623214658.11680-1-digetx@gmail.com> References: <20190623214658.11680-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Governor could be stopped while boosting is active. We have assumption that everything is reset on governor's restart, including the boosting value, which was missed. Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra30-devfreq.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c index 813b0f490b90..fc278f2f1b62 100644 --- a/drivers/devfreq/tegra30-devfreq.c +++ b/drivers/devfreq/tegra30-devfreq.c @@ -544,6 +544,9 @@ static void tegra_actmon_configure_device(struct tegra_devfreq *tegra, { u32 val = 0, target_freq; + /* we don't want boosting on restart */ + dev->boost_freq = 0; + target_freq = clk_get_rate(tegra->emc_clock) / KHZ; dev->avg_count = target_freq * ACTMON_SAMPLING_PERIOD; device_writel(dev, dev->avg_count, ACTMON_DEV_INIT_AVG); -- 2.22.0