Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp452558lqg; Thu, 11 Apr 2024 07:51:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2d9/lmM68or0x0hnIXkly/9Fe2cQ1Gpf2tUFyJWJ5LBZyxX/bSRB7wCXgm6ffn7pCBGQpv2dZQ3JgkpMtlx0LpQrLKeD2NAJIACiXgA== X-Google-Smtp-Source: AGHT+IHYqF+xYBiDAIKV7QXWtI8F/C+v7CJPOcZFPD0o3viKaTcQt4Pg9E4CXVu8eJ02k0QR0Zhp X-Received: by 2002:a05:6358:5bcf:b0:186:3c3:b415 with SMTP id i15-20020a0563585bcf00b0018603c3b415mr5928124rwf.20.1712847104836; Thu, 11 Apr 2024 07:51:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712847104; cv=pass; d=google.com; s=arc-20160816; b=KAZxSlfwxQBATo+SU3ccxD4KecwT9mRZSttY5CaOTT7fFf3z2YHlwsJcWEYgHdJxuP 5cxQk9Qor6CbGvD6DXSEJNuL03Fl1tIrizY8s3TyJGo9NSCmDbjCYOfxUKU0ou5Y3B1I oiFbt0CmM2/puqS+G4jHkjTfxk1JJ/KI7UiEtkFxztAT8RUUecUwRNVmvOQ+xYhWsD8N sb6RqdzfpY4+dw9t69kjuNmCx+cb94e9eUC+fL/814b6hdfWDLiei4HyIPDRPsj6Gu6w MlZhvDJomu6fk7anRqEubtVxXyrTqojAlpT2XnJCcGjrVXRZOrRoojKSO3JD4ZeHbjNE CPmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=gbfkLaNH+5vhEkTb4IjHxyJ0OEM94LVX2N3Sjy6evbs=; fh=QpfXcl1MWRNwK/PrSFDaf8vyLNOqSjtq+qtJ/l97qlo=; b=tIlBL/rAIkDPXhO2iVGrG3m9RBkfXy3xqqzvkmijJUf/eSIZp0G8Sr0Ktk1n8Cb5y6 4F1zO1++ugEz25qdU/GR8EvhfwboIJ98xwSDyKZQ5jdMLKZjOoGJ97JdRg9RvqZHta/3 /hqZ/eTUtk3bw0WMWs4cfvrCB6KkHPvYSK/n9ZAKic9hiErwFPySwf15CIPFmGOGjJuf AuJyiGi3oW3oLimlh4uosm8J7AmHSoIEpZKLBsW3kRgV9BpNPxVUbTAY7+ggWaRtzYHC WKuyhCib8RjEIOE0By11BUi5PmqLj96kMNobaO68gLzPRuNSdeAua8FWKIzWI9W3H3LI fFOg==; 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-140622-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140622-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. [147.75.48.161]) by mx.google.com with ESMTPS id s197-20020a632cce000000b005dc87643ccdsi1348981pgs.79.2024.04.11.07.51.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 07:51:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140622-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-140622-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140622-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 0C1CAB2A46D for ; Thu, 11 Apr 2024 14:17:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2CB714E2FC; Thu, 11 Apr 2024 14:16:26 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BDD014D458 for ; Thu, 11 Apr 2024 14:16:25 +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=1712844986; cv=none; b=p2UNFE+5L6fcS7zWtLUvfOCmVF9+oeL6OmkIE7/tp/fGUjIDSTStUC9kJaPMsmlDbogK+ZGKtyI1ywBLpLp2H1MYG5nGVFiJRcghUsNI/rvg670pLm/H6htTgjmzlGrprUqQjfluFUOlyDUXmBK+x4fD5IZv2K0WKNcn6TudTaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712844986; c=relaxed/simple; bh=9eDUfFpsnSByPAqcPCwyufcI3DhKvyJo1MAFTfMH4VE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IaMumol/fE5D6mMQSqjfWkBVQvz+bmoBSAxZbUlEXzwtG5eTetOSnNmJCs15qI//TmDdAVB8GeQ2PT3v6Rtn5HdG0CVoLWKDgFjNvnqUnRvaspDYaJjBi/ZfG9tPXJX7aSxpaDHye7NQGT0b0Jl7rVyEHuY5wmJez2UJS+HSOyQ= 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 3FBC7339; Thu, 11 Apr 2024 07:16:54 -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 E0AB43F64C; Thu, 11 Apr 2024 07:16:21 -0700 (PDT) Date: Thu, 11 Apr 2024 15:16:19 +0100 From: Dave Martin To: Reinette Chatre Cc: James Morse , x86@kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com, dfustini@baylibre.com, amitsinght@marvell.com, David Hildenbrand , Rex Nie Subject: Re: [PATCH v1 14/31] x86/resctrl: Export the is_mbm_*_enabled() helpers to asm/resctrl.h Message-ID: References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-15-james.morse@arm.com> <67021f34-65fd-4ea8-b696-b5d797ae9dbc@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: <67021f34-65fd-4ea8-b696-b5d797ae9dbc@intel.com> On Mon, Apr 08, 2024 at 08:20:12PM -0700, Reinette Chatre wrote: > Hi James, > > On 3/21/2024 9:50 AM, James Morse wrote: > > The architecture specific parts of resctrl have helpers to hide accesses > > to the rdt_mon_features bitmap. > > > > Once the filesystem parts of resctrl are moved, these can no longer live > > in internal.h. Once these are exposed to the wider kernel, they should > > have a 'resctrl_arch_' prefix, to fit the rest of the arch<->fs interface. > > > > Move and rename the helpers that touch rdt_mon_features directly. > > is_mbm_event() and is_mbm_enabled() are only called from rdtgroup.c, > > so can be moved into that file. > > > > Signed-off-by: James Morse > > --- > > arch/x86/include/asm/resctrl.h | 17 +++++++++++ > > arch/x86/kernel/cpu/resctrl/core.c | 4 +-- > > arch/x86/kernel/cpu/resctrl/internal.h | 27 ----------------- > > arch/x86/kernel/cpu/resctrl/monitor.c | 18 ++++++------ > > arch/x86/kernel/cpu/resctrl/rdtgroup.c | 40 +++++++++++++++++--------- > > 5 files changed, 54 insertions(+), 52 deletions(-) > > > > diff --git a/arch/x86/include/asm/resctrl.h b/arch/x86/include/asm/resctrl.h > > index 5f6a5375bb4a..50407e83d0ca 100644 > > --- a/arch/x86/include/asm/resctrl.h > > +++ b/arch/x86/include/asm/resctrl.h > > @@ -7,6 +7,7 @@ > > #include > > #include > > #include > > +#include > > > > Can this be alphabetical? I'd guess so, looking at it. Noted. Cheers ---Dave