From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA91E1D63F7; Wed, 6 Aug 2025 07:19:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754464787; cv=none; b=o+IrQMYNGiETsjR/ie+OIJIYK4nrGELje3dAlcfJ2rgFbAuH79Wq79uRsL80Eb9cCLP6v03UT6mWaojLx2f2JhN2rXroJjXCz3KTgXRv/qhJEBmSfNpquXjJybQ/AK70Ft/Fge9YVyBN1Z6zNztAhdAz3f1EGWKLL5zTgtm42z4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754464787; c=relaxed/simple; bh=KOWpcG7TXgMilyda7kVhOJeX0oxi6CCnLzWaPn4H7J4=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=HeD0P5lqNd93Ism+ADThFRkCqLvqDdX4x34V+IbKf1aOSKCjs2FKHHFzRs2H2ztphSeRdxUD/4Ik3qNrM1AeG7o4za5PRJfU5zlmBQrCcvAHw3z71ffXtS76vwm7SOGTmcs9YWhqXejyNyaDzhNS8fc7pW8le3VrXH6uoJeniwY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cTDMb+Ns; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cTDMb+Ns" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F56CC4CEE7; Wed, 6 Aug 2025 07:19:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1754464787; bh=KOWpcG7TXgMilyda7kVhOJeX0oxi6CCnLzWaPn4H7J4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cTDMb+NspX+pIpgFqI9MX6ws8Ozh56adhg/6OtfoW9I6GkG3Pcs1evfnH3fnJlcBa AIHOH8Skcgqjzj3PJ7VAyvWfo4lgM3ZSAMesXALT7DRf2pB/YmzmIfeiXnL2aQXA1o 23yLvrwpsK0ZgR89gOsudefLeXksNGsZe69xYPaFO4P3sr3X44RuF2ouFKdEvHSJCj yTc/7LOqBo/q3FsUFqR/cxQDMS8wAMWIejeNChAoTCZxhQrcISfd2ddYxIttVPJ+rS yaUBWvd75Lc9633P7m4AKyMMbtY8ZmNIP69gPhaVVd+cSM5u1uIMs4SCucZPaLi3UW P1hDkLf1BiUDA== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1ujYR6-004O92-Jc; Wed, 06 Aug 2025 08:19:44 +0100 Date: Wed, 06 Aug 2025 08:19:44 +0100 Message-ID: <86bjosapdb.wl-maz@kernel.org> From: Marc Zyngier To: "Rafael J. Wysocki" Cc: Christian Loehle , Linux PM , LKML , Daniel Lezcano , Artem Bityutskiy , Aboorva Devarajan , Thomas Gleixner , Mark Rutland Subject: Re: [RFT][PATCH v1 5/5] cpuidle: menu: Avoid discarding useful information In-Reply-To: References: <1916668.tdWV9SEqCh@rjwysocki.net> <7770672.EvYhyI6sBW@rjwysocki.net> <86o6sv6n94.wl-maz@kernel.org> <86ectpahdj.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: rafael@kernel.org, christian.loehle@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org, artem.bityutskiy@linux.intel.com, aboorvad@linux.ibm.com, tglx@linutronix.de, mark.rutland@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Tue, 05 Aug 2025 19:50:21 +0100, "Rafael J. Wysocki" wrote: [...] > > > Any chance to try the teo governor on it to see if this problem can > > > also be observed? > > > > Neither ladder nor teo have this issue. The number of broadcast timer > > IPIs is minimal, and so is the number of interrupts delivered from the > > backup timer. Only menu exhibits the IPI-hose behaviour on this box > > (and only this one). > > Good to know, thanks! > > Switch over to teo? Sure thing. Just start with: git rm drivers/cpuidle/governors/menu.c and I'll gladly switch to something else! ;-) [...] > The attached patch (completely untested) causes menu to insert an > "invalid interval" value to the array of recent intervals after the > idle state selected previously got rejected. It basically should > prevent get_typical_interval() from returning small values if deeper > idle states get rejected all the time. Yup, this does the trick, thanks. When you get to post this, please add my: Tested-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.