Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2247286rdb; Sun, 4 Feb 2024 23:38:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDoE6lLxwb1naTKL0oNl0F+TDRzIZI7eJ/OpqEKNvtiuvuGAh3qFb2PET1YendSkKp/sME X-Received: by 2002:a05:6358:5909:b0:178:d40d:3bfa with SMTP id g9-20020a056358590900b00178d40d3bfamr9380118rwf.23.1707118713708; Sun, 04 Feb 2024 23:38:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707118713; cv=pass; d=google.com; s=arc-20160816; b=gTNWyYnNV4aFx+4Jjf3tmxC5KPFtu2qtZtf05LH5+BL5x9L2xBLdOQ/I/CX4IHc8jv vP++9hnKghSRizFOvfgrj3PoHhtCRRZnPOBD1JQ5Mv6kp/7VzJF8sE6HIXvnKtSCcgSK HbowK3lIc8nWuhroTRYzsjf+LtM/st9BBcR9nNS/A5SeiR73rPQ23c/xL3iAtG1PUIyX ro2hYOZPW+m1urkCz1p344QiK+lque4fF45J3T+zGs4sfO5CB+9pAGiLmyT44hEUhUMy XI88MfIXjDt1UEHvQPfW5EEhJL5EeQbD7uYd1tE4VegPtgBGDBM1J5gf3ht0Sy5gvck1 uZqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WEP2pmkNFzZnlqpvEHga5Kb4ynnO9XIEBYA3Oat6G1g=; fh=37azNDqJYMGYkiMAj274uRgHwwgeVL690d7yZkg0Wfg=; b=H5yVuhz8sn33AXFGwZpY1tN7iLguzFbJ+XCm9a1xssJYJCSghC9lfd1uPhBDMf8rD8 vtHHpm5F7LVVca0T5mXwW9zYYpGy0SXL0y1t9BXI9+a0HF6tWwqI/8V23RRS/Q9PqAd9 QoPu+HlpKusEJlLsx5vEOT4rUV1PKJTJA72yT/ocKmzOP9OWXLeF1BN3eG6XCcnuGgoU 1teoBPnPap4DrXOOlAkKYi8kKKYZrJKh5AjP1rEeMKcUmnOKHUiobDoWES2wbJV2mp12 JW9MyuW1Cc2HmnKC7zuZ3kDYmu7P+5WU8R00MjC49BD1hc87e3y31cW6nvoZqnBrmtAm WMtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c8c9ZoTf; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-52153-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52153-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCUGL8b+Va5Qwcyqw9V1hSYT5bDKU8lR0VmF58S0PzLHEU/JUZusC10Bg+pZE5j0/Nu+FM8APRAp6G34epJiZ27wWaCyHuhrXG+1CgyH4Q== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g12-20020a056a000b8c00b006dff3ca9e35si2365242pfj.334.2024.02.04.23.38.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 23:38:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52153-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c8c9ZoTf; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-52153-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52153-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 072CC286302 for ; Mon, 5 Feb 2024 07:38:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8ACF10A2B; Mon, 5 Feb 2024 07:38:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="c8c9ZoTf" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75ECC111AD for ; Mon, 5 Feb 2024 07:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707118698; cv=none; b=u/d7gCqE1H7Cx5t8pFguSqFJoyXnI3xCOTQtXHcWaMK8eitN4rHoFj1fqvyK3vumKDRRt+EsiYozsl2ucshvyEXqxYZUz497O9/I/3NDXqZW5OxwJtXJ5en8Aiy2Q3XN8O+vB98VTEcS89Y3CTt4NoV/5Vp7i/O7E9v4ykopWfA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707118698; c=relaxed/simple; bh=52y/CrfpzJ3Xh30bgq6eajaZLuq7UfJcxxjBggUsG+c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=A20n2qR82qJUoO9WI8dpwt+SewA1qFwZQHeamd4QcZ4y9F0n8j339iQMt4XCIBrE4VAijn6T7NjseDyf/fKtxHlo+uuE+Zgsg9GMaBa8SSZI2iBUIHSY5Ey+RuwSgMRdMAsg/fAyuzPUvYZDeucXDQ6oqBS2HGWpC6G6bCV702Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=c8c9ZoTf; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1d953fa3286so28359535ad.2 for ; Sun, 04 Feb 2024 23:38:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707118697; x=1707723497; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=WEP2pmkNFzZnlqpvEHga5Kb4ynnO9XIEBYA3Oat6G1g=; b=c8c9ZoTfkp7/7v8b0UowSFGyT7hPEunpHvJL+fbuB4T6G/8Zz5iwBytFbyyRfI4T11 N2bMLZYo1Ty7OdAsuzVjS/BhEsJUCTBIfLnE3IQvwB9hR2OSu2M2wNS9cOtAQTq6fU9a AiwbnmRCvUQOSSjNHeH6+zQqATmTmguT82uwWVLHchXNhC/4TsABhfhBZzFnZJzB1CnG ZTCMrZPNs8lLed9xV7tAJgly2msuR/KM+7H5+64pjH7UpDAbpeOesvpj5WEDKacdKLgr NDqC5A1mbpHbpBz3pVcOVrkzAbOpTZZ25eKwUPG23+umddcIXQWnc8Vw7/l+OkVgNutB FQLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707118697; x=1707723497; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WEP2pmkNFzZnlqpvEHga5Kb4ynnO9XIEBYA3Oat6G1g=; b=w880GtdtJb8YnqS7EsYhYiLOJ/M4J+FpwjZNGuYVTc2RCu/wNfOnCXT7Xq1c89jnYN 1UMtjT5bBIq7/WXLO0fzRJD6Ayu/aDIO5DCnkH1mQodmq/pfxsd4+Dao7Le6i8ukA6/t rGfJZdnXRi7rL1mJXedgA7CJLk7gAqgIhb69NzBcOLYVeYHcrbJH3Y41JvybaO7xAHKP LBWYKM2cwKiS0rD2WkAF0jmDzbLtdkM4KZvsTUkYmD8v4f12mzBcYasVRdzwsvVIrfzK bxyTKzx8ebdp0iWHumT0hSfCIiRXimVbvYqaPTsii6sPait8VruBK9r3vsKXiz9epTpP f2Fg== X-Gm-Message-State: AOJu0YxGnJHSyqhlWm2HOTy1if/HOBNDBh0syyJethA7OOOt2b6JLh4t Ucyia846w5hr30h54nxRTp0H/+IGIrXkM6yQDGI9Zh/ByV2kng7iGxINCVUzYqo= X-Received: by 2002:a17:902:c40c:b0:1d9:a6e8:1c8c with SMTP id k12-20020a170902c40c00b001d9a6e81c8cmr5425593plk.15.1707118696685; Sun, 04 Feb 2024 23:38:16 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWYMMz6O7wshNnmmwb2g2UtuxwSEDKB8eA+JcSYIcn3qzxC3tKql8LoCrB5F01xUl96QuYhs7WYRdN+wWwKYzVDl4eoa+Kt7RMluv0C6fPHf2d+9Vnwup9YNhFdQfKA3XR6o+9/nX6kZavO1Sw2MXhz2mKFGn0kCQswpApauvEdSrKnZTZIQ26okCh0UmrHFMCFM86u3qNdZa5eFwbwLhB7vyIudVmMeSZoJKwiZqj1hRM= Received: from localhost ([122.172.83.95]) by smtp.gmail.com with ESMTPSA id j21-20020a170902c3d500b001d7610fdb7csm5608811plj.226.2024.02.04.23.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 23:38:16 -0800 (PST) Date: Mon, 5 Feb 2024 13:08:14 +0530 From: Viresh Kumar To: Lizhe Cc: vincent.guittot@linaro.org, ilpo.jarvinen@linux.intel.com, rafael@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpufreq/schedutil: When updating limitations, frequency modulation interval not become invalid. Message-ID: <20240205073814.s656yzrv56tecji3@vireshk-i7> References: <20240204140928.2865-1-sensor1010@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240204140928.2865-1-sensor1010@163.com> On 04-02-24, 06:09, Lizhe wrote: > If the current frequency scaling policy is schedutil. > echo schedutil > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor > This would result in an invalid frequency modulation interval. > In sugov_limit(), sg_policy->limits_changed is set to true. That will only make us do an extra freq change. What's the problem with that ? > Signed-off-by: Lizhe > --- > drivers/cpufreq/cpufreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c > index 44db4f59c4cc..a0af38fcb7e2 100644 > --- a/drivers/cpufreq/cpufreq.c > +++ b/drivers/cpufreq/cpufreq.c > @@ -2631,7 +2631,7 @@ static int cpufreq_set_policy(struct cpufreq_policy *policy, > > if (new_gov == policy->governor) { > pr_debug("governor limits update\n"); > - cpufreq_governor_limits(policy); > + cpufreq_policy_apply_limits(policy); > return 0; > } -- viresh