From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795946789; b=L89V1sVwFLuC2LPMAQrc4a2fmKXTTxpn1gXp3Esft375imKAyhAoyd1VBaHU8JB+6VOp 0R5ylGJl6PllgbOgvXqeEO+0AdDMERVKGbDJDk1LrQPx6UtIB37UMjalhoDt7G1e0ORwl U2QDQm0R8xEiEVK0KgViNJWG0+wsvj4+aRIFUdysFYTo1NMnq8PhF6Hc6Od2WhaLgjhPh eaZ19ztPitIDBePZ6lUFcGW2hZoOt/x7+bC6RPnvEnLnCgH0QK4NVBSvhfEJbeHtLuN3R c6XLlwObkLx4SS7yUJDm7i4lNZ5CDW30UG1pz2bRuKc2SOq5vaWWHjxaALdKe71tYHg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795946789; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=CEPAlYMRco8OT57p9Gtmn5gpPSTJzy5Ig5NRew+wpOY=; b=4BkqGd56XamHWlM7xvv7gWEOdRcfqm7jGTuvQBSMX2URHT8eZVvKe63cPWksK1T4u/Nz 3QHZmhsQrmkopHOe8ewq/2Pl/wd4FsaY1zVEODr747GYmwfB6v4sXsS+lPp4w9glupaHf eYFaSR0tFlOpRzmcW1/SyOwaidDcjG4HpdRyD4Y1bS2BDw4YKX1Q22RzAHO1TKhmhw03u 834k6RhJMe/hKv+BG8G9jGTp8GDqWRtwm4iC/5LWBQjiYG4gTX/lgv/oZ/FvSbl3QFV9F 1n/zWy1OUIDPI/WECJE+bMyj3Ox1QTVNXJcOc3cNmawJYYNkjnbiYK6I7io60qOyw8w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=vk4f9eJ1; arc=none smtp.remote-ip=91.218.175.52 Received: from mta0.migadu.com (out-52.mta0.migadu.com [91.218.175.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0388606A323 for ; Sun, 29 Nov 2026 10:06:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F0388606A323 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, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=vk4f9eJ1 X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=rrPtdLXqFjWBjOKOT2WchFYuqhyah3Mhw62I9BiDXJo=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795946785; v=1; x=1796551585; b=vk4f9eJ10vdRHbiiWwlJdgBz3+W+3gaSyuqlRK+CzQ4f5hxW2EwkyWnO5lzdlgsOcgD6XMYX Iy1dYdsvMdYo18egpbgvmEUopFPHsiWZw8eikE/ji6Zg4mbSf5By2hzyYfNg2zdANblMfxxVQb8 /aLdJPbOCg73XlBZvVMfoCeo= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 7a084ef29560c611; Sun, 29 Nov 2026 10:06:25 +0000 X-Mizu-Trace-ID: 7a084ef29560c611 X-Migadu-Flow: FLOW_OUT Date: Sun, 29 Nov 2026 18:07:51 +0800 From: Chen Yu To: Reinette Chatre Cc: Chen Yu , tony.luck@intel.com, tglx@kernel.org, bp@alien8.de, mingo@redhat.com, dave.hansen@linux.intel.com, hpa@zytor.com, fenghuay@nvidia.com, babu.moger@amd.com, hongyu.ning@intel.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v10 07/12] x86/resctrl: Parse ACPI CMRC table Message-ID: References: <44ba5286-ae25-46ff-a862-e7c0e26487e8@intel.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44ba5286-ae25-46ff-a862-e7c0e26487e8@intel.com> Hi Reinette, On Wed, Nov 25, 2026 at 11:11:09AM -0800, Reinette Chatre wrote: > > Hi Chenyu, > > On 11/5/26 2:09 AM, Chen Yu wrote: > > The CMRC (Cache Monitoring Registers for CPU Agents Description) sub-table of > > ERDT describes the MMIO registers used to read the LLC occupancy counters of an > > ERDT domain. > > > > Reading the LLC occupancy of an RMID via MMIO, rather than via the > > IA32_QM_EVTSEL/IA32_QM_CTR MSRs, requires the following data from the CMRC > > nit: "via the IA32_QM_EVTSEL/IA32_QM_CTR MSRs" -> "via MSR_IA32_QM_EVTSEL > and MSR_IA32_QM_CTR" > OK, will adjust them after rebase. > > sub-table: > > > > - Where the counters are: the base address and size of the domain's > > monitoring register block. > > - How the counters are laid out: the index function, clump size and clump > > stride, which locate the counter of a given RMID within that block. > > - How to interpret a counter value: the flags, which indicate whether a > > counter can report that its data is unavailable, and up_scale, which > > converts a counter value to bytes. > > > > The LLC occupancy read path needs all of this data on every read. The limbo > > handler also needs up_scale to round its occupancy threshold. > > > > Parse each CMRC sub-table, validate the data above, ioremap the monitoring > > >From what I can tell the patch does not validate all data listed so "validate the > data above" seems to overstate what the patch actually does. > OK, up_scale validation will be added in the next version. > > register block and save a copy of the CMRC sub-table in the corresponding ERDT > > domain entry. > > > > Suggested-by: Tony Luck > > Signed-off-by: Chen Yu > > Tested-by: Hongyu Ning > > --- > > The patch looks good but I think the sashiko feedback about a 0 up_scale needs > to be addressed. > OK, will check up_scale in next version. thanks, Chenyu > Reinette >