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 96AD333554C for ; Sat, 7 Feb 2026 15:55:01 +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=1770479701; cv=none; b=e85IgutUDnwUJjZsIinhpdjhuFVZ3Hn2FciGRbAbKf6qlUKFYiU6MicGj98GvGkJ6Dv9tQV1u7EiWzvWywglXsb4ER1izrAqZakri9ZANqv4rPrGCXdZF3Tsl/A6ne18qdqeTRTqjRb9Wznkja9T2Z8WyuYjQFxugtIg4mU/IKM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770479701; c=relaxed/simple; bh=9raQbVAdeASulg9EYB1jZg68O3jCqH2Wtm6TdJ82Te0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IdI1+wfVj2+8TCUX1nyKhQyWsh+M/7bCuMtBJfaZviL++E/P4/62IutLquUcMTsVdGhkEsEDh/24MHUSZqMo52w+akT5wWSlDWiF3auXetKyIycq2ULDCV1wMSW1/kvYIGq41Zl2CBa1YW2SsFve77n3nrFUOd2jxulUktFKUO8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=by8Gouef; 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="by8Gouef" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5D1FC116D0; Sat, 7 Feb 2026 15:55:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770479701; bh=9raQbVAdeASulg9EYB1jZg68O3jCqH2Wtm6TdJ82Te0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=by8GouefieoRrYG69ToygCNzxfAzeUvycivI8vrZiOIsCGNBOitzcarqEGyfHhR3q pMgHPFBi2dTbIj4W0bSs8U3zcboPClxKOFv+TwqDScqUZ19ezsIl+zEhIuC1seVZLp 1npCB5arhdek9UtM3pccXQsqt4HjhEqY5Vi1oIjIWv3VlhWyU7nOdw3tltMjcuUIDb BYSY9PXyyVDaJjSgSTXgGMLaukCxlWGuyHyZ04R9hm1gHAzDhs/tO3aRWL8Jy5yi4F lGLspyi0sWUNHtR2I3g90kxQCeow5qxnccaBmUHErjlf57EMGZYXojV3NLlROsJdV6 GSaZYVA/XVGdQ== From: Sasha Levin To: stable@vger.kernel.org Cc: Kaushlendra Kumar , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Sasha Levin Subject: [PATCH 5.10.y] platform/x86: intel_telemetry: Fix swapped arrays in PSS output Date: Sat, 7 Feb 2026 10:54:58 -0500 Message-ID: <20260207155458.405088-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <2026020727-cornflake-elope-4f66@gregkh> References: <2026020727-cornflake-elope-4f66@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Kaushlendra Kumar [ Upstream commit 25e9e322d2ab5c03602eff4fbf4f7c40019d8de2 ] The LTR blocking statistics and wakeup event counters are incorrectly cross-referenced during debugfs output rendering. The code populates pss_ltr_blkd[] with LTR blocking data and pss_s0ix_wakeup[] with wakeup data, but the display loops reference the wrong arrays. This causes the "LTR Blocking Status" section to print wakeup events and the "Wakes Status" section to print LTR blockers, misleading power management analysis and S0ix residency debugging. Fix by aligning array usage with the intended output section labels. Fixes: 87bee290998d ("platform:x86: Add Intel Telemetry Debugfs interfaces") Cc: stable@vger.kernel.org Signed-off-by: Kaushlendra Kumar Link: https://patch.msgid.link/20251224032053.3915900-1-kaushlendra.kumar@intel.com Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen Signed-off-by: Sasha Levin --- drivers/platform/x86/intel_telemetry_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/intel_telemetry_debugfs.c b/drivers/platform/x86/intel_telemetry_debugfs.c index 1d4d0fbfd63cc..e533de621ac4b 100644 --- a/drivers/platform/x86/intel_telemetry_debugfs.c +++ b/drivers/platform/x86/intel_telemetry_debugfs.c @@ -449,7 +449,7 @@ static int telem_pss_states_show(struct seq_file *s, void *unused) for (index = 0; index < debugfs_conf->pss_ltr_evts; index++) { seq_printf(s, "%-32s\t%u\n", debugfs_conf->pss_ltr_data[index].name, - pss_s0ix_wakeup[index]); + pss_ltr_blkd[index]); } seq_puts(s, "\n--------------------------------------\n"); @@ -459,7 +459,7 @@ static int telem_pss_states_show(struct seq_file *s, void *unused) for (index = 0; index < debugfs_conf->pss_wakeup_evts; index++) { seq_printf(s, "%-32s\t%u\n", debugfs_conf->pss_wakeup[index].name, - pss_ltr_blkd[index]); + pss_s0ix_wakeup[index]); } return 0; -- 2.51.0