Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3066823lqt; Tue, 23 Apr 2024 09:25:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVF2FAAwI6MC3psjN19KuXwr6WspGmOn1S3mOxi+v85iXW7c3XTTJHrgAmiGt/YH5b1J2+FFFI0cF2wGobBCG7bJxw3m7x0dykBO+Mpg== X-Google-Smtp-Source: AGHT+IGEIF0aboN6b4bTQnl4yokWTbYOVuVf1njAHayNhaxDvxeWhhE35M/Zt5G2rihpFo0o2WXB X-Received: by 2002:a05:6a20:7fa9:b0:1a9:85a0:afeb with SMTP id d41-20020a056a207fa900b001a985a0afebmr14956250pzj.20.1713889523935; Tue, 23 Apr 2024 09:25:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713889523; cv=pass; d=google.com; s=arc-20160816; b=DXsOWfFXXXPDP0ANoVG9tIne1fftZwSK6ZgN+CBhiYulq1M8CXRdpdnyVrVjJsjb8k 2cZm5iQ2P6vNopCGWi1a/wBpUIMCdy6tM0xrf2zrwtvEsMip4inBKyI3kmJ06kCXwc4p Hht8AtAaC6UD/6X5vQ52BWGwu5QB1rocALR6tLOIqBYHYGj4SyoU4fogwClOxjuYyqwp yqev4NJonHvW9FqYjk+MzSLnF5I/p8s05YSPFo646O2QkjSQVYnkZT2W0Pv7pTXHPacL iak1o8oLSOyitYmBCUgZSl2S+6Fa2KNrR5wHsULisSfsV/CQezjKnqgPTKGrdEzYMAVp +seg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=FmHrMPbQplnV5tEQkEBA76ZM081na5xhD+fA8VTq0+Y=; fh=nw2gyEgX9qHv37YNLGWpuiuvtxeqOZtqV+0IYgu5OQw=; b=VP0yGOYqfQouvL6viPLFohNRLT9ehIP8UyxTMlBHN2LgtZQ0xkPP7uHUxRgxCvBKV/ 3B3/+rDn0vgYRE170or4OxJXAICv8FEJDtwZJL9pfqmljttosRwpaZoCSul/rGP2kvGQ JqD/JmbZoW591SEAxzR5DkykclW1KFZ2n90rR+ISIJBfpmFdcIdEvlvEBWdzvYZUONlA uz3TvwDRuf60gtX0jHl14z3EE2oCauVenyCr3e7iJ8zhiOb5D+HxFIDZeczgFVOR+zAp Rj76vlLPjESfo2Au3WCCXvDRFaFe2BmoPklIczgkkQTy0O4BzydkFJTc5wApP/0qRDFz RN+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-155542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o25-20020a635a19000000b005d8bed5ec84si10015081pgb.258.2024.04.23.09.25.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 09:25:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-155542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155542-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C3F1CB24510 for ; Tue, 23 Apr 2024 16:17:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66DD513CFBE; Tue, 23 Apr 2024 16:17:37 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E80315FB9C; Tue, 23 Apr 2024 16:17:34 +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=1713889056; cv=none; b=BEU07kUc/qHdIxJ/a1upFIDR5PD/X39XIQxiS4BDbyrZ+I+LU7vCSJcxzPM6U5eoPUPonzkkGgjBVy1J4inHIkhnI4M/dzZR9lV+z3kWblw2tSjXEQuuwAJ68jz0fn9ArmXeHl9a+NySvntFdxzcG4N01nhseGAsmT1F5+k76T8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713889056; c=relaxed/simple; bh=QncCMJcdoGCaS7NTRKcEK2tYaI7OoWFk7uw3k767ghI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ef6vYua0pR+TxA63d7Ig2Fgx4dM1GqJmziqpjXnDXUDA+Jz8iIoDbiJd4FHx4+vVgr9/Cm1Jsx40QR6ryTIBLSG4Wz5Eznfg3DTdRwlPDGaWE1NH2N9GcHBnLHC243paKY+/mhPVCj5S76upd3k1Dot/tEEzdLNAsqfLAROlsRk= 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 044DA2F; Tue, 23 Apr 2024 09:18:02 -0700 (PDT) Received: from e133380.arm.com (e133380.arm.com [10.1.197.52]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EDAD43F7BD; Tue, 23 Apr 2024 09:17:29 -0700 (PDT) Date: Tue, 23 Apr 2024 17:17:27 +0100 From: Dave Martin To: "Moger, Babu" Cc: Peter Newman , corbet@lwn.net, fenghua.yu@intel.com, reinette.chatre@intel.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, paulmck@kernel.org, rdunlap@infradead.org, tj@kernel.org, peterz@infradead.org, yanjiewtw@gmail.com, kim.phillips@amd.com, lukas.bulwahn@gmail.com, seanjc@google.com, jmattson@google.com, leitao@debian.org, jpoimboe@kernel.org, rick.p.edgecombe@intel.com, kirill.shutemov@linux.intel.com, jithu.joseph@intel.com, kai.huang@intel.com, kan.liang@linux.intel.com, daniel.sneddon@linux.intel.com, pbonzini@redhat.com, sandipan.das@amd.com, ilpo.jarvinen@linux.intel.com, maciej.wieczor-retman@intel.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, eranian@google.com, james.morse@arm.com Subject: Re: [RFC PATCH v3 00/17] x86/resctrl : Support AMD Assignable Bandwidth Monitoring Counters (ABMC) Message-ID: References: <4cd220cc-2e8e-4193-b01a-d3cd798c7118@amd.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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4cd220cc-2e8e-4193-b01a-d3cd798c7118@amd.com> Hi Babu, On Tue, Apr 23, 2024 at 10:43:25AM -0500, Moger, Babu wrote: > Hi Dave, > > On 4/23/24 07:38, Dave Martin wrote: > > Hi Peter, > > > > On Mon, Apr 22, 2024 at 11:23:50AM -0700, Peter Newman wrote: > >> Hi Dave, > >> > >> On Mon, Apr 22, 2024 at 9:33 AM Dave Martin wrote: > >>> > >>> Hi Babu, > >>> > >>> On Thu, Mar 28, 2024 at 08:06:33PM -0500, Babu Moger wrote: > >>>> Assignment flags can be one of the following: > >>>> > >>>> t MBM total event is assigned > >>> > >>> With my MPAM hat on this looks a bit weird, although I suppose it > >>> follows on from the way "mbm_total_bytes" and "mbm_local_bytes" are > >>> already exposed in resctrlfs. > >>> > >>> From an abstract point of view, "total" and "local" are just event > >>> selection criteria, additional to those in mbm_cfg_mask. The different > >>> way they are treated in the hardware feels like an x86 implementation > >>> detail. > >>> > >>> For MPAM we don't currently distinguish local from non-local traffic, so > >>> I guess this just reduces to a simple on-off (i.e., "t" or nothing), > >>> which I guess is tolerable. > >>> > >>> This might want more thought if there is an expectation that more > >>> categories will be added here, though (?) > >> > >> There should be a path forward whenever we start supporting > >> user-configured counter classes. I assume the letters a-z will be > >> enough to cover all the counter classes which could be used at once. > > > > Ack, though I'd appreciate a response on the point about "_" below in > > case people missed it. > > It was based on the dynamic debug interface and also Reinette's suggestion > as well. > https://www.kernel.org/doc/html/v4.10/admin-guide/dynamic-debug-howto.html > (Look for "No flags are set"). > > We tried to use that similar interface. Fair enough; I haven't touched dynamic debug for quite a while and had forgotten about this convention being used there. Apologies for the noise on that! Cheers ---Dave