From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21AED2F9985 for ; Wed, 5 Nov 2025 09:54:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762336462; cv=none; b=QlHw+HlG90QTAw+MX7M121bSHG6gQUH8E2O/lLf3CR+XmQtOMyC3M79yIGSSYiApgU6NoX+xl3ndE08BYI8RiHzZZvfLdBQZ8cJbqAc4cJ4JkuFncTom3NhqqW+KuDb/+XCewk3JFrE7I7ZSYPYsfpNgnx30cu6PSQBRGxe79Qc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762336462; c=relaxed/simple; bh=vkrIwm9lK8ZfUL86WyAB504zYSG51FRu5o0iM+GLi4g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BICfk9hkkLq7v+NKdB4QhNtvxkZY8lN81wYBCFFyHgveL/x2ScnuEScEW1rlWtpj8Afif2R+Iu6leqWjsbQLD/MM9bRO6dmcA0Bk5jJ0qtyryelIzrxyKgtVyf2r8t2MSkBnxW0P5qTISBSpRhbePimJ8L/20SZfnSDiGiWwSGU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=WUCy+3WC; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WUCy+3WC" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-b710601e659so486249066b.1 for ; Wed, 05 Nov 2025 01:54:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1762336458; x=1762941258; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vo1T83LxmrpztjRJzJByTAsIReSJO+KD7UPLut/mg+o=; b=WUCy+3WCUZLKAbJgswuWAEIn+AC1xoEDiU4yVKRKhoXqVe7zt2vQJzfwE+7SxcmG7l C9mEqOvTIfHsYwmw6KzX0nD/gAsMoEkZs5wA3SEX7lRvQjfE+RISysi5grFCPzaamzHK i1r6OOOywIZfzem08/kYEH/XkFTY5FKDtHDXM4bZzzlqzDOKQwO3/LyvZ8uMf97KyNlw acJOMR7/NweXdf9117EuopZxdyd355p1R7T61VcMSH5ELiW2rF5PELSUpp1/pbuH6xW5 7/OWiH4bSwrrr8K1gk37fN+8U1QSZJsuOmEi+eesjX9YH/5qEmzQ7te8N1AuUGSKTGbJ GFfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762336458; x=1762941258; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vo1T83LxmrpztjRJzJByTAsIReSJO+KD7UPLut/mg+o=; b=bi79NZOzXY8emubCAn2r0LqK76tUl+Tu4LHssgF9PoqT8ieHLdwkoHbdRAi2+tI+VW V3IvGjFm/WHsKXvBaxLZc6sU1g9pfXKZ6CXihK5FchGIXBiZxt0AOv1eU2ApFrv7XFxr VSHxXsUZCCpJi4z2ABViCdyqfWe+57cHFLogv7JmCmzq75Eh2+xn3vhTlTkVa7Q9B5Fj HRCJuCkI4iwmkUakPsMDLjOXH4NQ1ugeG792SmDc8RNvfrnDtlcO3EHdyndn0kY4nmfG 4T4DglQGhC9hGh8FLDe+/3HP6vTrg58UNqxhLvrlyNswV+lGIBNG3grSpOigUHDSH4+Z S9YQ== X-Forwarded-Encrypted: i=1; AJvYcCV6BizMQAfzUYX9Wmk2rFn5RPRic1F8LjCH1y+5EHkl5iNGa3I0OWvg2kHbu/cpzzo/c9NpZezoqEz7twI=@vger.kernel.org X-Gm-Message-State: AOJu0Yzt0PwELVu2BSAD9bToOzgLpOCJi7UsD6oH9/RVtyE2Wl8A4Two WWbXONMKjNpu2kaWSVNCpV3+K2AzYnHd5/3xgoyBkGLvTXLmDcT46J9cwOpoZABWGJo= X-Gm-Gg: ASbGncs7XGKLTA5glQBw4qXLQvaexw6e4H5MHI41gh5cDWB6xVcIoUbK3HaMUjKxS7k fntOG1gmaSVH0nkp/7QVjn30WsAXAJ5UBQYLEqSk+fIejJBrmi0KiXOmCJVonXO0V8ikVNmrBAl cdzafthk7z4TKLxbreTxQtxkO8Q+Q7WbytQrtTe30Sl3jU66fAwztD3eRgDq4m5ZtMyZBqHYmh8 KtGNQgeQPwWmW8hyJBQvZvyfLuM9wtMdT4mSkaaCumvH//xfUSrewoKyhE7PCaSZ4M7cN/qVc/u 0Eulf1K4GHkYzPDU72aR3pRT33a83ho/s+W5L3S0JRkmOsxcOgV/IQps09KuLbYssqmvWE/6sUa JfBlDMh/OSbfUTu9A7IoPNsoLstaIFiYc2FuZbdcnSLpyuP1NS+NzGYdBK3QcN2iW0v6OgDzkyp Tqnp8LrPrqlXHRLs1fzkHtXC8K0TY7 X-Google-Smtp-Source: AGHT+IHToCJ0Tsc7PHqd+smQCkA2ppkm0fPmpSqpXEr36IzGbG2jcO6xOfoqNg0L3C1H8yEX0SGCOQ== X-Received: by 2002:a17:907:6eab:b0:b72:5e29:5084 with SMTP id a640c23a62f3a-b7265155b74mr242771366b.4.1762336458345; Wed, 05 Nov 2025 01:54:18 -0800 (PST) Received: from uffe-tuxpro14.. ([87.213.113.147]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b723fe37cb9sm442571066b.61.2025.11.05.01.54.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Nov 2025 01:54:17 -0800 (PST) From: Ulf Hansson To: "Rafael J . Wysocki" , Thomas Gleixner Cc: Mark Rutland , Marc Zyngier , Maulik Shah , Sudeep Holla , Daniel Lezcano , Vincent Guittot , Ben Horgan , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ulf Hansson Subject: [PATCH v4 0/2] pmdomain: Improve idle state selection for CPUs Date: Wed, 5 Nov 2025 10:54:06 +0100 Message-ID: <20251105095415.17269-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Platforms using the genpd governor for CPUs are relying on it to find the most optimal idle state for a group of CPUs. Although, observations tells us that there are some significant improvement that can be made around this. These improvement are based upon allowing us to take pending IPIs into account for the group of CPUs that the genpd governor is in control of. If there is pending IPI for any of these CPUs, we should not request an idle state that affects the group, but rather pick a shallower state that affects only the CPU. More details are available in the commit messages for each patch. Kind regards Ulf Hansson Ulf Hansson (2): smp: Introduce a helper function to check for pending IPIs pmdomain: Extend the genpd governor for CPUs to account for IPIs drivers/pmdomain/governor.c | 20 +++++++++++++------- include/linux/smp.h | 5 +++++ kernel/smp.c | 22 ++++++++++++++++++++++ 3 files changed, 40 insertions(+), 7 deletions(-) -- 2.43.0