Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2534408lqb; Tue, 28 May 2024 03:02:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8Q8hilsRXBPXkE2zF1Kr6i1C4wXI3qK8Ifr2hocfAizM3GnO0o37hPBxFWWjC3J8KaIY3Jmdp1ZAm01Vkgz3vwRO+tZHlTOPw16mpAQ== X-Google-Smtp-Source: AGHT+IFjc7LV4QaoXV0lTDgjZAtK2B3+nPUBhg/6Gue+QtBE3i5FENv+oOnXRtoys0usOuVqvaPc X-Received: by 2002:a50:bacf:0:b0:579:e6f5:ef6 with SMTP id 4fb4d7f45d1cf-579e6f5101amr1857019a12.20.1716890521388; Tue, 28 May 2024 03:02:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716890521; cv=pass; d=google.com; s=arc-20160816; b=lzKafLfLTAGNURiVP5+SU/yZc8mUgv6fAOfYJz0gqUxwHWgHo7QNCtbWml1j2h/AlF mk7NgOEIFLKa9P8vU/l5ovQdNyIP3VlWXDYf3fHB5AzPJWmt62WXVpQtRqy95gGI5pgj eQ4QKADKr9WNs6RPBJCqMIaD9pYeIqXr1e2b/Fy8KtKJwpSaQ4nGFckJ+YV4ndIz3oEQ 4p34e/VPwojqyyfN2Miz6wTipD6APUQW/EZy9es1qQYpry9bxH1DGvLSlyqLf16h06vN ORqd9fJjCdLtrSOj54Jaztq2Ao1KukGD2i03lklVYNStssk6cqSeaQ4/anbiBeWmXqmx 1Dyg== 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=rEkGigLxduNhGO8QiQZoKBP7iPBLDBo3sRnEuADPLzs=; fh=w3n0px23fEUn4nQPKiOJ35NgZZIqUtNRibOTz1QKyKc=; b=Zol3MioprJzvYlKIUfDK+tU9Mp9C/t7e2jaMl0D7b+zWLKky2vsMP12jzsz/e2jSZf XM+k7y88+z5v8M7SLzWa+AKAkUdflqTJcLoB9PsFEOjnFb48lINRAqZg+94Igx11Cmgi 2unT/INWoOwQjEDv3dqa8aulTFV1/CDzIUGzG5JyBL4IHqfwatT+4mMXqwlREP6ntF5l FPBmljn+K/fy8e+u/5XmXLU9cx0P47KyJMzpvPnIf8Q9gIQMJBPAH195zfvICzvlLl8U Dam1OT80p7MZMYjSk1dss2t31r7gZ1kcOaq7eTtbTnH3UAO1zFoZ/iAR72WOiFNCHbzM 3VYw==; 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-192064-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192064-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57852331a6asi5102403a12.138.2024.05.28.03.02.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 03:02:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192064-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-192064-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192064-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 23C111F25CE1 for ; Tue, 28 May 2024 10:02:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87EB416D321; Tue, 28 May 2024 09:59:44 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BE2E16D30D; Tue, 28 May 2024 09:59:41 +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=1716890384; cv=none; b=NTYfjTqpgPu1HpCVjEJ2msUSHFp2G3vTgWEhnqu7k95ewhYt8FBp/zUdSueSDMunl4OQvZ7A/CRUyAb/c6aLrbUL0FnewzxSHmk4fGE1OQSefRtP26rASyrqDEHFvsNZngf6yRnpWdTmd2N1FYztK8QhsiYgj9SmPdVFnXDkNfY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716890384; c=relaxed/simple; bh=6IFA55jtMNIG7Pnm8j3wKdfzBTaH2nHVfcNaxRQClHE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=SAhoXqm++repWZWM2pbrIdGUHE2N1cNNqWd6bbj/A+gABVmwESD/5sSpP0iSM1QYR7gsDNoxh4K3S3C80DScz9hyi7zvzFcn0ILCdNpfTCSNKKZHMljuGwVDKO3gq2BJ+vrKq+l2rUFT19WQMrJhWgNHEOJi6IkWo0F9zd7NtTQ= 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 A4B44339; Tue, 28 May 2024 03:00:04 -0700 (PDT) Received: from [10.57.68.138] (unknown [10.57.68.138]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7E5643F762; Tue, 28 May 2024 02:59:38 -0700 (PDT) Message-ID: Date: Tue, 28 May 2024 10:59:36 +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 v6 2/2] cpuidle: teo: Introduce util-awareness To: Vincent Guittot Cc: Kajetan Puchalski , rafael@kernel.org, daniel.lezcano@linaro.org, Dietmar.Eggemann@arm.com, dsmythies@telus.net, yu.chen.surf@gmail.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Ulf Hansson , Qais Yousef References: <20230105145159.1089531-1-kajetan.puchalski@arm.com> <20230105145159.1089531-3-kajetan.puchalski@arm.com> <20230711175814.zfavcn7xn3ia5va4@airbuntu> <20230718132432.w5xoxbqm54jmu6n5@airbuntu> <20230917010516.54dgcmms44wyfrvx@airbuntu> Content-Language: en-US From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Vincent, On 5/28/24 10:29, Vincent Guittot wrote: > Hi All, > > I'm quite late on this thread but this patchset creates a major > regression for psci cpuidle driver when using the OSI mode (OS > initiated mode). In such a case, cpuidle driver takes care only of > CPUs power state and the deeper C-states ,which includes cluster and > other power domains, are handled with power domain framework. In such > configuration ,cpuidle has only 2 c-states : WFI and cpu off states > and others states that include the clusters, are managed by genpd and > its governor. > > This patch selects cpuidle c-state N-1 as soon as the utilization is > above CPU capacity / 64 which means at most a level of 16 on the big > core but can be as low as 4 on little cores. These levels are very low > and the main result is that as soon as there is very little activity > on a CPU, cpuidle always selects WFI states whatever the estimated > sleep duration and which prevents any deeper states. Another effect is > that it also keeps the tick firing every 1ms in my case. Thanks for reporting this. Could you add what regression it's causing, please? Performance or higher power? Do you have some handy numbers, so we can see the problem size? > > IMO, we should at least increase the utilization level Something worth to discuss, or make it configurable even. Regards, Lukasz > > Regards, > Vincent