From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-214.mta0.migadu.com [91.218.175.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B26748165D for ; Thu, 13 Aug 2026 13:59:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.214 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786629572; cv=none; b=sXilkmRT9XbULWFb7dhbyo4ijvLkm3Xwrqjn6SxHG+rtgXIqgLknzPFRM3cGMfawespzG8Ad8NWX8sqESVEgmI/jAkmS9n1qRE+oI9gcr0cCy7MR0TkeR0QE/dGdheD7zKJjXoCG59y3cnjsh0nf5KPvj6+OBpCkBH161HhKZE4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786629572; c=relaxed/simple; bh=g7cM1EtvSSd8zFxm3srKWm1gY+Yn50dLWX+MS5zFf0Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=M6F4G4RGcV7dnnVv+nuApHx0ZDghSDCwkP/YhVqvhvmyb27UjYkZfa+uLNOhQzZExNd3HixOIJRLZJwWMld/sDOU+yaFjBKa2G3IUFmfKz5ia7X9C4IZ9poP/prv1MLt6SQb0U7tkUIXrQM0LFKSdBdlHW/NeIzB2lAqgN2upGg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=nWWE8IIy; arc=none smtp.client-ip=91.218.175.214 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="nWWE8IIy" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=g7cM1EtvSSd8zFxm3srKWm1gY+Yn50dLWX+MS5zFf0Q=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1786629568; v=1; x=1787234368; b=nWWE8IIywVHL0HsAcP3nyLwSrtMbshLdFaMkyTdxr1ewbLRhSm1dbznB76IbUerwDY1Et9Z0 PNaZB8ZC243TDRc+UyNzlGnQHanCMG/43Gf/LybmOm6qXMuOT/1E/iu8duVfoKU4Ml1JkpG8Euv Pd8Na3sBe6YgZRRzO4xn29gA= X-Envelope-To: linux-kernel@vger.kernel.org Received: from three-body (240e:398:91:37f0:32bd:268b:b073:e504) by smtp.migadu.com with ESMTPS id 0182a247184ea16f; Thu, 13 Aug 2026 13:59:28 +0000 X-Migadu-Flow: FLOW_OUT Date: Thu, 13 Aug 2026 21:59:08 +0800 From: Chen Yu To: Reinette Chatre Cc: Reinette Chatre , Tony Luck , Borislav Petkov , Thomas Gleixner , Dave Hansen , Peter Newman , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Dave Martin , Ben Horgan , James Morse , Babu Moger , Drew Fustini , Fenghua Yu , Chen Yu Subject: Re: [RFC v2] arm,x86,fs/resctrl: Generic schema description Proof of Concept Message-ID: References: <9e38f138-7872-445d-9a11-105f9d0fa4d0@intel.com> <07a79f5f-ad39-447d-b43d-01e44c7870a2@intel.com> <5ecbbe3d-aa8c-409b-8963-0ee50b456814@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5ecbbe3d-aa8c-409b-8963-0ee50b456814@intel.com> On Tue, Aug 11, 2026 at 11:49:12AM +0800, Chen, Yu C wrote: > > I find "region-aware controllers at the same level as legacy controller" together with > > "per controller enable/disable" conflicting since it creates impression that user space can > > enable/disable the controllers independently while there is a required dependency among the > > different controllers based on whether hardware has region-aware MBA enabled or not. Even > > here there would be a requirement to communicate to userspace which controllers could be > > enabled/disabled together ... which is the same as the emulated list, no? > > I see. So we actually need a single option (control_mode) to switch between > modes (legacy vs. > native, mutually exclusive), rather than giving each controller its own > independent enable/disable > toggle. The emulated list is one way to implement control_mode, ensuring > "legacy" and "native" > are mutually exclusive. > While adjusting the region aware code on this emulation part, a minor issue is found in commit ("fs/resctrl: Support emulated controls") diff --git a/fs/resctrl/rdtgroup.c b/fs/resctrl/rdtgroup.c index cac4b3293cef..ab7d3fa3f337 100644 --- a/fs/resctrl/rdtgroup.c +++ b/fs/resctrl/rdtgroup.c @@ -124,7 +124,7 @@ void rdt_staged_configs_clear(void) if (list_empty(&ctrl->emulated_by)) continue; list_for_each_entry(em_ctrl, &ctrl->emulated_by, entry) { - list_for_each_entry_rcu(dom, &ctrl->domains, hdr.list, lockdep_is_cpus_held()) + list_for_each_entry_rcu(dom, &em_ctrl->domains, hdr.list, lockdep_is_cpus_held()) memset(dom->staged_config, 0, sizeof(dom->staged_config)); } } thanks, Chenyu