From mboxrd@z Thu Jan 1 00:00:00 1970 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 A397A3DA5A3 for ; Tue, 14 Jul 2026 14:51:00 +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=1784040665; cv=none; b=i1qIBxaYon15zihTUGYLXAmSmeG4vZFuYn2X2aBKWAO+2R6UkERHgEK4QYTQ56PoMWb9PFjDWnEnhMmtsoI3LKyx/OXPapcVlUg3ke1JYV+GliTafGhjSS2JOrjPtGWXLtj9SzoK4ZzSYSn/3cyeJEoYBX+wAVFZF7eCTohVKew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784040665; c=relaxed/simple; bh=uBnojuZJQRB5NC0GLBMLT8S9lc0jE1rfkpgk19sZlCs=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=CvORYv0Rg59wtBAEcq6ITPz+SNos0IqGDYR7+OUM/BEM/DTFA3+vMDrypQ9AgwwSb2oK5EAy7Q94WLtw5CjlXti7CfPH9RU4OP56Bw+/PNFfE2RqgmwJ3MTYeOOvQdR4QERGbhRYXxJC2HhIPWnaEBPFNnMpPhcXHaCu/T086xA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BaeyQDVI; 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="BaeyQDVI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 813461F00A3D; Tue, 14 Jul 2026 14:50:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784040657; bh=s1ht2Deucu/zYk5UTqe8IYgVunrx6fqsp9vNuU5stZ4=; h=Subject:To:Cc:From:Date; b=BaeyQDVIRuCYE5YHFIOFHO1ZnnzkXiA3SD/Z0ejfC2jT1s0fOGTB1A0VSs7QU5OB/ swHhn3rBObTHnYt7mpICs8mNf+c6gR3tsFvC6Cn0IluR9W+EHbTC60JeX8/8HF3kHn sHo9PoH5iH1TelqMLrWHTElzh2Q4hmz6DjJ3sLuk= Subject: FAILED: patch "[PATCH] perf/x86/intel/uncore: Defer ADL global PMON enable to" failed to apply to 6.12-stable tree To: zide.chen@intel.com,dapeng1.mi@linux.intel.com,peterz@infradead.org Cc: From: Date: Tue, 14 Jul 2026 16:50:04 +0200 Message-ID: <2026071404-frays-clover-6c75@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=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y git checkout FETCH_HEAD git cherry-pick -x 9a0bb848a37150aeccc10088e141339917d995dc # git commit -s git send-email --to '' --in-reply-to '2026071404-frays-clover-6c75@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 9a0bb848a37150aeccc10088e141339917d995dc Mon Sep 17 00:00:00 2001 From: Zide Chen Date: Tue, 2 Jun 2026 07:49:05 -0700 Subject: [PATCH] perf/x86/intel/uncore: Defer ADL global PMON enable to enable_box() 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 diff --git a/arch/x86/events/intel/uncore_snb.c b/arch/x86/events/intel/uncore_snb.c index 3dbc6bacbd9d..edddd4f9ab5f 100644 --- a/arch/x86/events/intel/uncore_snb.c +++ b/arch/x86/events/intel/uncore_snb.c @@ -563,12 +563,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) - wrmsrq(ADL_UNC_PERF_GLOBAL_CTL, SNB_UNC_GLOBAL_CTL_EN); -} - static void adl_uncore_msr_enable_box(struct intel_uncore_box *box) { wrmsrq(ADL_UNC_PERF_GLOBAL_CTL, SNB_UNC_GLOBAL_CTL_EN); @@ -587,7 +581,6 @@ static void adl_uncore_msr_exit_box(struct intel_uncore_box *box) } 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,