Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp899818lqt; Fri, 7 Jun 2024 01:57:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmRawD6neG6NnZ5vd2nuzSrLKNBWEFWORx+hVyKq47XzusIi5WEmCvT/GEDx96AgrhSHGmD6mVTITblAFGgwDNbbcKb2CEKkH7rl5g1w== X-Google-Smtp-Source: AGHT+IGYSVM6Qq6y7SXVxL12tm9BDKFIl8GlYi63HE15njcTwebCljQK/olkuPa3HDFY7DIpEN8w X-Received: by 2002:a05:6830:4392:b0:6f9:3d7d:548b with SMTP id 46e09a7af769-6f9572c9587mr2146586a34.28.1717750653747; Fri, 07 Jun 2024 01:57:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717750653; cv=pass; d=google.com; s=arc-20160816; b=H6tim0MBOJG4GP1g+cmA3JfU3fVJ9Ou87GgITVNBJX2BzbdxNpjqgPE8oRZnJROfG7 pRO4Sl0dhjZGutgMp/d04sPgueMVFl8HRDnkphohVEznFApdsaJ88WkNzbWfM3Lzq9cG FtNhVEOGuCkSuxy9lI0ZNd3xMpBqDSKBNsp3NfNKq7dRcpPUBUNLel40Tajo6aBzxh/q hdueh0yMjIaY8UfkU8xeK3bYH5qUCsOiASnCzTf/lo4Zf1ZczBOZQi35+AVNBO7eh6qp KSBS3cHSv3x5yxaUgBFMh7GktCHav8KGylWhSs5WmWm+kmOat0V2KKsJ/MMn287Skcy8 ZXfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=T0nWsy/iKKZfoDtJJHXu23rj7b2/4Y7qFLrt00MO9fE=; fh=0tgznX1k3x8A5jfXUePdir7iJw9zjUOLDDhEw/TcVtk=; b=eqUI+cJG3zpBM78LcymMXeMjeQtSJp9K4Ckj6gNRMmN5IYIYyYwrRt/kqEHrf0O8K0 3gAqRac4L919b3XzlzXdA/jxGQSbiC0GI0TD47IrBzTg3jJUsi5UxoM0yeR61OI1G1wG y2ed7xVVg4lH6ASLhi3LbQFw4efdw4TdLbGrLRqI+yDyi8oBfHeno684CG54CpjNFI2W nv6wikAOp2I00xkHPSCbpsjEZW5P4YU+vp/Pu+FCelHPMg5F61jit5xGyfyV9ydBhaKR Zh398XwKruDbE1iHh8rEKX0dxOMH/td7Av+XJi4XPhXur8CYfzXnFRz8FyQUMx8ZjhLN 3Waw==; 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-205654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 41be03b00d2f7-6e307e768c0si752288a12.314.2024.06.07.01.57.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 01:57:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205654-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-205654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205654-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 72B932847A3 for ; Fri, 7 Jun 2024 08:57:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0029A15B13F; Fri, 7 Jun 2024 08:57:17 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9815C15AAC2; Fri, 7 Jun 2024 08:57: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=1717750636; cv=none; b=MGLYk4mfMkie+Nwb6gE3HVo8Hgtw1HyJoCcdEWhwHGMwGc2VwGCpNuv68pWgBLkEaMNK41rVSmUdJpSwkkMS4zuzud664nJuGO1DTafzae+yt+KvA8rU09FtXrlcz7p+81GwnU0yo6q6MxSVMGnYHBforFCdoHTGFTFoMqkehbs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717750636; c=relaxed/simple; bh=fWf8dL9zgX4/tY0MKEO40QNhd6iKATLd5H6NU7pTBcw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FzVLAHsLlpKeAjfTzmYVPxHlB3paZ6MSLvd1g605MarBdZ1i2vZ/r/GJSTNdFAeY5CvvTTd6EodOptv6EVULguH75tDUcrYp56Sl9YHZU7SQiMmyL22617+yTSYfYE0vcLrIv/vmFQU8TOWyS3FJyxJ5y1DgcjHEjnDfZO+3CvI= 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 08DC92F4; Fri, 7 Jun 2024 01:57:38 -0700 (PDT) Received: from [192.168.2.88] (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D6F013F762; Fri, 7 Jun 2024 01:57:11 -0700 (PDT) Message-ID: <96eb4e13-e1c7-4c64-a4bf-0d2b5610d390@arm.com> Date: Fri, 7 Jun 2024 10:57:10 +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 5/6] cpuidle: teo: Remove recent intercepts metric To: Christian Loehle , 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> From: Dietmar Eggemann Content-Language: en-US In-Reply-To: <20240606090050.327614-6-christian.loehle@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. > 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 [...]