Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp430838lqg; Thu, 11 Apr 2024 07:18:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxkVlGcJLFfXRklQ/ADsL5qNU5/IEQnFxYSRn5k116FDudeJaVuTulRopJdGA/vFF5q+eU6KJ14H7RmeRY9SoqOOG6wQJSVNm9rAEePA== X-Google-Smtp-Source: AGHT+IHViQMbI48FazaZTDAhY7i8N6fvpmogQZZa4RCjBC7i+6zJ5BmhK0497zhwwi0/LqZqE6jg X-Received: by 2002:a17:90b:3a8e:b0:2a5:3e4e:29a0 with SMTP id om14-20020a17090b3a8e00b002a53e4e29a0mr5375914pjb.6.1712845134543; Thu, 11 Apr 2024 07:18:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712845134; cv=pass; d=google.com; s=arc-20160816; b=RrsehPKRqs7up6i8u/DKJxk7lT2UPjf2TJWdJ/Gj+aNTjxKi7zPrwbf0N85D1KXkg6 MFKjRpW2MomO36ynEZB24PBXhfu8J1vyvd1B3NMh9F4kAPD87wX+4OTtDIlNAb0vitSD 8QU38nXQzlG4x8fvsWGBqzgsQSEhfU1T+PyYAnCYnK/IntOUVr2lsDZPuAuogoeZZJX5 ikIYa0xx6YL5FpOAZtUiGx2q8LZcoK5KSdDlhNFSFIZxALIuMs0d3BFVEwp9m3jbqxvi YvMqmABDU0xrxbKmZCT0t/ktGtAs6Q8UoMouOcyPsa3GSJEekk2qf1UBBjgjWm/Qt46N fWuw== 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=o/1xbnsmTZtvm9iqIWrh0BuDnZEBtrJOARIRAzshOGs=; fh=X/65hNgB5N4dCzMEquPsmYNXEMfzKI45CawXvqpKUY4=; b=xG8uqp3n3Pc81636zMQuA1VT3ch3BLLk4SdNkjzxliWdjZlCIFljyIjGhmZscvA3/g DgLWyzzlufV/7tUk76Gbyn1dxerwdDpceY9n61+c+dYG0HIHR2vZSVK5JyoURGTpOCGa VPJRHwzQ0H+AhGnKSnao2WYuZjxMJyDGBvcQLCeZxuOdgIpm9ELrLkAQ1Of+QSFesMmn VhBTDVriel4JS93B3MTkPSNDg8uCMB6QvTXfKH3RSgUvik2VSp6RNfrouipEKDtKIwDO C+PP20S5xiL71/IUrRhY+wErxPNwYM7bC+rMa/V+SXqXPQv7jG+fvwHNAAXvCAZW9PWx l6ig==; 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-140571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140571-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 u8-20020a17090a0c4800b0029b80d93d0asi1419401pje.128.2024.04.11.07.18.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 07:18:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140571-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-140571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140571-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 D0683B2290A for ; Thu, 11 Apr 2024 13:52:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E652C14D6E5; Thu, 11 Apr 2024 13:52:31 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C9BF14D43D for ; Thu, 11 Apr 2024 13:52:29 +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=1712843551; cv=none; b=bbYL+eC51Muqvj+A55KKCJQxO5zn6ylgnDQF5Uq5OfKCxtpG1mB97ASjm2Uet1cxSCaC8UgNtnAYBjSyZwJxanw+0cuoPOn+eXgbxCXGk9AYrK49TTLeMDX5WRiN/FYixYkTMWOXrbG85vyHnQGe135dQeNRh2r6RoDd6/Dx/to= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712843551; c=relaxed/simple; bh=y72LVtDAXHaQJl7bjQox90EFvWv8Cf6agT5GLJGf4DI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MBNPrDwx+9QNffOHNU3Wre1FmcWbBFcM9FVmCLYu8gDWkxyptQtPgZY9QRnw0TSrbrAZ9I8kRSBGRkq0QE78kR4omlMcu0Y6D22DSTCVqKSSnRuDiIGxRIRFWj3fwicpRa35BZ+/f+s97XHIfIj2n3iN8ngRdjk/QH3aTiCKdio= 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 10B3D339; Thu, 11 Apr 2024 06:52:59 -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 B590B3F64C; Thu, 11 Apr 2024 06:52:26 -0700 (PDT) Date: Thu, 11 Apr 2024 14:52:20 +0100 From: Dave Martin To: James Morse Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu , 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 00/31] x86/resctrl: Move the resctrl filesystem code to /fs/resctrl Message-ID: References: <20240321165106.31602-1-james.morse@arm.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: <20240321165106.31602-1-james.morse@arm.com> On Thu, Mar 21, 2024 at 04:50:35PM +0000, James Morse wrote: > Hello! > > This is the final series that allows other architectures to implement resctrl. > The last patch just moves the code, and its a bit of a monster. I don't expect > that to get merged as part of this series - we should wait for it to make > less impact on other series. It's included here to show what gets moved, and > that structures/function-prototypes have the right visibility. > > Otherwise this series renames functions and moves code around. With the > exception of invalid configurations for the configurable-events, there should > be no changes in behaviour caused by this series. > > The driving pattern is to make things like struct rdtgroup private to resctrl. > Features like pseudo-lock aren't going to work on arm64, the ability to disable > it at compile time is added. > > After this, I can start posting the MPAM driver to make use of resctrl on arm64. > (What's MPAM? See the cover letter of the first series. [1]) > > This series is based on Linus' commit 23956900041d and can be retrieved from: > https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git > mpam/move_to_fs/v1 > > Sorry for the mid-merge window base, I'm away for a few weeks - this should > rebase trivially onto rc1. > > As ever - bugs welcome, > Thanks, > > James > > [1] https://lore.kernel.org/lkml/20201030161120.227225-1-james.morse@arm.com/ [...] Hi all, I'm going to try to give a preliminary response to review feedback while James is away, to help move this series forward. Many thanks to those who have reviewed / commented so far! Apologies for the slow-ish response from me: I'm still not that familiar with this code, so I wanted to make sure I had broadly covered most of the simpler comments before I started sending replies. N.B.: where I say "Noted", I mean that I've stashed a fixup for James to review when he gets back. Most of these seem straightforward and uncontroversial, but it's his code, so it will be up to him what changes actually get incorporated in the respin. Cheers ---Dave