Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2272457rdb; Mon, 5 Feb 2024 00:54:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgl2eS/rA+9btzB63iMZY323RlD8kR487cCtAT0ZLQ3wPBGqThZEAaDKFN8lWK0rE23nog X-Received: by 2002:a17:906:22d6:b0:a36:c845:86c2 with SMTP id q22-20020a17090622d600b00a36c84586c2mr7469831eja.51.1707123299651; Mon, 05 Feb 2024 00:54:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707123299; cv=pass; d=google.com; s=arc-20160816; b=ynYkEcrULVmLTj1d2jYOWYu1Zdto+d8YYZiLKvasXXyONEMLHYfBDCW6Hkekwhmkp4 GrEfPTg/a9SCTeDctl1M1yDYB7QnEicwLB3O4d/4pokwCVZ+lCFBiHv0KVEwZJUGoJ6H 4t7t2tssvYlnA9QnL6C6NZBHg0p6Mt/vSHD+WHeVucWQfnlBHe+nHzWlzVKL/2XkPuZB FC1Sm8KG0ssH0+u+Wf8lYLKlBJw10j0fC4t0QrOcMaBAyTUHwe2NGIHAgyZrUs3SIVVt ivzaCUx5AVrUegSOHzTm/1apDD66Y9AzTqDWaTfUC/GzeVoihjZbGA30CJMYPBV/vo5V 6swg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KxN/alX9xe1YAli4rdXZnSsmzCtviymWvvocf9KgwhY=; fh=kQk0j6F0Kv1Y1jdzvKdNl0uHaJW0+fmfOcRJnzBjVog=; b=qVvlP1pJt7BPXT1X67MGeL4oJL3BC0aOyh2Z1tZ2Ro1OoIyTOnRsh1RwQZvVr+pOMM rFGYYAtaMcmJI8rglFWDlZs3KCHZYoSO16ir6v+dpxdf/q4F+oDh14NCOIl6Fs3pRvHD l2bVe7whfXsZEtSaNHT3iMFIIQxPgWdeVgZexmIOkGv0Rnig9bfjtqesTy77Vf1hAGnA jFz2K+/1f345h87to8MOLCTO1R2C0OtjczlKu1CtdXSefnx+eJNq9TZdcEPal8NzpR3k /qFDM9czDTN0u2nfduXOWB/8+XTwClgknH1JpoyU7F1JapPHUyQU6a/Xyqi2xyetraFo tYzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cC6I0Vj1; 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-52230-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52230-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; AJvYcCVekMr+X+dCeywTTRnF2l2a9B/EaZbo/xvpz2N/lQuNve2CvzRLeOjEkgob2EbxSwiYUCMdbQMqUKDwK6uobITL/0WvvqFijbqXO/JjnQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q4-20020a1709060e4400b00a376273c204si2253763eji.168.2024.02.05.00.54.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 00:54:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52230-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cC6I0Vj1; 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-52230-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52230-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 65E211F231BF for ; Mon, 5 Feb 2024 08:54:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 366CC11C84; Mon, 5 Feb 2024 08:54:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cC6I0Vj1" Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (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 06722125A1 for ; Mon, 5 Feb 2024 08:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707123288; cv=none; b=pzfNVWMjlZ1KqPPGzokg+ZWr/DXdQQFmxPWLDTeqImf2lfGrkcRRt0RYfgvNeV3s1AuqeMsrdRDf/JjfXfG3i2a2vysC/ZL/OpGyyE5uCV5udlE3XuTu/Gqmlz5j7JdjwD1Ctd7Ynu7ol8YR3/klkuYqNQisvV8KKTuhIBp6FAg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707123288; c=relaxed/simple; bh=HGW0tJgQKNoHi75+5RzIYowavHplCDKrjC1m5Pju03g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YEHOPPq3FTNDuH5qp2Lie3+wa/PtNcBpRR5k2eLexdArv/RqoWb6n1q6L/Pj65ODSYVYYa+Uy/dLxjg9S6T+kUWvpBYDhqVXoDGz9JCwf9Eo2bqojGYoh9eM9PPBmkzYk9AR+wVCkFZtRIU+VUSRaYTbOkirn9khv788DVQD8ZA= 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=cC6I0Vj1; arc=none smtp.client-ip=209.85.215.171 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-pg1-f171.google.com with SMTP id 41be03b00d2f7-5bdbe2de25fso3982416a12.3 for ; Mon, 05 Feb 2024 00:54:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707123286; x=1707728086; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=KxN/alX9xe1YAli4rdXZnSsmzCtviymWvvocf9KgwhY=; b=cC6I0Vj1h8oKkPc9CoYNNYAuvT8iFnpkYFDToI4KEo5h1wyty8gPLb9Y4Me7VzIqAe fR+j58tMikYC6c1I667ZNGeJQ97Ah9Fh7XKNc+oUDETgykEnClsWvE/ZffsMZxB5BpvF F0bZanjwC7/emenQssO0oYtpmG86n8RC0pRCr5uz7UxgFuvnUgxO+/5wMzL9oKQfqkoG VX6sMeuErF0i2EGqxtMjL1ZnE7aO95pm+hI2dJ7hmCeZxKTVq90Bw2nb60TLOAv7uLDE BlVXvRiUMaIfk8tUP3gjw6D5TOa0Vb0Fv/4XFWOBnv2hAArancmBbDyGkXUOz+4g/Pnt Gkkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707123286; x=1707728086; h=in-reply-to:content-transfer-encoding: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=KxN/alX9xe1YAli4rdXZnSsmzCtviymWvvocf9KgwhY=; b=ahMRIHuu1rCyDK+fe220iwrYxTlyJ70hsNt0QUfZ6XunLScIae/MSAujFKbubSuKb7 /vFJgMoiImBaVtFsKQdtczQJoUXKwSk0iq1uDn+Gp6egSs3G8983CgKWDtGGd4hxKB1E +Tm3BKREJojffyuaoOw0e4rxvyrmyaxhEdvudKbA5X5YeqcgXCIdKOz+m2GbRgoSqd6y WQ1WUu4WDpSDmfuJzPnL7yTcdXkcv6EX5d6nedwpj2lupCPoTiU2+ARNiZX/LeOKLbRS wTWdVlI4gYZzLhBnI0W6/vBu1qw10lLv8ql4Udx58VVwSVqaH+4fHNb2igDDj+A2aAe9 +Llw== X-Gm-Message-State: AOJu0YxxosPSX/6r58AHmIGncy/nLf6xQRjM/aeaMfrhmdDlkxXK/tRv yCVbUdjIvPa4BK1zIKpD2rN09COkrdKPip1IuZrvhHizVIbl6pv44SHG0UhD1OQ= X-Received: by 2002:a05:6a20:9c8d:b0:19e:4a68:46d0 with SMTP id mj13-20020a056a209c8d00b0019e4a6846d0mr11275810pzb.60.1707123286356; Mon, 05 Feb 2024 00:54:46 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXZZUYF3cKHywyNWGvGX7SyQIdnMNdOQ4vsk42dPgyyLDeJ1kVEpVFHul7N2QV0kaCgljRgXgwp5o3TIk/EaX4lI500LpPS/uaZAzO93YTmfneFWGrogzsHZjzfcZc9S7cjwQh4Cc/KXJ77IYdo4TLju8dHRP07SJfLYB43Xkzq+Xee0uQe6dJoDfoj9yxsilOVlpo4FgKfjcKz3VzHdX6oWwJblUnKHzH/8ogOaAZkNv4= Received: from localhost ([122.172.83.95]) by smtp.gmail.com with ESMTPSA id p8-20020a056a0026c800b006e04553a4c5sm1313493pfw.52.2024.02.05.00.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 00:54:45 -0800 (PST) Date: Mon, 5 Feb 2024 14:24:44 +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: <20240205085444.2owfuruucm26txt3@vireshk-i7> References: <20240204140928.2865-1-sensor1010@163.com> <20240205073814.s656yzrv56tecji3@vireshk-i7> <7654198e.15f6.18d78668d9b.Coremail.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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7654198e.15f6.18d78668d9b.Coremail.sensor1010@163.com> On 05-02-24, 16:33, lizhe wrote: > HI: > I think not. > It will cause the following changes: > limits_changed in sugov_limit() is set to true. > This will cause the modulation interval to be invalid. > The system modulation will ignore the modulation interval. > A modulation request will be initiated immediately. > > > As shown below : > sugov_should_update_freq(...) > { > if (unlikely(sg_policy->limits_changed)) { > .... > return true; > } > } > > Repeatedly setting the schedutil modulation policy causes the modulation interval to be invalid. > Why is this necessary ? This is the penalty being paid to keep the interface simple and consistent. Playing with sysfs can do such minor things. -- viresh