From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 4FA71410D02 for ; Wed, 29 Apr 2026 18:49:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777488552; cv=none; b=OPBgehL3iekeq4PPs55uQJzFhv+MB4XhmACkCqvGkw++ovG+px/aASbwwspCMn12bRF9NZhDhQd6BgQenAKzLPUGAmgbLI8ajAXXaU4k1D+OJzJzI3oMWuIxOwn4mdQpLlbKUQVi4vBWuve7ZHcuZNGkgz5UViYyUYGtSa3mhng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777488552; c=relaxed/simple; bh=TpqgBuTQel4V5/BGOHX3wAgyHeUcGtOmEJQ2AKSmzOg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TVvdUxdtoHRtdoxjfu7F3mh3M/B2K98+/0iAOzLHqqI7zrXmmzAtWuDA3U2D1w37cYrKoxs+MZUGUBIGAzRH+a/J+2vVD5D2Qde252uPZlq2Kgird1KEvwWeOWWR78QOCjRKjELjYW53icDR9FmLCOJcrugfpj1dQbcE9tcntPA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=d/Pc/AoN; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="d/Pc/AoN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1777488549; x=1809024549; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TpqgBuTQel4V5/BGOHX3wAgyHeUcGtOmEJQ2AKSmzOg=; b=d/Pc/AoNZ/M4ha+fFeOjAOIBrvoExSd9WH+qTAZK+9T8YgqqKHm8VM5m 05to91Lzk9d0cQwyXRxi5XjKFN4W43AYqSbmyv6lmMuJeaLVEvHMUzo/x Ikx1u1iBRR5MYaMnw15hlKzEgi8VYetDNWWTVCla6n2cgvKlyKb4nfoFp +HkTiRdPJlDSYxjvc9iXjv0vP/08Nc44KgxKGZLhK3NC10yzP6xtPRjVR Wcm8R/seV/St8jjqyErNcgDu99CAJRJevDKcGSnKhg/Lyux1Ga+z4n2Ax G+MMV9foAdEhqcjzy/e2pcTG0R2ROkgnPGOWbJtmUm8fOrig2fgccH/Bj w==; X-CSE-ConnectionGUID: VMo/NNdfQAWFKNq9VGcF5g== X-CSE-MsgGUID: /lb0NnuERFyGyCjn8vzI9A== X-IronPort-AV: E=McAfee;i="6800,10657,11771"; a="89890678" X-IronPort-AV: E=Sophos;i="6.23,206,1770624000"; d="scan'208";a="89890678" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2026 11:49:05 -0700 X-CSE-ConnectionGUID: YBURRahzS6aVzIiPMXyLSA== X-CSE-MsgGUID: CNEj4rkASy6J7jcBPE/V0w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,206,1770624000"; d="scan'208";a="238322987" Received: from mjruhl-desk.amr.corp.intel.com (HELO agluck-desk3.home.arpa) ([10.124.222.13]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2026 11:49:05 -0700 From: Tony Luck To: Fenghua Yu , Reinette Chatre , Maciej Wieczor-Retman , Peter Newman , James Morse , Babu Moger , Drew Fustini , Dave Martin , Chen Yu , David E Box , x86@kernel.org Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v6 01/10] x86/resctrl: Stop setting event_group::force_off on RMID shortage Date: Wed, 29 Apr 2026 11:48:49 -0700 Message-ID: <20260429184858.36423-2-tony.luck@intel.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260429184858.36423-1-tony.luck@intel.com> References: <20260429184858.36423-1-tony.luck@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Drop the force_off assignment from all_regions_have_sufficient_rmid(). This preserves current single-enumeration behaviour while preparing for the upcoming per-mount enumeration, where latching force_off would incorrectly suppress re-enumeration on subsequent mounts - even when the user explicitly requested the feature via "rdt={feature}". Signed-off-by: Tony Luck --- arch/x86/kernel/cpu/resctrl/intel_aet.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/cpu/resctrl/intel_aet.c b/arch/x86/kernel/cpu/resctrl/intel_aet.c index 89b8b619d5d5..e2af700bca04 100644 --- a/arch/x86/kernel/cpu/resctrl/intel_aet.c +++ b/arch/x86/kernel/cpu/resctrl/intel_aet.c @@ -60,8 +60,8 @@ struct pmt_event { * data for all telemetry regions of type @pfname. * Valid if the system supports the event group, * NULL otherwise. - * @force_off: True when "rdt" command line or architecture code disables - * this event group due to insufficient RMIDs. + * @force_off: True when "rdt" command line disables this event group + * to avoid system limitations due to insufficient RMIDs. * @force_on: True when "rdt" command line overrides disable of this * event group. * @guid: Unique number per XML description file. @@ -214,10 +214,8 @@ static bool all_regions_have_sufficient_rmid(struct event_group *e, struct pmt_f if (!p->regions[i].addr) continue; tr = &p->regions[i]; - if (tr->num_rmids < e->num_rmid) { - e->force_off = true; + if (tr->num_rmids < e->num_rmid) return false; - } } return true; -- 2.53.0