Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794062319; b=zWE5MKH6UKI/DeWY3YrsDRwIuvgEbp73x9b419VzE3KKakFfIk8P7K9FCqLGs2pI8aO4 RhVaxECVAkcLLjipjv000zkbwmE7L3jtd0P3Q8LXWNqq/3VWJElA5vzrCQdCGc+UlerAy lm85KG0zWv6ui/TOmXf5JwAOZP1jGjkd/TbKG50I2rmfcpk/9mBY+WXfR51EaBgMOyEIE cv7enhqe2UNYtupa4e4sBBTqkn0zGFRrRY3xNoHBAPHEcsdWcGttxOGwzbtO+Ap/wYMH2 erBKWSieMi/NctwWsTO1vrfE7UhKdvPr6mKQq5vpt464Z+A7wWdDN0feDVeOxK3VMEQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794062319; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=G01JLzsWrYXjf17ubSKoQqIZurmbYbNen4dFkA/iyxw=; b=dx5FltZAW4ejnfFyuBk+DTjHkH7RA61EMfxSop49N+yEihbiqEmdhoFouY8LDAqizSgt fe4Oqm5oSTHutOCPUQbJWWcB76kTqAAH4zEHuWCiSo5CPmx6nLh2j5S+dT/KDXi+e2RbX Hcym80puHH6J5m4ADJtLgKQ3juivueJYvG4DHeo1afrd1URstiWhaztoqtLQmO7n0ETFH DLRubA+kG16zsl5rZIP5IXKOE9DNqMwW1G1/t5cBET+xX/QRhS6s3IUiGFMsJy/MJfJk1 nY6upNc0tK3w2rF/xtP77h14N152Xojg1syLdvGWRq56QUWAmV31/+uPlBzQ6+S27Iw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=d6b2R63u; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4EE12606A660; Sat, 7 Nov 2026 14:38:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=d6b2R63u Received: by smtp.kernel.org (Postfix) with ESMTPSA id F16CA1F0089F; Sat, 7 Nov 2026 14:38:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794062319; bh=G01JLzsWrYXjf17ubSKoQqIZurmbYbNen4dFkA/iyxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=d6b2R63uB9kMbv/LqJ3Nu++c3Rflus9Bk5sO1QokQ/K+RtoEc/fupAxR7WP6i29SA YmNG7fzr4YrP3+yiwol0bM+OQcQZ7AXr/Ks9UR9BWCSWuTCF5+nBG0DQLiAnmhF37u qiVbBcSMKnvv+iLbK9/e3xAyKg/pc0V+HLcaQ/CU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yijia Wang , Guixiong Wei , Srinivas Pandruvada , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Sasha Levin Subject: [PATCH 6.12 1253/1536] platform/x86/intel-uncore-freq: Continue restoring limits on resume Date: Sat, 7 Nov 2026 08:54:29 -0500 Message-ID: <20261107135032.964656792@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261107134957.653319350@linuxfoundation.org> References: <20261107134957.653319350@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Guixiong Wei [ Upstream commit 38998529f45c02edcf96b0a3ddd3c83de6d11bbe ] The PM notifier iterates over every uncore frequency instance to restore user-configured MSR_UNCORE_RATIO_LIMIT values after resume. Entries that have never been configured legitimately have stored_uncore_data set to zero. The refactoring that split common and enumeration code changed the iteration from active control CPUs to all allocated instances. It also changed the skip for an invalid or unconfigured entry from continue to return, causing that entry to terminate the entire restore operation. On a multi-package or multi-die system, configuring only a later instance therefore leaves its limit unrestored after suspend, hibernation, or restore if an earlier entry is invalid or unconfigured. Use continue to skip only the current entry and restore all remaining configured instances. Fixes: dbce412a7733 ("platform/x86/intel-uncore-freq: Split common and enumeration part") Cc: stable@vger.kernel.org Tested-by: Yijia Wang Signed-off-by: Guixiong Wei Acked-by: Srinivas Pandruvada Link: https://patch.msgid.link/20260929163133.14326-2-weiguixiong@bytedance.com Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen Signed-off-by: Sasha Levin --- drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c index 529b19833537a..b8a2d2ac4956a 100644 --- a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c +++ b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c @@ -210,7 +210,7 @@ static int uncore_pm_notify(struct notifier_block *nb, unsigned long mode, struct uncore_data *data = &uncore_instances[i]; if (!data || !data->valid || !data->stored_uncore_data) - return 0; + continue; wrmsrl_on_cpu(data->control_cpu, MSR_UNCORE_RATIO_LIMIT, data->stored_uncore_data); -- 2.53.0