Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp172301lqb; Tue, 16 Apr 2024 12:01:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDj6oF1SBRAIK5hlL/qtbnYny0mpffWYr7GkP9avYeldmTeT/9jJg5qGJcP2RepAb0BxaMozWzPyh/0MoX5Zj8c8Out6/cbXMEEV9IEA== X-Google-Smtp-Source: AGHT+IH/tk3TufJj9HEi9CwlQ1onKLMlfXfIaEm/f1mSNiIs90gv5uWBwhB+NwqZpZDEUD6ZBeRr X-Received: by 2002:a05:6a21:99a2:b0:1a8:58a2:ea41 with SMTP id ve34-20020a056a2199a200b001a858a2ea41mr4190319pzb.9.1713294074264; Tue, 16 Apr 2024 12:01:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713294074; cv=pass; d=google.com; s=arc-20160816; b=cqqCUQIwIIvXhYgWpCWkxEOLjC5lKhbYHBUVMwMSwiVAechlJnHAhaU1tSFJcwET2Q xfE1AecWZB+fsTw1c9V5TneFv8dGK4++W2E0gWmxI1HqxStv7IHWd1AYtwqJsuPVD167 XndzvQ8STJ4j1fGzjFc/ZiVtWeYrMg4m4alHKPbOBObIziaMZNmY7VJ4pMgm4Lf2IGsL OeJhjWE6ZgJPuflOJM+0UxBIdRh5hF/+ERsdGOrqqW1/iic5Fy6OsqGuw+ABxADN7Z6J X+CzbZrLGYWtVxwH44c5OCGsZ05KV7L2hrrNLQEP58+2OWuCBkh1tuhGYR1KUjG7gObv yTjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=tICw/qDwa1/FY+SKomp4c5dR3Tm8JBis2SFpQlX51nM=; fh=wYS0bvCGkaMTe1inryIb2FSr2Ez3UEL3QC2S4TA2kg4=; b=Qiq40wh5lDLwDkpaoTmGFBXefx2m9gZgicZuPZWI4EuMVWn5iC8tRyyrEwmR++yyfS s+n4VPBH9XmU6s80ynnnOB15F6M4f69ieRrA1ISlLFcenai8ABNONrMgJWPZOhQk0tVW 5cRnTxlEMdNuUs1BJUKLM3xdCtZ0857CEfDY03i6YrLBgrbOY4YoU84+X8K++u4+Mjrl +8b+u8sbqUdPOM8WE6jZi3Xw/dPSSDTCslKOmk0okC9MayNH/l8e56YmuDURIIKJV059 zoQ0MmUVlA7qJVKkjgJWDL4q0GXAB2bD0FRYMsFdYR1fkdWtYrBciq5Qyu6wkcK4GGRN x0Zg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Pqdszqc4; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-147428-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147428-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i71-20020a639d4a000000b005f059e58ea8si10451850pgd.466.2024.04.16.12.01.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 12:01:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147428-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Pqdszqc4; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-147428-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147428-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 E8093B2483F for ; Tue, 16 Apr 2024 18:54:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E7FAA139CFC; Tue, 16 Apr 2024 18:53:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Pqdszqc4" Received: from mail-il1-f169.google.com (mail-il1-f169.google.com [209.85.166.169]) (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 E0C90136E0A for ; Tue, 16 Apr 2024 18:53:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713293587; cv=none; b=lDQW2LvA0A+IvsjMKytWgY1hG+S/FrwZs+QE0K8lbCD8olMz1SH31mBD9fIi47BVNswAIWrw9SxGV5qJ+mL2OJjyoI7tQu+2jlrQEX/HtV0dNnsCmmX2qvavRRD/R7/TQbxTER4Z/TBvzG7jjn9XcKBxximjSMiI6Kh/vNcxRGg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713293587; c=relaxed/simple; bh=wJGknp5lUHANdPGAPLPnVm4IhArPwW8Lmavxx3DEeCc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BtnkPpCN2BsLjey9Wqk1gE9a5z+h7AMjEgCtTZHwwQg8GzyWnZpr2fUDW3jD+XLjly9rdzi0mtZ3isNmohbVjK5qVMTIVR99TIsApO6MBB/9CgHrsu7Dhw87n3ZSghmK9t9KyyuLssc3+/Q7joobOY5p800cKEOJguMsZQn0K+A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Pqdszqc4; arc=none smtp.client-ip=209.85.166.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-il1-f169.google.com with SMTP id e9e14a558f8ab-36a3a4c9d11so17285ab.1 for ; Tue, 16 Apr 2024 11:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713293585; x=1713898385; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tICw/qDwa1/FY+SKomp4c5dR3Tm8JBis2SFpQlX51nM=; b=Pqdszqc4osD0CidaqAoTKC4OlSpg50X5RmnVR5oypvL8N44UErrFiksxgyWTHLMEua CkBGdKX63vQ0aoG/voE/LsTVUjF7j76KPOx8V62F/xL0hjq2dunEnwmvQslCPHQd2o+3 LlqA/PZwaSz7PJk60+Q9ZuQ/zHnMY7mMTE4sBT1QPGKKxuIzD6MQqDGB4Ce1aXw5NCCQ 3VRBjWQMTEx5KFqDANIYF6YfCkCOdihnG4LDf5mp8RMNzjznLySao03iAOYAxc2RkwDo 5ZJrPfwIfHRAMX/gIP9gvBFDGi5lYTLTep9ZGBrzvoYJe8c8meQKAnKqsAg0VvnVYlIl MJqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713293585; x=1713898385; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tICw/qDwa1/FY+SKomp4c5dR3Tm8JBis2SFpQlX51nM=; b=b400OzUT9Rngp+KaZeCvCnncyetks1jw4+AOF/PKdbeSbrCdhSVP/uaDrGhgpMDglz Kkj19lHdzNFMNP1pIWLzSyOniTKbWeQPj0mMb/XtfaSPdCAsLbbkU8rsgjQ1B46N/rBq 1SwV6Q75fXQ+6VgghDvk8hUiEb6EWd7VEmY/NFertFrMoGm3Crbi0+CvD6gI6aRTk4nq W7MHmv6pwVRXdjiSMd7bLRRbvI5j8JW+/0xDG0qjzpJqI8/30iJHn8Bk+pb0VvsLmpxb nCP0oMfBXmJN+VEYojbBEAT+k4LKllVHQgHMf+AdyAprmR7owfxPf+lD9ydI0GmjupK+ QNiw== X-Forwarded-Encrypted: i=1; AJvYcCXXX8ATKpiwRupdGtQdEof68QuBbcqFPVQpn3sEW+i7Pbk6+j8ruVfQ3Y/ntIjwFd8Vg2Pf1MargAuVXk22tQxHWRdFQo5inKnQkqdv X-Gm-Message-State: AOJu0YwecMEqY2+4LN3+y+RKxroLt1Phz+wsua8fZInJFlM4cngbHjud THpOAGFgtCFii5z1MZugrDLOv+qPgrr55izUYlWaKU5N5P6CMhXCw5pE9gsAsRyJWKCScZjJ01l 8iB+w/bjVieHip2X1zY0Vk8DnoiMn6crACz+c X-Received: by 2002:a92:d68a:0:b0:36a:26bc:5f45 with SMTP id p10-20020a92d68a000000b0036a26bc5f45mr30552iln.14.1713293584942; Tue, 16 Apr 2024 11:53:04 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1a6bc747da259e8b3a85de339bc1d6bf94995c53.1711674410.git.babu.moger@amd.com> In-Reply-To: <1a6bc747da259e8b3a85de339bc1d6bf94995c53.1711674410.git.babu.moger@amd.com> From: Peter Newman Date: Tue, 16 Apr 2024 11:52:53 -0700 Message-ID: Subject: Re: [RFC PATCH v3 09/17] x86/resctrl: Introduce assign state for the mon group To: Babu Moger Cc: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Babu, On Thu, Mar 28, 2024 at 6:08=E2=80=AFPM Babu Moger wro= te: > > +/* > + * monitor group's state when ABMC is supported > + */ > +#define ASSIGN_NONE 0 > +#define ASSIGN_TOTAL BIT(0) > +#define ASSIGN_LOCAL BIT(1) We already have an enumeration for the monitoring events (i.e., QOS_L3_MBM_TOTAL_EVENT_ID), which should already be suitable for maintaining a bitmap of which events have assigned monitors. -Peter