Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2349364rbb; Tue, 27 Feb 2024 21:15:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXwKdReeyO5nxE+P9tKsj8GZdl0+J5p7SolGXWqenKlJxol4eD9c4fOEtcONYVk84ZlrbaHFZbTYaMGFOVo3Wb+t5o/woDxEjkOwgSqDg== X-Google-Smtp-Source: AGHT+IEMTLlRtZhvbzC2bY8z5S1UcuXq0s1a3ihpJLwKQ5ycmqhcyYGR5Dbl2hL4VkEmXmcGhp4k X-Received: by 2002:a17:906:2347:b0:a43:75ad:6d56 with SMTP id m7-20020a170906234700b00a4375ad6d56mr1355527eja.18.1709097334360; Tue, 27 Feb 2024 21:15:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709097334; cv=pass; d=google.com; s=arc-20160816; b=MQTeb53Faw/2N9lOHxPZKJ5xYCMDam7v43xx9P1TfFjgcI1/gPgoVCbbXwQ2F2viez SBHV0HtydbFY0ioTK7ScPUhzs3mh0CAN0cDrP8H2bOJjEuniX5FRu695siy+u7pu4QeN e0/F2VJVw4YEO+pkY3z9XDvy/bc+pvASoBTWZeYLEXygThopsFrkIf2oA6+VIMg3sIhY 8fM08gwTrb/VUgj62CrDCklnzuXD9iMkgAPuU7xgPgkjPOTkkhXwoXNFCUG9xLlmj8MA ZZu3gJy3GiQlTLJSyZXWNDW59P+fthpaHTwqDPYer8QZHZpJux4yB51Mr55WlP6e/UPq 422w== 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=ONy1WksZsqY9VpOjDPFbVNytmYt+T8OhzsGJsHIhY8M=; fh=qOds2xKRJvXMMFdsYnmkcCNNIySBt8XDlfPQuuti39s=; b=nV32Tm7XHFSCChNtop/smBtGY0QtSun2lorm47GhnbIs0lV3aczvv5aUxkGK1TbKrO ZCBXOXRE/dT2kW80kfwziuBleQse6ZJC5Dn+mUSywKBI1wFJYDHoBbY311fMLr5ZFM3M hElj6agPVfPfOpd+44lsPl5GgFFvXyQC8NTTLlRJhqIM9wQQVRIAS+AanX11rmQqjp02 1RTTOI00hEHykKfXOqRWqb40IQqg50NqZXBqNSm3bKfljeyXkT22tTmmJ48uIjMS/LqU XZArURZG3VRfvAMFkMTu41EthXT0ScFNTuabFJ0Zhci1O7kG8DB+yAPcwtRCqRPe+Zc4 Okfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AJARjKd3; 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-84526-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ot6-20020a170906ccc600b00a437bfb4d5bsi1364699ejb.82.2024.02.27.21.15.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 21:15:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84526-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AJARjKd3; 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-84526-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84526-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 21D381F259AE for ; Wed, 28 Feb 2024 05:15:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 253F520DFD; Wed, 28 Feb 2024 05:15:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="AJARjKd3" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 0851B20B29; Wed, 28 Feb 2024 05:15:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709097324; cv=none; b=L2NQzPLwqta4u5bTMjSCsim1TiphbfVsGRRgj6/2Rdfo5ke876nfn/jSPBiAfg9mQrh88StDiB5ztC3kN1b4isFFpdjgs87qpyPp07wocWzJRdUW8Gj+jP7lEdcjMjtGVs8coJ+t+ftIdubGIEqiX0WEj3LiKU6awkOY+4fedp0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709097324; c=relaxed/simple; bh=YMpvLnQoz8AsPgpA2MFPC0lyHfFC83eji81qUPET9ak=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=RC8copKiOP9yA9499Ti+pHgqBa3yZu2oBz976V4v88szI+YbZPrQMO7/UOXiX53VRCriBJYjSWLR8rNorXiyqK001YQl9SQEtYa/wGfxv/t/EFrnsWyccOqjCLjOBzB+eK+SJ33uJ+u3eGsEQjIRRFM5GE0hvL9Ftt+tH9GlqlA= 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=AJARjKd3; arc=none smtp.client-ip=205.220.168.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 (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41S4fET6023481; Wed, 28 Feb 2024 05:14:55 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=ONy1WksZsqY9VpOjDPFbVNytmYt+T8OhzsGJsHIhY8M=; b=AJ ARjKd3w0Ueix8Mih27ko6Yvcne25xh1TBqz+vjOp+cWa54kr2YBc13klcH4avJZ9 DuiGYrkkket3es83Nu3/btju4sLbj4KdKq6tDC5jNejrhDqSgdoCiA3ysahFWmGK YeRjmmGZ/ZlSsBpREneeJj858GiQ4SoNLlaxhGc1ZqUidGpdXXY4Cr4E3gV3UaJ9 /yQjBwyZOUfS06eiPOcqmjKSA/Lh/zqpxqPF6nqv0o0rGzFFogqYEVXSy+RpEgbt B/c3MUlZnaAI5UGBy/CAtAuR0OArwSpQWX3HGXebYNUU/OZk82f/MPyIu7uyd9TY +sFqhgLBFXwMUQWLHXiQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3whu8k0b2k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Feb 2024 05:14:55 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41S5EsIb015828 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Feb 2024 05:14:54 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; Tue, 27 Feb 2024 21:14:49 -0800 Message-ID: Date: Wed, 28 Feb 2024 10:44:46 +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> From: Sibi Sankar In-Reply-To: <20240228050703.lixqywrtxravegc6@vireshk-i7> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: 3PLJLITKKh5u0xgINhxue5qfBRIknhNp X-Proofpoint-GUID: 3PLJLITKKh5u0xgINhxue5qfBRIknhNp 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 priorityscore=1501 malwarescore=0 impostorscore=0 suspectscore=0 clxscore=1015 phishscore=0 adultscore=0 mlxscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402280038 On 2/28/24 10:37, Viresh Kumar wrote: > On 27-02-24, 22:23, Sibi Sankar wrote: >> Fix per-policy boost behavior by incorporating per-policy boost flag >> in the policy->max calculation and setting the correct per-policy >> boost_enabled value on devices that use cpufreq_enable_boost_support(). > > I don't see the problem explained anywhere and the patches look > incorrect too. The drivers aren't supposed to update the > policy->boose_enabled value. Hey Viresh, Thanks for taking time to review the series. 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 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. 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. -Sibi >