Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp444450lqg; Thu, 11 Apr 2024 07:38:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJutHBBcNcG7b9U/Jh53V+xPmjk3qtH+W/5VSK7KLjKo0akUVxkI7ooq+QHTNoj4NbToQ+hvxkT7UIOMhkO9salPaA4R8vmuA4wt10FQ== X-Google-Smtp-Source: AGHT+IEZ/SYPcna0cRpm8xqjPpbjVoeOr8iVG32VUjX6U6j5LXO3arIDgD+u0xghGrdtWN231npB X-Received: by 2002:a17:907:724f:b0:a46:a1d0:8451 with SMTP id ds15-20020a170907724f00b00a46a1d08451mr5655893ejc.16.1712846312381; Thu, 11 Apr 2024 07:38:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712846312; cv=pass; d=google.com; s=arc-20160816; b=XmUa9kLbnCoqdU/3x0Fep12p2hmCtvNiOZVBRp6fIvmR4EvbDVu+fna4hS7q6kxZEa SDZMnHaGKvVwHPt5mWj913P0Cz76PAkyw/FIXXsEFoy6c+HURnt/2ElzAyrriD3dJtzZ 1vwyeL5pJaMW+vFDljN8yBT3ScM4W2MXZRym1sq4iAnRZBGTBnS5nifBIfd8LWaYGyM3 3Ot+rpFKyHzmfxyjFj24SIQCn1Mb2+2mk1NkhFZU8lEziekhG49EsoQA+2BPaVx09CIM WRh/oMnnG1m62UeTW6VIagzOhIyT04Era5HT8caR2QAKtyIzsHQZA+mq9P0MbUfoXcOh 0cLg== 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=PcBmzKXvadn0ND6EaincqfXkzUV/9Ir5tN8eyKl9NnY=; fh=ltwXSenx+7XAwyv/c8MFjM8ny9Z/jyawBsL0Zc29xTg=; b=I3xIbYq/ob+kywMR+NwAa4+uW+QKRmRZZXboWQBDOB4H71SzzhTJHNZPN7jYUNDElC fnhlqOAx4dJcHVga8tGkn61acdqVLzMP2IUy9KqHA3bTuDYCNOQ6Vnx+WEGRmI2WyPpd fE1mslX6+nx9MCxqbIwUcE347wHXg5y2UznfgriKp0MEP+SVLlMRiJoIE/wcFEU8Sy1l gYIOheWKgTB7c07tTAXt2cGu5UgNG1fpWFPFdZmKxhV9rLaIB3ZG1GoK6hQP8TQOuy69 jXC3FYutfIc3ehi3b/2YBNmVJgCVTw8pYcV0+D5wWW5G2fQgNzpDVYxeSITHGuJiE9Y4 V+dw==; 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-140654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140654-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ot6-20020a170906ccc600b00a51b8f59824si738815ejb.971.2024.04.11.07.38.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 07:38:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-140654-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140654-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 107561F24FCB for ; Thu, 11 Apr 2024 14:30:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9212513C672; Thu, 11 Apr 2024 14:30:12 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2B0114EC5A for ; Thu, 11 Apr 2024 14:30:10 +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=1712845812; cv=none; b=G0TFA1xtRBjK4Y/3IS+W1hyTzPhSNuqHPJDLfG7+oDreP0Ge4A/HFT0gD4QCag6Q74NB9AGcwRplx11fs1WPDFVu8py4ub98mFnxbQhIx4If1AuC9GCLZGtUpQhIZ10G2gWeAZwEoW+ZZQWGsq5EY+IPg7CX5fJb9jazzqAOagU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712845812; c=relaxed/simple; bh=65CEUD63qTkkGzDCfMobVMuVZ++In3x+++Aghm1pBr0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NM4Y3YvKefA0uTbbIWukF51z2rdnEqxxeKI7+17Sb/y6+W3IkqyDZ7Kj9HiNFRfF9OrpyB8A95JixNf/4izz8bh5t5lNYBnX+UOfckBQlr/VArldFTaQf4MO5fQrEf7I9PEzjX7wR+9dawanu/wNTLMik8H0HM9+bRJGFEk50nQ= 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 84656339; Thu, 11 Apr 2024 07:30:39 -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 384883F64C; Thu, 11 Apr 2024 07:30:07 -0700 (PDT) Date: Thu, 11 Apr 2024 15:30:04 +0100 From: Dave Martin To: Fenghua Yu Cc: James Morse , x86@kernel.org, linux-kernel@vger.kernel.org, Reinette Chatre , 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 31/31] x86/resctrl: Move the resctrl filesystem code to /fs/resctrl Message-ID: References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-32-james.morse@arm.com> <0aaae9ce-00ae-cd0b-ed25-4d52d1620ab5@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: <0aaae9ce-00ae-cd0b-ed25-4d52d1620ab5@intel.com> On Tue, Mar 26, 2024 at 12:44:26PM -0700, Fenghua Yu wrote: > Hi, James, > > On 3/21/24 09:51, James Morse wrote: > > resctrl is linux's defacto interface for managing cache and bandwidth > > policies for groups of tasks. > > > > To allow other architectures to make use of this pseudo filesystem, > > move it live in /fs/resctrl instead of /arch/x86. > > > > This move leaves behind the parts of resctrl that form the architecture > > interface for x86. > > > > Signed-off-by: James Morse > > --- > > Discussion needed on how/when to merge this, as it would conflict with > > all outstanding series. It's probably worth deferring to some opportune > > time, but is included here for illustration. > > --- > > arch/x86/kernel/cpu/resctrl/core.c | 15 - > > arch/x86/kernel/cpu/resctrl/ctrlmondata.c | 505 --- > > arch/x86/kernel/cpu/resctrl/internal.h | 310 -- > > arch/x86/kernel/cpu/resctrl/monitor.c | 821 ----- > > arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 1093 ------ > > arch/x86/kernel/cpu/resctrl/rdtgroup.c | 3994 -------------------- > > fs/resctrl/ctrlmondata.c | 527 +++ > > fs/resctrl/internal.h | 340 ++ > > fs/resctrl/monitor.c | 843 +++++ > > fs/resctrl/psuedo_lock.c | 1122 ++++++ > > fs/resctrl/rdtgroup.c | 4013 +++++++++++++++++++++ > > 11 files changed, 6845 insertions(+), 6738 deletions(-) > > > > checkpatch reports warnings and checks on this patch. Please fix them. e.g. > > CHECK: Blank lines aren't necessary before a close brace '}' > #13340: FILE: fs/resctrl/rdtgroup.c:3184: > + > + } Thanks for spotting these... However, this is a "move code around with no functional change" patch, so I think that it should paste the original code across verbatim without trying to address style violations. (Otherwise, there is no hope of checking whether this patch is correct or not...) For the above example, see: 47820e73f5b3 ("x86/resctrl: Initialize a new resource group with default MBA values") Other than code that is moved or cloned from previously existing code, do you see any new style problems actually introduced by this patch? Notwithstanding the above, this series will conflict with a lot of the in-flight changes pending for resctrl, so it could be a good opportunity to fix some legacy style nits. Reinette, do you have a view on this? If legacy style problems get addressed in the moved code, are they essential for this series or could that be done in a follow-up? Cheers ---Dave