Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 4A08E395D8E; Tue, 21 Jul 2026 20:06:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784664409; cv=none; b=iJxRWbgyrgZJ52RISFku9dsDZHqCqYNukSxsXbmnEzmYM0t2sxha+hLGzPUDJ5KPTcChMLbfQzxw1TN1+B4rd/tyfZR/PEFLBNM1FozXz9v5ZbAVhVSspi7qljpraRSzjsrDrMHWO8D74csUSt2GV/XwknNyA0fr+vW2SFve5+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784664409; c=relaxed/simple; bh=fj3IbpTxUNOjlAKeG9v1ZjwcHjEmG/Jvmk1pza12+Og=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EcRUjEGJAcPn+Uw5dvTEaOejEncmMZa9pVmwIrJgAzsDpkSCGCD7/EZjpyc1guRIN356WuaZCaSzcTAGsiy0F2aIJ4QOUWnvyP4W94Que6GdulzG2fhnCgYwA58i7Pk6UrgaLNraWgWC/Lanxu1VwwjGPrKvu3wIpqrUzjX34Gc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mb34CYgO; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mb34CYgO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABECA1F000E9; Tue, 21 Jul 2026 20:06:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784664408; bh=yGSf5B6d+HMetOf60v6dvLRQZtyq+qRdHyQQ+HCdMVE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=mb34CYgO18+vAOSTNr+kx5acFM7SmwLeu0cAFK1j3xDKlyWFkEXVRG1SjkaNy9aO2 RGfzZociQsH4q6mW5vNsxYZtPvh9HyOH0Gp8KcUim3dFluhfjxlgg75NPIM9Vbit/K R287hHAZuGBzbg7qUdbiUhwUEWNWCltsv6OFLP9Q= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Zide Chen , "Peter Zijlstra (Intel)" , Dapeng Mi , Sasha Levin Subject: [PATCH 6.12 1188/1276] perf/x86/intel/uncore: Defer ADL global PMON enable to enable_box() Date: Tue, 21 Jul 2026 17:27:11 +0200 Message-ID: <20260721152512.628555501@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152446.065700225@linuxfoundation.org> References: <20260721152446.065700225@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.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Zide Chen [ Upstream commit 9a0bb848a37150aeccc10088e141339917d995dc ] On some Raptor Cove CPUs, enabling uncore PMON globally at driver init may increase power consumption even when no perf events are in use. Drop adl_uncore_msr_init_box() and defer programming the global control register to enable_box(), so it is only set when a box is actually used. IMC and IMC freerunning counters use a separate control path and are unaffected. Fixes: 772ed05f3c5c ("perf/x86/intel/uncore: Add Alder Lake support") Signed-off-by: Zide Chen Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Dapeng Mi Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260602144908.263680-5-zide.chen@intel.com [ deleted adl_uncore_msr_init_box() in its 6.12 wrmsrl() spelling since the tree predates the wrmsrq() rename ] Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/x86/events/intel/uncore_snb.c | 7 ------- 1 file changed, 7 deletions(-) --- a/arch/x86/events/intel/uncore_snb.c +++ b/arch/x86/events/intel/uncore_snb.c @@ -538,12 +538,6 @@ void tgl_uncore_cpu_init(void) skl_uncore_msr_ops.init_box = rkl_uncore_msr_init_box; } -static void adl_uncore_msr_init_box(struct intel_uncore_box *box) -{ - if (box->pmu->pmu_idx == 0) - wrmsrl(ADL_UNC_PERF_GLOBAL_CTL, SNB_UNC_GLOBAL_CTL_EN); -} - static void adl_uncore_msr_enable_box(struct intel_uncore_box *box) { wrmsrl(ADL_UNC_PERF_GLOBAL_CTL, SNB_UNC_GLOBAL_CTL_EN); @@ -562,7 +556,6 @@ static void adl_uncore_msr_exit_box(stru } static struct intel_uncore_ops adl_uncore_msr_ops = { - .init_box = adl_uncore_msr_init_box, .enable_box = adl_uncore_msr_enable_box, .disable_box = adl_uncore_msr_disable_box, .exit_box = adl_uncore_msr_exit_box,