Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp480700lqp; Wed, 22 May 2024 09:58:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUN6xDsIH1w3X4UuVaindoN8mE8orawb2G6xSYBmWcwadboj+H3/TZLSro3J7SCHV66YZr0H1aH9oAwyRIOdJfVVzfLW0BgAFThMdwCWw== X-Google-Smtp-Source: AGHT+IHbtHpwG2PAkspRP07aCBWHFjZgd2jFwPN9B266yG8sEM9Crxui9bOljc3L3QGbi/jHD+0d X-Received: by 2002:a17:902:e84c:b0:1f3:35e8:d301 with SMTP id d9443c01a7336-1f335e8d5d0mr5785725ad.4.1716397096035; Wed, 22 May 2024 09:58:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716397096; cv=pass; d=google.com; s=arc-20160816; b=QQ+N6M8N4OYWW2bTYj1fd3tRNVa79xK1wPyYlEXZ4bggrMUJqQM9QJssWjZyYSwk5i qkgtmFvNCkn9r9wxfWYhHqn8WjkadlGCK4QwUlshLHJEll0BQAAOcMasUx3X+UIiBT4W RJ/LzhX0zg3+y0fzh6tc2vtmLTknpjlKImvxKWScyIaUtDTVR4Goe5l0sAc+g3ZeXOnp thBzad3hMaQkCxZ34g79/VxbxNKlFIN3Z4jZ24NcNwoJWcOfkt1CMAv3lSzm1kwkoWkC vvRjpINx+0J96iS4VaxU35l8O0sUyq2XcL5TpPXl2Ax8a394mSzMvTJQ//qLTSxD2LNy NOOQ== 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=tOmL9/AFDibhDK1zK16WjKaKvy/cUQ2rVwwdEQpirfg=; fh=kxhfv9gvLmke1KVf3g9sSQ5wBvIMu/9WhmUugzEOB+Y=; b=i3yq8p/I83qj3GBzH1+1tEr9wazVFe9vzDq+SQCqrlRV0M4gP8mrQOpLEeqdon2yZb mzwrpGxQ+RuUOEPIAWUw4GIaOauIHP6db6OgN2dSmfII9epjDaW6ar9iB54HJchr6DgG jZ4ind2EHRkk6+Y6efxJm8dzDu2vPjYabYzEWdHzQdZUU+yXzsuirTSKGLYDJmMxKkO9 L61V+9izxe35v6wBRFZgTjh/cTrR3ljaRQ4bbJltOIcbcYABaOQXH8SP0EwpJ29xC9i9 797M5kciWqTg/nzFp96x2jYq2plHwoMZG5OU+2zu06a1iQwfhDoq376rEXQt42E6yo5W QMpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ibUtR13T; 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-186528-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186528-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f30af12222si34026425ad.208.2024.05.22.09.58.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 09:58:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186528-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=@quicinc.com header.s=qcppdkim1 header.b=ibUtR13T; 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-186528-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186528-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BA1B828228B for ; Wed, 22 May 2024 16:58:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CF551420D1; Wed, 22 May 2024 16:58:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ibUtR13T" 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 121E1141987; Wed, 22 May 2024 16:58:05 +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=1716397087; cv=none; b=IQU82oJtIaZx0M+uVtVFVKJmBT2wZ1aeKPezgmus9inON4KFLb1GTu6eVTzZ2KFfWLnFpJLzmg/9OkFeWNJh9WJMmaDTr4IBnW3kmIpEx0gVntmzvgBmlfv8Jwy6tALpx0xJzGK53xAdUSNUWGvthXEprEnqHSDkVcgONE1g55s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716397087; c=relaxed/simple; bh=E5h3O5cIByDRNsZcFYywJBUlIQEj1GS7yrSXZ4mA3nM=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hze7eP4sfLbtrBNkhviuvnbNePh9vEaZF+NhYkC5OzNV6/GXEEPlLZBQ0NrEBWV7WouC81GTiPbKXyvve3QWnzldlFgjaRHRHryh1WAnMM0B8omMF+oq2Mm1eErLLLgA/4owZ6T+HvKRAwMSpj41EJGqEWeyCSPueaTKuMUbGSE= 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=ibUtR13T; 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 (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44M8PZhH027702; Wed, 22 May 2024 16:58:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s= qcppdkim1; bh=tOmL9/AFDibhDK1zK16WjKaKvy/cUQ2rVwwdEQpirfg=; b=ib UtR13TjYa/u1fx38Tpd0Gep3EXQeWTexkYtwe/m1eTVLgpMBLOlanUPiK42dan+Z r4A6AFwvSNWCndgqC1oU472aC8g4dmNxo2I9mOLLHwTnRoCxfyPrUaMbirKlsl7K ftiQoBwRWA7TBRseYyzhrTaaQ9x18oO2pi9HPpzQ/ENh+oWL+yZtwK5X/fYja4jB NYkZLlLDc3GWwy1nFzk3Z39vwfAPjijziW9qRz8FI8xancMUHtOFSqFjjkTttsCy K2OAA+wHOdz5aDgxaDfapJQ1nnB1B82JPGvBBwrGBGjO19SknoiwroxEFF5m6CIV xEM1YDdROurqez1o322g== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y6pq5hh5x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 May 2024 16:58:00 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44MGvxhr014348 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 May 2024 16:58:00 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 22 May 2024 09:57:59 -0700 Date: Wed, 22 May 2024 09:57:58 -0700 From: Bjorn Andersson To: Shivnandan Kumar CC: Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , , , Subject: Re: [PATCH] soc: qcom: icc-bwmon: Update zone1_thres_count to 3 Message-ID: References: <20240522081508.1488592-1-quic_kshivnan@quicinc.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: X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: N8pLjYiFF5KKa0DlwwyVY8BanAQoQSr_ X-Proofpoint-ORIG-GUID: N8pLjYiFF5KKa0DlwwyVY8BanAQoQSr_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-22_09,2024-05-22_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 spamscore=0 clxscore=1011 mlxlogscore=999 mlxscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405220116 On Wed, May 22, 2024 at 02:35:21PM +0530, Shivnandan Kumar wrote: > > > On 5/22/2024 1:58 PM, Krzysztof Kozlowski wrote: > > On 22/05/2024 10:15, Shivnandan Kumar wrote: > > > Update zone1_thres_count to 3 from 16 so that > > > driver can reduce bus vote in 3 sample windows instead > > > of waiting for 16 windows. This is in line with downstream > > > implementation. > > > > > > > This might make bwmon quite jittery. I don't think downstream is the > > source of truth here. Please provide some measurements *on mainline tree*. > > > > Hi Krzysztof, > > The 16-window (64 ms) waiting time is too long to reduce the bus vote. > At higher FPS, there will be multiple frames in 64ms e.g. 4 frames at 60FPS > in 64ms. Hence, delay of 64ms in decision making will lead to higher power > regression. I’ve tested this change for 4K video playback on mainline tree, > and there’s a significant power-saving. > As requested by Krzysztof already, update your commit message to capture such motivation. Please read and follow this: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes > I propose to make it a tunable,so that user space can tune it > based on runtime depending on fps. > I presume that in e.g. Android there could be some sort of power HAL that tweaks this value dynamically? In a general purpose system, how do we make sure that this value stays relevant for multiple types of use cases? > USECASE zone1_thres_count=16 zone1_thres_count=3 > 4K video playback 236.15 mA 203.15 mA 4k video playback is a fairly specific (and generally unusual) use case. Is there any impact (negative or positive) for other use cases/workloads? Regards, Bjorn > > Thanks, > Shivnandan > > > Best regards, > > Krzysztof > >