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 3843C347FE1; Tue, 16 Dec 2025 11:42:50 +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=1765885372; cv=none; b=oweqWcX+6mn7ttpuEJmqXtoBU3SJSLZpLawEuorpouwgA1b9er4kzJTEQUf/5Tn4s056AvFMo9mussblrP63hLa1cx+wVPPivMoZrGtn0YbyCvu7ggNOcHPGmzt6kxDds3agdvOF9Vmc8hyVvFyh6SbblRUJc2Ta0elmt5+Fh54= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765885372; c=relaxed/simple; bh=hLgPnabaMFJUga6FgBhn29hx82f9xjyAb/Kogoh1x0U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CvTqaETlcmyDooA5sfpTkbYctKeZJEI84aS86C18M3wfsCmQHijMJAkdurhSXWOFKblHJs0hJKUoEwrbcGx8IjDu7KSSLUlwVheMNslWoxGiks2fw+1FzztpCgaHJ9iZJ8HSg0vLXFGe6YS+ghOdB0ZOelX2WEO19pcINK0KN7s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JZ135wSz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JZ135wSz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5014DC4CEF1; Tue, 16 Dec 2025 11:42:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765885370; bh=hLgPnabaMFJUga6FgBhn29hx82f9xjyAb/Kogoh1x0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JZ135wSzfnyMfH9hU8bQ+8Ah6qrolp4WTICuH0ZjUoc+k0/8XugNwFhDLMtCvwoTi gHvD5byBqo8ILGT6cb06naVa3NUBn6ACC6ZZPBvQcJF6IcdLOhD2BRTXOtLEgRNx6a hn+VDBf+p/T8/psGu4UcRmE4EmbO4jiQEWVYoUhI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Zhang Rui , "Peter Zijlstra (Intel)" , Kan Liang , Dapeng Mi , Sasha Levin Subject: [PATCH 6.17 119/507] perf/x86/intel/cstate: Remove PC3 support from LunarLake Date: Tue, 16 Dec 2025 12:09:20 +0100 Message-ID: <20251216111349.844734894@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251216111345.522190956@linuxfoundation.org> References: <20251216111345.522190956@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Zhang Rui [ Upstream commit 4ba45f041abe60337fdeeb68553b9ee1217d544e ] LunarLake doesn't support Package C3. Remove the PC3 residency counter support from LunarLake. Fixes: 26579860fbd5 ("perf/x86/intel/cstate: Add Lunarlake support") Signed-off-by: Zhang Rui Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Kan Liang Reviewed-by: Dapeng Mi Link: https://patch.msgid.link/20251023223754.1743928-3-zide.chen@intel.com Signed-off-by: Sasha Levin --- arch/x86/events/intel/cstate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/events/intel/cstate.c b/arch/x86/events/intel/cstate.c index ec753e39b0077..6f5286a99e0c3 100644 --- a/arch/x86/events/intel/cstate.c +++ b/arch/x86/events/intel/cstate.c @@ -70,7 +70,7 @@ * perf code: 0x01 * Available model: NHM,WSM,SNB,IVB,HSW,BDW,SKL,KNL, * GLM,CNL,KBL,CML,ICL,TGL,TNT,RKL, - * ADL,RPL,MTL,ARL,LNL + * ADL,RPL,MTL,ARL * Scope: Package (physical package) * MSR_PKG_C6_RESIDENCY: Package C6 Residency Counter. * perf code: 0x02 @@ -522,7 +522,6 @@ static const struct cstate_model lnl_cstates __initconst = { BIT(PERF_CSTATE_CORE_C7_RES), .pkg_events = BIT(PERF_CSTATE_PKG_C2_RES) | - BIT(PERF_CSTATE_PKG_C3_RES) | BIT(PERF_CSTATE_PKG_C6_RES) | BIT(PERF_CSTATE_PKG_C10_RES), }; -- 2.51.0