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 78545480DD8 for ; Tue, 14 Jul 2026 14:51:05 +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=1784040668; cv=none; b=HeskQ5839kN1k0TDrvzz98TOwTIUybx2asXPpB0nBIBwyD4sMzhw2MX9nOUUtvlbn1iR+Cn02SInhAcVvfpbG0XqjauHUgRx+36IGZfB5y/ODZ6C1N0PQ+zL7835PrSgmKujVT0PlJnKBe0xa7tMd9b8JK9Db7g07gvZshWp++E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784040668; c=relaxed/simple; bh=xVy+s+5ogKrYQ7kxRIcFmu9Ej7XvfE9VXpmSyHPjdMw=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=ogtn1oZ2ylU4OXMypnRVBbkWm9M0srUXdlUPWL6goq1lHob5B6lcArJtasjQ2RoEG8arECvuQutXawnisLkD0eEICF80Rgd9jtcBRLFFkxLlWszcfryvWvbPpvdOfbzCxYsxgMIBzOqUuemn8OdMr9YIX8cFqn4aJUm+S2736cg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FiaA5VMP; 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="FiaA5VMP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65B5A1F00A3A; Tue, 14 Jul 2026 14:51:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784040664; bh=ySUye8wceZEm7MthUTA6xw17Ua7eqZLthFnxmrsLOTg=; h=Subject:To:Cc:From:Date; b=FiaA5VMPXw9ThMIgpoG33OfocYG1sbOUKu9VwI48Uw5ziwWy3xhb31F2rD8YRuZyT hTL4XF9MC+tNNV0AnBKyrOw0DJ3r+dwCE2dtCs1QXZc48lry7ATQmvRJs8u0iaAxwP JNdpiFtkG2VmX66JKccPc8jWKrOJgSr0HXHmfACI= Subject: FAILED: patch "[PATCH] perf/x86/intel/uncore: Defer ADL global PMON enable to" failed to apply to 6.6-stable tree To: zide.chen@intel.com,dapeng1.mi@linux.intel.com,peterz@infradead.org Cc: From: Date: Tue, 14 Jul 2026 16:50:05 +0200 Message-ID: <2026071405-hunk-reflex-20c7@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.6-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.6.y git checkout FETCH_HEAD git cherry-pick -x 9a0bb848a37150aeccc10088e141339917d995dc # git commit -s git send-email --to '' --in-reply-to '2026071405-hunk-reflex-20c7@gregkh' --subject-prefix 'PATCH 6.6.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,