Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp912084lqt; Fri, 7 Jun 2024 02:26:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXYPSzzib/kCQrSMAFDKPpHDDQ8JoVUCGt92xNSLBlRToofOrkO3xlh14s8uXXL9AXqDNUwjgh2ETRSVzDvWgZGCvoqggXKE9HIEupd2g== X-Google-Smtp-Source: AGHT+IF9al6wP9PMIg9iyJ2fIRTEUvp2ul88DEn48chGu4XNmVZRbvHuvVikNJRsQEc7sAajpPLN X-Received: by 2002:a05:6214:4904:b0:6b0:41b4:95a1 with SMTP id 6a1803df08f44-6b059b881ccmr20267756d6.25.1717752401789; Fri, 07 Jun 2024 02:26:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717752401; cv=pass; d=google.com; s=arc-20160816; b=KEncULfJCCEaYQJTuvDc1U0XYzH+AzmaLRVOb8McWCOvBBhxQ/SzsP7Oywo0Iubbil riOAX1kQRPUpgSSt1uxC+A3509rnTAedK20o5iRbbpbZghoufbJohFqSA0HPOaFjvsm0 A6lcgx0QDC/Z1/wGlRmIN7NrzYGU3TCZYtuSeZ9fkre9OT9kmLDkO/Nh6y3rCHCmkyT1 FkPqV6jA0MEfYoIJeJJoIZz/3L3NmJ9reRPXEEnWbYHJS2YVaKnk5GYqoU5bmNv/6r8w AtlX0e39ymExhKx5y6m/cOe5R15laeg00E9Z9Kw9dTYuoLH050ZpM21Er3Izg0cpo07l ROAw== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=xONjUSdgPpbnCQD5x5bDGcwV6asPW15MJc5D+yDLGck=; fh=NjdQ47HIW+wby1OubpffvYqVPsVadBLT8VH3PxBXJes=; b=x6cntLi/BFeSvRlkaFsxTvHse89ttuvgUiFYmtBJ1aJ4xyEQmQnpNFhmesSohJk5// mjZYgiOg1JTY5mSVRygGDZpaHp+irM5oZvwA55ONTCg/9j/XXDtuL4vbLiAWFsXGaxLd vjsaugdQoFJ8dcMD31jCSFscidhPV8VHH8hExY5g6xCMuxjzta8VMvHglmB38+2MkCZt 9PxmWpYMSpSMqY6gKtNhJgSg37LsoT/erLxJLcYcky5qHBgeqwau9Yzu3eJy9jmXtrcn 8fSg181Qf6yau18bFmkiozAuk+QJ3viB1APCZ0YlBWx9tSegvlWqzrurhEECbo8bjpul XAZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-205722-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b04f998131si35124866d6.338.2024.06.07.02.26.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 02:26:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205722-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-205722-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 7F2901C22D0B for ; Fri, 7 Jun 2024 09:26:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D767815B97E; Fri, 7 Jun 2024 09:26:33 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D23615B143; Fri, 7 Jun 2024 09:26:31 +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=1717752393; cv=none; b=Nm97j0oyXBEyn3/iYAmGFgw+J0bA5WaeUEx8XwejgBRAhyLLi3S6e992ALwvmIXopMULm52MxPaGUP7vm9Fh1wqC38HImB+RGAeFOqjEcQRSeIJyRVP1n8cLP02uDULJYaK20r5t20Yw9oXIj3CZxLjJ+EeG6W3ejbGDQ/JSH+s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717752393; c=relaxed/simple; bh=ifpj+jgfGYFHg0GMeN55oZEARVvQW1fbD6S+0y/2aO4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Hwz1SsG+JmAEMMLuXhufRWPgp4SSS1HbvFphveunTG7BtDkg1j31VBIaoxTTCuHKOqlQeEfFeH8DdSv/PRI9VbrEhwFpYTw4CGos/8XY6j0Ox9JvVGQrZE4pzr8nl7i9kRjH6MPq4NQ6zgkduTTYxTJW7sUm4S4tZmUPSlhUAME= 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 DC8022F4; Fri, 7 Jun 2024 02:26:55 -0700 (PDT) Received: from [10.57.70.22] (unknown [10.57.70.22]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5F23D3F762; Fri, 7 Jun 2024 02:26:29 -0700 (PDT) Message-ID: Date: Fri, 7 Jun 2024 10:26:27 +0100 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 5/6] cpuidle: teo: Remove recent intercepts metric To: Dietmar Eggemann , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, rafael@kernel.org Cc: vincent.guittot@linaro.org, qyousef@layalina.io, peterz@infradead.org, daniel.lezcano@linaro.org, anna-maria@linutronix.de, kajetan.puchalski@arm.com, lukasz.luba@arm.com References: <20240606090050.327614-1-christian.loehle@arm.com> <20240606090050.327614-6-christian.loehle@arm.com> <96eb4e13-e1c7-4c64-a4bf-0d2b5610d390@arm.com> Content-Language: en-US From: Christian Loehle In-Reply-To: <96eb4e13-e1c7-4c64-a4bf-0d2b5610d390@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/7/24 09:57, Dietmar Eggemann wrote: > On 06/06/2024 11:00, Christian Loehle wrote: >> The logic for recent intercepts didn't work, there is an underflow >> that can be observed during boot already, which teo usually doesn't >> recover from, making the entire logic pointless. > > Is this related to: > > https://lkml.kernel.org/r/0ce2d536-1125-4df8-9a5b-0d5e389cd8af@arm.com ? > > In this case, a link here would be helpful to get the story. It is! Will include. To my defense, it is included in the cover letter. > >> Furthermore the recent intercepts also were never reset, thus not >> actually being very 'recent'. >> >> If it turns out to be necessary to focus more heavily on resets, the >> intercepts metric also could be adjusted to decay more quickly. >> >> Fixes: 77577558f25d ("cpuidle: teo: Rework most recent idle duration values treatment") >> Signed-off-by: Christian Loehle > > [...] >