Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3020137pxk; Sun, 4 Oct 2020 21:57:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyetb6KwkS+rfZXpjyeuRRSv0HIhKRMItC40OiuzeKKysLFr3IhZqk4eL7R6fTu2DrzC6yf X-Received: by 2002:a50:ab5b:: with SMTP id t27mr15089654edc.281.1601873870527; Sun, 04 Oct 2020 21:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601873870; cv=none; d=google.com; s=arc-20160816; b=Gs5SmQhXOCumduxs3x+FLm4c/5ZqC1wsWbAYdeoRahhl6YBK9kePCJmk+kJBh1DQeR hncQudXh/QaUBW9WHdWeRyzICGj4ttEwboRWjjDv6f+v0vzphk3+izg2OGGdNGrjFP9n ItJCl3Qk01QPBw8bAbj3+DbDBMZNoSE53e7Sq0uHUMv97eWCR0VcWd501v8YQQYEpUjH CuD5HKwmC68AFUSs9oaGIj6piyuz74D3sd6rPno6h5FZqNxIEi8/IB4LFynkkBPzms/x 5KqfaeDjEmZ0VdRnxcrxBKf8V0xnjlYJNGhx7IX0yX1gSwqRkX8iSqTlAu8PddfJh6b1 c5hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wuaS5eoV+4nKA4VFTKBSqLfD9xKQazApFVRKGy/0lFI=; b=IZ9Vw8m77Ch9yQFedJhA5dc2zhkMvTn5xx42bB2FPIfp+62G55+R8bZzaiPUa0wJ4h fnHPqYoJ0Sgu+M5w4TZ72ANilhEYdh/SZDTDo95iwf2UbVfMYCSLxMzIiciM85ExNvls /UJNjkxvQBWKaXTeQWncgOJuczCDStZHSGHfSwp2o9a/NPc6s/QOT3Lb5EunihY4gXxG oE6cZufTYELJgUv718BDcpg1ihexqIzwrgveWu6KhQDDc4USB3ER0BawzGZm2YvceaSN RFxGDVmXioPath2M/cZkFAfgpL7PnJzLHdWxipzfkFw3fsnVZwIP+SxjvCXKQrw3tuw4 GlYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l5zJxdYM; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c16si6321324edy.220.2020.10.04.21.57.28; Sun, 04 Oct 2020 21:57:50 -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=@linaro.org header.s=google header.b=l5zJxdYM; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725865AbgJEEyU (ORCPT + 99 others); Mon, 5 Oct 2020 00:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbgJEEyT (ORCPT ); Mon, 5 Oct 2020 00:54:19 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63481C0613CE for ; Sun, 4 Oct 2020 21:54:18 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id i3so4775727pjz.4 for ; Sun, 04 Oct 2020 21:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wuaS5eoV+4nKA4VFTKBSqLfD9xKQazApFVRKGy/0lFI=; b=l5zJxdYME3oq92mSrDYLm0d0cCxlAMOfFeEdnzoaIogFaG3LCq0FidCwSStVutLvyx 0wv96FjK586m5ycfowTJS8JHcNKOIj85DI18zCUfDKwcxnbEJZVTtF4FTJFjDGTXus8l YXQWrqgzelB5W0jNefaUuShjIwPewvlrYgXSaqp7bsM3/DqdCi8KMLtM0nopUiGlBlGe m6y0i7ZHvckJxDBDEbCXSSflghzhBCIiFRpC9GGZ8o+VfSqmtbumc5SHclxAk/RA7mNm 9DMJxniiTVDg76zGYXQqvD40l923tkcyRUcrtB3DUlHsbWjO92CGL8l1A0TxipSv6fDb L1NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wuaS5eoV+4nKA4VFTKBSqLfD9xKQazApFVRKGy/0lFI=; b=bIneVfLWLEpLTNtSc3HFdQXW4aZ+EpgQMGSxlebSj0AC2wo6VJOdGnq9ieIPKq7K4P 3QXyDTOytTZtMhyvIhC1UhipStW+2FEovEDHtbPNTvEkdNkNYIgKJy+hdI4QhSJ6Zr58 gok3Fo/31pQQMu0NGBC6qNwJd91pvqzmFgLJ1M4sessNj0XK4M83XtBKTPtvlYjCiuJj LHmSk9b1GZT55zGy8h5kz8863Ydlzd7sEOF/9gV8emdSCIVikBq5wtKhRcdDYzAW6ebe RaPL+f6S3kccALSiWesoAed/ZGQQt6w0+WoP9Kc1jJEKlFX83HEnx3l2mn3TIdGigA8I 1nag== X-Gm-Message-State: AOAM530CBcEEm8Wem0YWGPy00bfsIW4Na7zexmOKpF8bqhyFlX1wCqeN uHrWKWmHQOfarrxGAOZVpjeLdg== X-Received: by 2002:a17:90a:528a:: with SMTP id w10mr14695733pjh.107.1601873657786; Sun, 04 Oct 2020 21:54:17 -0700 (PDT) Received: from localhost ([122.181.54.133]) by smtp.gmail.com with ESMTPSA id n7sm10536512pfq.114.2020.10.04.21.54.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Oct 2020 21:54:16 -0700 (PDT) Date: Mon, 5 Oct 2020 10:24:14 +0530 From: Viresh Kumar To: Sumit Gupta Cc: rjw@rjwysocki.net, thierry.reding@gmail.com, jonathanh@nvidia.com, linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ksitaraman@nvidia.com, bbasu@nvidia.com Subject: Re: [Patch 2/2] cpufreq: tegra194: Fix unlisted boot freq warning Message-ID: <20201005045414.fmntm7ejad7zxcrv@vireshk-i7> References: <1600276277-7290-1-git-send-email-sumitg@nvidia.com> <1600276277-7290-3-git-send-email-sumitg@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1600276277-7290-3-git-send-email-sumitg@nvidia.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16-09-20, 22:41, Sumit Gupta wrote: > Warning coming during boot because the boot freq set by bootloader > gets filtered out due to big freq steps while creating freq_table. > Fixing this by setting closest ndiv value from freq_table. > Warning: > cpufreq: cpufreq_online: CPU0: Running at unlisted freq > cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed > > Also, added change in init to wait till current frequency becomes > equal or near to the previously requested frequency. This is done > because it takes some time to restore the previous frequency while > turning-on non-boot cores during exit from SC7(Suspend-to-RAM). So you are trying to figure if the frequency is listed in freq-table or not, otherwise setting the frequency to a value you think is appropriate. Right ? This is what the cpufreq core already does when it printed these boot time messages. Do we really need to add this much code in here ? If you really don't want to see the warning, how about fixing it the way cpufreq core does ? i.e. with this call: ret = __cpufreq_driver_target(policy, policy->cur - 1, CPUFREQ_RELATION_L); -- viresh