From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19CBE247280; Wed, 5 Nov 2025 14:51:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762354294; cv=none; b=EuOdu+Xl7SE6Fgt2LtsNC2Fx7/daRSOMVdgVUWYNMUwt6DcsRN7ruzkGnm+A/Z1RzWYgJdM1xGs+DXJvgQDEhZJojGQaW9b9Ch4vHAPYTihvOXXcluUpNK1axSL4NxoiSPVfSgK+om+lPuH34WYO1fZ7tleMqmIcOPLFJPymjy8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762354294; c=relaxed/simple; bh=ZOE6KBq6qyZ6GUOhMvf845RuehBhwKTvJXr0s+oRmME=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e4e3hzTKkMoTDbW01Cn8cAKvcc4HXteSjqX1SlXxuNRsn0Qa71Tzd7Xxyt38MCLA5A426CXKfStSV83aL0D9ijdqomCmwq8+UH4mkh2kP/WLaT71fr28usCnvACKVOlzdJBNYzHMru8KYsS/tWqhqfg0q0qAjbEzrZied2Oe5Ew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A09D11692; Wed, 5 Nov 2025 06:51:23 -0800 (PST) Received: from e133380.arm.com (e133380.arm.com [10.1.197.68]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2CCB93F694; Wed, 5 Nov 2025 06:51:30 -0800 (PST) Date: Wed, 5 Nov 2025 14:51:27 +0000 From: Dave Martin To: "Luck, Tony" Cc: Christophe JAILLET , Reinette Chatre , James Morse , Babu Moger , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] fs/resctrl: Slightly optimize cbm_validate() Message-ID: References: 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: Hi, On Mon, Nov 03, 2025 at 10:17:16AM -0800, Luck, Tony wrote: > On Mon, Oct 27, 2025 at 11:43:49AM +0000, Dave Martin wrote: > > Hi, > > > > [Tony, I have a side question on min_cbm_bits -- see below.] > > [...] > > > > > > There's no enumeration for the minimium number of bits in a CBM mask. > Haswell (first to implemenent L3 cache allocation) got a quirk to > to set it to "2". I don't expect that we'd do that again. > > So safe to assume that resctrl doesn't have to handle the combination > of min_cbm_bits > 1 with arch_has_sparse_bitmasks. > > -Tony OK. A min_cbm_bits value > 1 seems unlikely with sparse bitmasks anyway. If the hardware has independent storage for each bit, there would be no need for such a constraint... so I would be surprised to see this in practice. Just wanted to check that I wasn't missing something! In MPAM, bitmap controls always allow each bit to be controlled independently, according to the architecture. Cheers ---Dave