From nobody Sun Feb 8 07:22:04 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 5C8122581; Sat, 10 Jan 2026 19:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768074355; cv=none; b=adEYbkbocKNAZyoFSQD/VK+7ekTvTc6tRmYR/lYNGXMmjUPvNyeJZHG7tv05kVk/i5iiwJFyQlcGBozjEtHKcl1espYseFVQaojOb2y7XwK3NAR4cF9BEYlgfMcjKX9hjpe91CO3/CucNklxyg0vdTCyyxj4ytpYCu5Ml5xu4eY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768074355; c=relaxed/simple; bh=GufGBrDKSwqgDum2yrXnD2jk1x2VHTJqf+Rh301vgiM=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=VEjGylLaoDIVbr99sFfH96QLGq24QcYsfZbIOCIjzGdpIteAAzp1SCtgbVP/X9MjubFjiXiFlqBdeu7T3efP4R7gtU1CVCA3fyfik3eOuiIhD5e66YSwdvY7Css8g6zq3EFCo7ft16lvDQ0VYj15IzSBCOcDJ/IqoYTPBj9rx0w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=HdIsMSMQ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bg4dW2Bp; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="HdIsMSMQ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bg4dW2Bp" Date: Sat, 10 Jan 2026 19:45:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1768074352; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fUaVDfJdgx2aN57HAsem8cfaN2p8C9bCyHVQiKlSJT8=; b=HdIsMSMQa8GTnWMltLyczRPHkgjYnGA4JIoD8a3UKqxJ6e8Tp5QV6Y8g2wx3YbaRBMxfX5 9y+fjrmWqiX7yhjnnTUv7DMaHZr20VOyuMIWc4ZHPHqbqOESvyNSIW1nt26SETHmgVU7OL Tm/6R6gXVVO3i5dMsA5NxxjlXlBbmM6ECycpIMZG98AjebsveUf7zJ1qS32CTuT+wdtfDw FEHjfgYa6+BCKVHfRyyGzSru3vyrvmupJ0OzoIO5sUayw1xHhzotWZYAi63/dJBydER9ON fj0zcBaGZRI6WuWuZUsSBhdtw/NjY5JQ2qlhbu3fxri9ZNmztw918vu/0sKeFg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1768074352; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fUaVDfJdgx2aN57HAsem8cfaN2p8C9bCyHVQiKlSJT8=; b=bg4dW2Bpe49iyfrN/vF3U9+CzRCfa7yB9I9fwSOM4Af36lln4epBdFTlGl5wi4rCgA6zit cGoQAZUhGtpIiRCw== From: "tip-bot2 for Tony Luck" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cache] x86/resctrl: Enable RDT_RESOURCE_PERF_PKG Cc: Tony Luck , "Borislav Petkov (AMD)" , Reinette Chatre , x86@kernel.org, linux-kernel@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <176807430536.510.732440227351484733.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/cache branch of tip: Commit-ID: 4bbfc90122e974ccbd9aa80c964413052b9519f3 Gitweb: https://git.kernel.org/tip/4bbfc90122e974ccbd9aa80c964413052= b9519f3 Author: Tony Luck AuthorDate: Thu, 08 Jan 2026 09:42:27 -08:00 Committer: Borislav Petkov (AMD) CommitterDate: Sat, 10 Jan 2026 11:48:13 +01:00 x86/resctrl: Enable RDT_RESOURCE_PERF_PKG Since telemetry events are enumerated on resctrl mount the RDT_RESOURCE_PER= F_PKG resource is not considered "monitoring capable" during early resctrl initia= lization. This means that the domain list for RDT_RESOURCE_PERF_PKG is not built when= the CPU hotplug notifiers are registered and run for the first time right after res= ctrl initialization. Mark the RDT_RESOURCE_PERF_PKG as "monitoring capable" upon successful tele= metry event enumeration to ensure future CPU hotplug events include this resource= and initialize its domain list for CPUs that are already online. Signed-off-by: Tony Luck Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Reinette Chatre Link: https://lore.kernel.org/20251217172121.12030-1-tony.luck@intel.com --- arch/x86/kernel/cpu/resctrl/core.c | 16 ++++++++++++++++ arch/x86/kernel/cpu/resctrl/intel_aet.c | 6 ++++++ 2 files changed, 22 insertions(+) diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resct= rl/core.c index 0da44ca..9fcc06e 100644 --- a/arch/x86/kernel/cpu/resctrl/core.c +++ b/arch/x86/kernel/cpu/resctrl/core.c @@ -766,8 +766,24 @@ static int resctrl_arch_offline_cpu(unsigned int cpu) =20 void resctrl_arch_pre_mount(void) { + struct rdt_resource *r =3D &rdt_resources_all[RDT_RESOURCE_PERF_PKG].r_re= sctrl; + int cpu; + if (!intel_aet_get_events()) return; + + /* + * Late discovery of telemetry events means the domains for the + * resource were not built. Do that now. + */ + cpus_read_lock(); + mutex_lock(&domain_list_lock); + r->mon_capable =3D true; + rdt_mon_capable =3D true; + for_each_online_cpu(cpu) + domain_add_cpu_mon(cpu, r); + mutex_unlock(&domain_list_lock); + cpus_read_unlock(); } =20 enum { diff --git a/arch/x86/kernel/cpu/resctrl/intel_aet.c b/arch/x86/kernel/cpu/= resctrl/intel_aet.c index aba9971..89b8b61 100644 --- a/arch/x86/kernel/cpu/resctrl/intel_aet.c +++ b/arch/x86/kernel/cpu/resctrl/intel_aet.c @@ -270,6 +270,12 @@ static bool enable_events(struct event_group *e, struc= t pmt_feature_group *p) else r->mon.num_rmid =3D e->num_rmid; =20 + if (skipped_events) + pr_info("%s %s:0x%x monitoring detected (skipped %d events)\n", r->name, + e->pfname, e->guid, skipped_events); + else + pr_info("%s %s:0x%x monitoring detected\n", r->name, e->pfname, e->guid); + return true; } =20