Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2373628rbb; Tue, 27 Feb 2024 22:35:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV/Cw+yZPLdhNy6wxePKI5p0u0IVI910XBKb0TcKyKG0wDd7HRqxjGu79Oz2Lw5ymp4pcIcbcij6sffdDLVTUp6prHPpkk79lkcm8d1Mg== X-Google-Smtp-Source: AGHT+IG2vb7MrBKS83V7xL68OwtlPWwgN9zCv93FJbNmIG8do/5WS8hvXVhP8/+bn2OdNPn+lj1N X-Received: by 2002:a05:6402:31f1:b0:564:c704:ccb6 with SMTP id dy17-20020a05640231f100b00564c704ccb6mr9044027edb.29.1709102127391; Tue, 27 Feb 2024 22:35:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709102127; cv=pass; d=google.com; s=arc-20160816; b=Ti/VHXKlpVhQfxmKkt7fHXFW8K5xvsOcvBI2s1xmS3H8Wcw6YvTjklE0nC3CCl+qct sOGaegFaZ8ul4qHae2Ri+3KKWWrEZlHvuICOpbDSFImHrdcoKcxw+CyDjBhY6iQIsvTx V5wCvXF0JopMh4aIBZ6lbkLJ5eD7UeOKgZrYt8xAlvfcP+DKjv1UIFXZ0VvQ27sVkl26 GIgTzwPMlxvOUyx1hNUcWfjjvWHm6msM71OoKo0mgJHE7iL5BgXdq13YLcC8O6uDJXpA hAVSATLQMSwl54B84HZxqq3ZfVwq457EgkgWtuXOwfyx4IICk7MDvFwaE4HgVmrlvVkf mI6w== 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=6Lc8F5AVcDlsSeSlXPJ5yXQGz/3wpAQDPwCrkbyIyyc=; fh=PIK99ATnkZ19+2ExDD1AaQCcKXAxWORDLBbdX906q5g=; b=Imhc2JN5qmJU0GtEdWSKyCE+J1WGzgqV9r3YtJ4+NFTog7rbfb1AQZH1ZbzgJjIHOH Y3HHfkzEMopu8Z1T4BoEP7YHLMNqwNLyOLLjPuKAjq+p9SsoVQ/6ZdK7yDNkXHyRn7ox VsRj+Zv2VFFeghc+VPyuldFKk14ZOrBiFP78GNniO+hXIbJGTOIIA3WKmYy0DHZ5SeVO XjNLeo6NrASZBdMkDTP17abck/lAAaTLOXQ0vuoX1FuzV+BGYC99YLOfp8c/eaEMpRzq qMZ66k1BlLk8Af78dv00zp8lzN4lnACzBHO7vFjLJcYwXNCVC+4SYzOZWXbreJmN3wJt WMiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lNZcFakJ; 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-84566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r22-20020a056402235600b0056649080846si1003866eda.311.2024.02.27.22.35.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 22:35:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84566-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=lNZcFakJ; 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-84566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84566-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 01AF41F2388B for ; Wed, 28 Feb 2024 06:35:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C2C222EE5; Wed, 28 Feb 2024 06:35:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lNZcFakJ" Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) (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 2028A23749 for ; Wed, 28 Feb 2024 06:35:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709102116; cv=none; b=SlubsNWpAzUCctXgZvajg22/gupuuqKJZoD6/QAwavdjp8vqq+Kdkbxq/PgNXbqswmn/u1T/jtzxID31y3Wd5/aMepYeL8VJQ9grBSov8+WX9v+6sQzQmCVGnzGmW7tFDaafGWfVwuU3NaPjHTZ0chx7OhZmp9Wt87o+CXRzZZ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709102116; c=relaxed/simple; bh=eq+doyRi95dVt5ktF60b56jBW71LBSSSuonN4nhu8oo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GYr6iTbnXjknNMJZT/0OT2ByC1oWhBNnh1ysT6C6+7QQVnz+I8a0bnqyr8CSbA0icAe+sn7TTazSvOW1BCBEXaXramYj/TDW1dN3xdxh6gQNv2f6pNNR4IzIoj50Uj2rorJ/28PHW86ayanAfw6Ad5b+ABFOadAO/apvtZZuH2Q= 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=lNZcFakJ; arc=none smtp.client-ip=209.85.167.175 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-oi1-f175.google.com with SMTP id 5614622812f47-3bbbc6e51d0so3906919b6e.3 for ; Tue, 27 Feb 2024 22:35:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709102114; x=1709706914; 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=6Lc8F5AVcDlsSeSlXPJ5yXQGz/3wpAQDPwCrkbyIyyc=; b=lNZcFakJ6DTvInAhOEwl0GF5+1A1PRQ4zRn4jGiDRu1u6pP8aMLsMvWzYiDY4veEyY 5Ve6Ug+xI4orNb1aSadht2sii16LlaHdRyFx802sYc4Q/xdgkluFkY4+C94O3t9hS/Nz 9vZPc6WX7bLm1sD2tN5nKSw6DAwX/D6CMPQp47DRk9PTKgmHcdiRTIdfyhTayvccHqkc yJKn00KAUw0WzMjcgkSY8sB88ILQp5T8iQnExkWdZ/tDJ6KnzYLwiLQP5MEVhYXIbk+E bq45fVeiSlZbsMbvKjDsH9JnQ/kAmy0k26y9v7V+TVv8LtAtOyYkTpUQ9IgPUTQQr96f id/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709102114; x=1709706914; 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=6Lc8F5AVcDlsSeSlXPJ5yXQGz/3wpAQDPwCrkbyIyyc=; b=v6Evxbi+ZnjDwpt97p4pQhKETFi8Uc6vkaCCiY16B3CenAY67gRP3lmRlDiLSMSTjD nWIrcTVCSCCmXind4aSxqjujuhn1w3TGC9GysEmtMicS0FnA5NMGfYMwG5pJYmo467j8 XOGAugr/Fk3atQokAsyUFNlewltFnV3tJ86FIqIbBcRPx0uu3OBjPo8B4mYfX0KrshaJ 3Bbq7Btz7UH1nwVzmfLLnfe0/5OB2e4QZl8CpvT6dTo96eNoz9t1120h6jYeEuNVRkky IllveeANly1OA8ot8zJACorR9wiYGbMPBjJ75vaIgbfSgbKk6rrTtMn8SqKZlh74OcBQ +yyg== X-Forwarded-Encrypted: i=1; AJvYcCWcP+ELjDLlINcULqQJJSjKgSTkJ0BwXVPejp0H54dzoFplRs2e+kXq1kn8a33bv+alGfLg+LuhWyln3lFKbBOwSz/61IMrX2nPG8Au X-Gm-Message-State: AOJu0YzHQCEDALtmjmtmHfojSYGR9WRgtswP9M6z+qxgKRJE2iyFsWXQ f/IW9eRQ/QyAPsdaN3fbruQyQNHkWyP1s7iL8Csi1fGV88EF4TZ7V6w3Fv3YgE8= X-Received: by 2002:a05:6808:14c3:b0:3c1:8412:e9d1 with SMTP id f3-20020a05680814c300b003c18412e9d1mr5307918oiw.31.1709102114175; Tue, 27 Feb 2024 22:35:14 -0800 (PST) Received: from localhost ([122.172.83.95]) by smtp.gmail.com with ESMTPSA id ey11-20020a056a0038cb00b006e319d8c752sm7100775pfb.150.2024.02.27.22.35.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 22:35:13 -0800 (PST) Date: Wed, 28 Feb 2024 12:05:11 +0530 From: Viresh Kumar To: Sibi Sankar Cc: dietmar.eggemann@arm.com, marcan@marcan.st, sven@svenpeter.dev, alyssa@rosenzweig.io, rafael@kernel.org, xuwei5@hisilicon.com, zhanjie9@hisilicon.com, sudeep.holla@arm.com, cristian.marussi@arm.com, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, quic_rgottimu@quicinc.com, linux-arm-kernel@lists.infradead.org, asahi@lists.linux.dev, linux-pm@vger.kernel.org Subject: Re: [PATCH 0/2] Fix per-policy boost behavior Message-ID: <20240228063511.rcntpb3dhbbhf7fb@vireshk-i7> References: <20240227165309.620422-1-quic_sibis@quicinc.com> <20240228050703.lixqywrtxravegc6@vireshk-i7> 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: On 28-02-24, 10:44, Sibi Sankar wrote: > In the existing code, per-policy flags doesn't have any impact i.e. > if cpufreq_driver boost is enabled and one or more of the per-policy > boost is disabled, the cpufreq driver will behave as if boost is > enabled. I see. Good catch. The first patch is fine, just explain the problem properly and mention that no one is checking the policy->boost_enabled field. It is never read. > I had to update the policy->boost_enabled value because we seem > to allow enabling cpufreq_driver.boost_enabled from the driver, but I > can drop that because it was just for book keeping. So with cpufreq_driver->boost_enabled at init time, policy's boost_enabled must be set too. Do that in the core during initialization of the policy instead. > I didn't want > to include redundant info from another mail thread that I referenced in > the cover letter, but will add more info in the re-spin. You don't have to, but you need to explain the exact problem in a bit more detail since it wasn't obvious here. -- viresh