Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp215918lqp; Wed, 22 May 2024 02:19:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIjSBHH2rXrO5oa8Xrig8T4AkWumqDNH8f3Diu+YD7mEd0MbxK9J7MrWmyZ/zGIMI5FI7tMw5DBT4GXoaFPg0brCtq5mZGU9qkKnkm7g== X-Google-Smtp-Source: AGHT+IEVZLWXa/SeG9DHC5Tld2dL73niiJYxVMt4K07Qiz1XpgRsVamd5mhKMAf2yaHCk25pdwNM X-Received: by 2002:a17:90a:a588:b0:2b1:1670:d8be with SMTP id 98e67ed59e1d1-2bd9f4507a3mr1643689a91.14.1716369596274; Wed, 22 May 2024 02:19:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716369596; cv=pass; d=google.com; s=arc-20160816; b=lenfPpahkKhgBhYodDS8DLxohgxe1DVzg6qXmLOOaxYGjHhgiKy263HxUQTTSYQJog vouG43VsJfG5XcJobk5hcv1/WJSCUNukFkP6QohNyqaPsd/+1d9C+b4ofYyMl8mm1dq2 R1xcjwYbMl4G4NGosjAAq6ZRzZh/IocwKHEhM/4ZRjdzYExDUt+Fso5zvJJENlhXfu1x kgvArDiMxs3mZUijkboQfsqhNWR1nDlX49J947uzUdaGYCVQ0nm04WLalsvGl4RKFZBW aRSxIDsSrLzlovKDXQSbTWLjWwKksVUVNor/rvefORi6J6xCsbmd8m6BONKVCbkiFRSo D5cA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=M6NPTm1+e7s8OX0cZE3wNIuYcGvWCpp5F6olMkreWtA=; fh=c8ykRsxFH4vh3KYMCjo5NbwvGbgPkbIPh4TiJ32KPb0=; b=ZuH5AhP+0zKox/rzB2wucGnEB7A0pBoUXLfJQhsaZzZW5i9GAISH7WHqScP267m9fB hH+aIbxRzb1c6E78dVSSt4o1Jyvc0PiS7B4zVrbsDyq2xRCwVxPgs/bJIW1bCf4kg4nV 5iGLqrViLBQP3FwPA/iH1b6P1NzpEGdxuTHd2MWHXJwxMVedGFlMQUz06SCsobTKfGFF avDEJBJSlbmCZLIW0OA6d3R5EJKsvnbTgIASWkkB16cYANsHLYYgi0/4H0zff7WfqF6K IEVKvsPtupFvlkVdRyCR7ANhngzUJzc8zW/J+wEUaoGEnh7h9ZbX73H4teonZQ+dBhAI xK0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zfp3GvI6; 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-185979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628864e82si28766524a91.35.2024.05.22.02.19.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 02:19:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185979-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=@linaro.org header.s=google header.b=zfp3GvI6; 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-185979-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185979-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9B1DA2831D7 for ; Wed, 22 May 2024 09:19:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A50080637; Wed, 22 May 2024 09:19:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zfp3GvI6" Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 E70E1770FB for ; Wed, 22 May 2024 09:19:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716369587; cv=none; b=pZOaarjvokVEOtMccOYoX7LEB+0yOXfEWEZ+FndwPbQzJ12KaBnVLD28wEi7vBgPQcbQMqZ/GvOWh7SXr3ID91hXA6Mdur3P1VR85Q7mVPHSLwjvKCqfOcw+pHa6ZTySDA9r3mnIxinIYCgHPEl2s47/uzoU057WEejHc9/fkeM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716369587; c=relaxed/simple; bh=VBsqYl7hUfneg7Pf4Un76AsJyXt20lSzdpAomEsu61M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jpXdVhmrVPeQ2J0/xsweeQ2RWkVkW6QYDcR6bAwonBwAxW7VH+f/Ag1/kIN5H/xYFNyVJI7EwAYZ5iC4lwrU0PHR1sjt86KQCLGDG7FeIVZp1oxF5xsz/uKdhxyA+4ufuvZTNjKU/nngXiwfnzzhId+PKppvHtcImYnuyBRVaUQ= 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=zfp3GvI6; arc=none smtp.client-ip=209.85.128.41 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-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4200ee78e56so5219515e9.3 for ; Wed, 22 May 2024 02:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716369584; x=1716974384; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=M6NPTm1+e7s8OX0cZE3wNIuYcGvWCpp5F6olMkreWtA=; b=zfp3GvI6SoFpVjlh7XxARIPJ+hVZjcjvwJd6IEfWclZu2efMiRlndoHkmMwbQpCw0F xIC0/j60ATcs8Pr0XR4w0Q+iabYGUr019xNyknONniykLMeKbAPgH9hDk7mY/Y75XAaj /VRjJGfrmxlN9yf4g8Ip9t3rdA5mjEE45chNyIucLDwOaOiA7XPG4sQby8tRm1H49pKN k/dzuF0sY+iLUPlYocokSW1broz7zGH4UbF4RfLfdMZMoyHpYmfF6cBr7uz8n9QPP970 M4YPWFV2bNRAAwgBYkMgknBYqGy6x1hxvIV+sstLrvF1dH7ahD79Pn+hFM32IHS5LTpV Xa3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716369584; x=1716974384; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=M6NPTm1+e7s8OX0cZE3wNIuYcGvWCpp5F6olMkreWtA=; b=i1ZGSDpiDFQeS224hJiLEm1N4h57XArLv9JWeaUGyY+AwB7ppM2TEqXushTxsIYilc ho6Lz89e/6/jmIHZSBM6pkb9QPVkuoOyoPJ3pjW3UMVTUX3g+B6Od0EOmH7HghdP5Omm 9p8RYUqBQ9uZ+3kOa07QEWwBPDSfxHAuome51d8v8S/jJ7lPP3OwW4sCIbJLzlOnKuI6 1NQHZKaVR6zu8CPyWDnnpR0aL740PBO/BFSJXz+SzYxEIaQEhiH/zRMuYGW1bFgcPqcn 0Z8c6WGlVBKYfX7qyJgcP7E1uAlJ0J5cDE+K9DusknQYCA00RDCdfsAbaPhX7LiB+LcU lFXQ== X-Forwarded-Encrypted: i=1; AJvYcCXRMQgTQrnNdxgmCBMpTPeBCZhjLAuYmjoceflI37/dZbtcu3tc3cVFiecCvxMZQ6ZOn0DAef9laYEedpfRM3A5ZwJmNFjkdQ8ogl5h X-Gm-Message-State: AOJu0YyYD+4qgvm5RnB5F415D5PLNUOeu8YfcMcRn5UUmU/LVlOwLDmR OW9CJQWBTNS5ExkitX/p3aWPnTE+Kk+yI1I38LUEGhxTBs8rmLCRLokKnab10Cw= X-Received: by 2002:a7b:c2b1:0:b0:41b:7d6f:1f24 with SMTP id 5b1f17b1804b1-420fd31d423mr10667475e9.21.1716369584246; Wed, 22 May 2024 02:19:44 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fa90e93absm521064565e9.9.2024.05.22.02.19.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 May 2024 02:19:43 -0700 (PDT) Message-ID: <1a623910-0fce-4835-a047-4086dafd3186@linaro.org> Date: Wed, 22 May 2024 11:19:42 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] soc: qcom: icc-bwmon: Update zone1_thres_count to 3 To: Shivnandan Kumar , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_rgottimu@quicinc.com References: <20240522081508.1488592-1-quic_kshivnan@quicinc.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLc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AZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 22/05/2024 11:05, 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. Please include it, with measurement below, in the commit msg. > I propose to make it a tunable,so that user space can tune it > based on runtime depending on fps.> > USECASE zone1_thres_count=16 zone1_thres_count=3 > 4K video playback 236.15 mA 203.15 mA > > Thanks, > Shivnandan > >> Best regards, >> Krzysztof >> Best regards, Krzysztof