From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4834119ABAC; Thu, 31 Jul 2025 20:31:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753993876; cv=none; b=Z6J+YSjesCnR54H2LVgwza/3IwMhrNv7u9JgLqH0OrBqQik65mt3uJ6FnanUYjvOUnoevN4nZBT0x4thOl3Lne4+yaHjjOvW2UjzPMQWdDlzEgsfAZSjvMYXd561fE0xRii4/FjQ+1k89R3oVtQs2VZvUClw3ez2BWTOpOQ4xTY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753993876; c=relaxed/simple; bh=Jq3XCtWkGoIl+7QfBw+jWIvM7XLZnkUB4MlR2CqrATE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pafgJmynGQAiF87c9T+gBKf3Mg44MjdWPqcaABKH16bizc5fWB7ZJULGc65JD+qoqwEJRWhuP63xDTPJTyoAImH8FL36FX6HkCzrBj+idcjCU3SIouJ1NQmp+IwyFAs5ZWMerVFpns95eKhwz2L/8briP6WcwcJNaLD5ROf8nuE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4EF15176A; Thu, 31 Jul 2025 13:31:05 -0700 (PDT) Received: from arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 14DE93F5A1; Thu, 31 Jul 2025 13:31:06 -0700 (PDT) Date: Thu, 31 Jul 2025 22:30:51 +0200 From: Beata Michalska To: Prashant Malani Cc: Viresh Kumar , "Rafael J. Wysocki" , Jie Zhan , Ionela Voinescu , Ben Segall , Dietmar Eggemann , Ingo Molnar , Juri Lelli , open list , "open list:CPU FREQUENCY SCALING FRAMEWORK" , Mel Gorman , Peter Zijlstra , Steven Rostedt , Valentin Schneider , Vincent Guittot , z00813676 , sudeep.holla@arm.com Subject: Re: [PATCH v2 2/2] cpufreq: CPPC: Dont read counters for idle CPUs Message-ID: References: <20250722032727.zmdwj6ztitkmr4pf@vireshk-i7> Precedence: bulk X-Mailing-List: linux-pm@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 Thu, Jul 31, 2025 at 09:51:51AM -0700, Prashant Malani wrote: > HI Beata, > > On Thu, 31 Jul 2025 at 01:27, Beata Michalska wrote: > > In the meantime I'm still trying to figure out smht to mitigate the issues with > > the numbers we get from counters after waking up the CPU. > > My attempt at that is here: [1] > It's been proposed before, but it's increasing the delay between samples. > > [1] https://lore.kernel.org/linux-pm/20250730220812.53098-1-pmalani@google.com/ Thank you for the info, but I'm exploring ways that will not increase the time window between the reads. While we are at it, would you be able to drop me some numbers from your platform, preferably good and `bad` ones: both counter values, and the bits that are used for mapping performance to actual frequency (nominal freq/perf, reference perf) --- BR Beata > > BR, > > -Prashant