Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2453323rbb; Wed, 28 Feb 2024 02:12:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWlcSlhRiYbeloo9TcYHdV1S6MFrE6DFe09FN2/lyA8uPMHR9ReM4QjE/b2bUpYPrhHO/+1MHNtxMwGl415lXzX7K6hoILHtSDKESxjlQ== X-Google-Smtp-Source: AGHT+IEuwzjw5faZXgx5VTakgfhUsufwxRzenbyj29d3gZRqY4CnKgDLCR5yD8VAKcXWVEzyumV2 X-Received: by 2002:a05:620a:24c5:b0:787:e41c:c961 with SMTP id m5-20020a05620a24c500b00787e41cc961mr5619500qkn.29.1709115126428; Wed, 28 Feb 2024 02:12:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709115126; cv=pass; d=google.com; s=arc-20160816; b=PEeaOoH1Jo/wJODOagiUDCyWBAeRJ4TihSsQAucCBvRNThgX3ta4ntrU/5J7nUPtML 8HerVYFTp0dPZg4ZMHU+LeK8qhaeK/SR4ZmRU2DbWOB21Mu+QnYIiM2nOq1rX2GYS8Pz Fn1xARzIHApwnDH2FgrrURqXaGS2DrIkYXZe3xSpm4HthcdeTe4gZ+ibJOAidyzgjO7h hIYJqlLH85YXQhsiZ9Y2gPwk/W32ei/BkWnXjx/gDwa0SNmFmpqTIida9/lmwpqTQ0MG LhSf86FrG2sccxUFf4OWWVo4wONSi+H52i9BsJoFGC0ceve5mngG+rXs7ESN75oglzl5 Fnkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=F/s+thCeoDRDTCkLO/eC1Mvzb84PqPQpXoHEQ1eWBiA=; fh=qOds2xKRJvXMMFdsYnmkcCNNIySBt8XDlfPQuuti39s=; b=GNp9fZOk57EYSr7eD7b4dAzaeQSoUrL0C+uRz6kvdJSdrllzHE9CQ0eo0UYUQvFPfp /qw7AC8/+6YjhQw91tdgWYhyLZvlhyQZxYxFHvoPJVcxIqqYgsbaQVxUV8IftihKO/BL oOvS5fL9SjTocTfPsAhF0jTdH7E1RdqxWXdpwYy8yNIZsftwpZeZExq9KS4/yPlHDlKc 64oI6mTxwfIVqIiTQwjPr7MTn7Ob31s/pkKPnvC/VfIq+u0FBlztOBVkZXH4xEqg+WKm G2MJhBKq9GkC5/vcEAcLhMuDErzsbq6KMsy0yslInK23lqFgt0TZEoNvH/EpxFFh1Z2T rSrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="A/Yt6XK8"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-84813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t3-20020a05620a0b0300b00787b952fc1asi9269759qkg.349.2024.02.28.02.12.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:12:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="A/Yt6XK8"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-84813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 85D001C22D51 for ; Wed, 28 Feb 2024 10:10:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8132D36AEE; Wed, 28 Feb 2024 10:10:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="A/Yt6XK8" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A27E3613E; Wed, 28 Feb 2024 10:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709115016; cv=none; b=fsQ1apoOtLZnc17sMXeQ+D7bEnZV1yMVbjM6aOz73MkPURJJ26aDbviHoyAWY5lbi+B2jCj/B9wWqDuancLCbSlt6lUhVKK8be0ZbL7n5xZ60h9XjPw43sLF6Wih2D7BOb17aai+G/xDw9aHSq04V/5eXPXPE6YGgDCcrvBQJ8I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709115016; c=relaxed/simple; bh=gDrqe1TCdETutZDRLxWC3iPRvaMUjmZdXz4Pg6I6EyA=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=VEonGOu6lz38hqwrokmXSiABa7Yvm8desQymJdzlfPawnT4Tju4u5s614EwkNCusoy35m06CdxbTWuvJTrkS1sWgEhD59vJ3mE7jZG2uLW/TyBjJlXpEm8B7RtU9jAf0MVc5V9KUsMeoy21oTB4VVJOUjRRsCTEAsra2XdiLxdM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=A/Yt6XK8; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41S6VSf8009700; Wed, 28 Feb 2024 10:09:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=F/s+thCeoDRDTCkLO/eC1Mvzb84PqPQpXoHEQ1eWBiA=; b=A/ Yt6XK8AhRgCQbjBtMjCSZqzDYrSnINWozkr0vnVTGqqJSVGHymK9ivj/k0x0o1uN WYGtIoILPxfjc78PTJA2OvnoML0+UUsGUo585Mz1fSiPpVKaYw2klS+rrwXdCLCT NOLUfZMGA963L5jPhQhT5QgIjm4N2uS2kmjpxTrQj63Y06y3+BDuTehFIK2+3y4O 5pb84JAY8o+RLBsmvEr/e2GS2g+5g4FFXlOGTMNsVqffYyYS0Fj8/f0QOlXMkGTH zAjFwwNcdU00wbbm8hT+H/ChkIni/GoHbS5kvBpqw3VrFXSkj4+lGzbX84rg/B7y zwz8ukycaCKE09OmzmFw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3whp65sgwe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Feb 2024 10:09:43 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41SA9gv8015023 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Feb 2024 10:09:42 GMT Received: from [10.131.33.37] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 28 Feb 2024 02:09:37 -0800 Message-ID: <9cc4e465-9979-e4cc-3d2d-84cca307f19e@quicinc.com> Date: Wed, 28 Feb 2024 15:39:34 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 0/2] Fix per-policy boost behavior Content-Language: en-US To: Viresh Kumar CC: , , , , , , , , , , , , , , References: <20240227165309.620422-1-quic_sibis@quicinc.com> <20240228050703.lixqywrtxravegc6@vireshk-i7> <20240228063511.rcntpb3dhbbhf7fb@vireshk-i7> From: Sibi Sankar In-Reply-To: <20240228063511.rcntpb3dhbbhf7fb@vireshk-i7> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 56b7fyYeCFjEwNtiQNInKEoxnAAVmICM X-Proofpoint-ORIG-GUID: 56b7fyYeCFjEwNtiQNInKEoxnAAVmICM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-28_04,2024-02-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 spamscore=0 impostorscore=0 priorityscore=1501 suspectscore=0 bulkscore=0 mlxscore=0 adultscore=0 lowpriorityscore=0 mlxlogscore=999 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402280080 On 2/28/24 12:05, Viresh Kumar wrote: > 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. ack, will make these changes in the next re-spin. -Sibi >