Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp459401lqg; Thu, 11 Apr 2024 08:01:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1lXrpTos4m9LGtxfonCNqhb8IpGtopXHMGc+Ls5Dv4A1/e5Fz091FIyD+ocN/v83YJmTrV2lVirBZ4IaPL/A70TjtW9lA0EfoIR/yAQ== X-Google-Smtp-Source: AGHT+IHsQ+OtZZLCJlz7veWuNAkMwPwfOzrLcVgQ+19PaE5NN382N270djpwksmPkAqpKp53rFBr X-Received: by 2002:a05:6a00:2d20:b0:6ea:f351:1df9 with SMTP id fa32-20020a056a002d2000b006eaf3511df9mr6887166pfb.23.1712847696183; Thu, 11 Apr 2024 08:01:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712847696; cv=pass; d=google.com; s=arc-20160816; b=OWQ4cucoRQzwrhzBex/1H/ANJSLbS9I/KWLc9xXPunghcPa+DjPaepRpEyigCxazJY IzWxuLMDylCy1G0UOs6rVUGbIEe2JPVbE5qh0qt8oXtlAAdWx1KjxZ/LixVYc+5filwS o9glLuzZxGB4qHheDXyB4qoeAWM24DTK7kUurRSf7yjCH0XXAeFSxPgKR0RXvBh6fWcG n8csmtV7pUFsN25LI/adHQOfX2nAHYkGDBXolhIYLuaRO2ohugfWUNbFReHVtin99UY/ eMo0/wGsa1IGKGMw+zZjuCNOeBhHxAndmq6SGyUrntdk3dPqskgi0hVglPZIl/G51Opq 5j0w== 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=0o7/1g4HDws+GqCRJokJ9gphG+QwdOwbwJYW91ahMoc=; fh=YJ7GNJzNTpZo2CxRq9D+SewrZvpe6OJuBa4EsT7MJAc=; b=0zaRIqut4ESzAGPfKc+qC1ZXBEGQeJc0m8Mv5EAa+oRTvSR1RJycBpgslypS5XbQ0L UGZjCnelWUxu/vcjbdD8WGRXrSIegQDmFdMlt3v6cJ7YPNfDA3rFSqMCPZ1ghVHh3s95 ZVKOOW6YBQ7S/h19vWbFhAE5tFNq1BVWGS3/P1S+lQ/8cuv3heQ3WxCVY4p5BbJ3WZmi IZWgCTYjN+OqLgnVxEhi0WviguCJAKIKCBS1Gxm0ZsNijVy5ZwwAArD+GXOeyZm69c/s bRw1fw6bGXs2NdFzxYmx0HT3getlBWl0roQSGPO+07vyZ1TCKDdAm6z9e9HWm1INjWSo pkHQ==; 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-140645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140645-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 fr11-20020a056a00810b00b006ece1eb725fsi1491693pfb.266.2024.04.11.08.01.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:01:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140645-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-140645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140645-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 17A9BB2CF24 for ; Thu, 11 Apr 2024 14:28:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE83014F103; Thu, 11 Apr 2024 14:27:37 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF56414EC5A for ; Thu, 11 Apr 2024 14:27:35 +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=1712845657; cv=none; b=M0+dEo3zR9ApKlp1HHli/CJZka6nXyRLSkAjyZeyUY5n8qMNFfu4/DSQ2F5iRD9/gMkcJqsI7g12P1FF9ZnHLV8TE5RTsjTcOSRFNk5iJGB1ZOs0+GHKlBxv8Oaam8iKF97Bt+Syjtr2nCgScSstfl0PdnkE5lW4PhHxCnrA83Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712845657; c=relaxed/simple; bh=EU/UjKXDgctiWfZFTVYonN3edS86CMZY0PEjyqsc4UI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=otCYVEYrGwVqg251MDlL8esetxvBnZG8Wfnr56wcCs4+GvLGa0eooIqbmOtPb/Yco/0c8sC83amGV3Zqsfk04+XcQ7R3gGKg8CPoz4fkuRtspeTqGW3HyAt9G1uTxKi5tqV9ifgXjNzlfi7WJp0dUQ1YikPURrWZgZYZnB01PHo= 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 D07041596; Thu, 11 Apr 2024 07:28:04 -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 8A7C13F64C; Thu, 11 Apr 2024 07:27:32 -0700 (PDT) Date: Thu, 11 Apr 2024 15:27:30 +0100 From: Dave Martin To: "Shaopeng Tan (Fujitsu)" Cc: 'James Morse' , "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" , "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 30/31] x86/resctrl: Move the filesystem bits to headers visible to fs/resctrl Message-ID: References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-31-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: On Thu, Apr 04, 2024 at 07:43:03AM +0000, Shaopeng Tan (Fujitsu) wrote: > Hello James > > > Once the filesystem parts of resctrl move to fs/resctrl, it cannot rely on > > definitions in x86's internal.h. > > > > Move definitions in internal.h that need to be shared between the filesystem > > and architecture code to header files that fs/resctrl can include. > > > > Doing this separately means the filesystem code only moves between files of > > the same name, instead of having these changes mixed in too. > > > > Signed-off-by: James Morse > > --- > > arch/x86/include/asm/resctrl.h | 3 +++ > > arch/x86/kernel/cpu/resctrl/core.c | 5 ++++ > > arch/x86/kernel/cpu/resctrl/internal.h | 36 -------------------------- > > include/linux/resctrl.h | 3 +++ > > include/linux/resctrl_types.h | 30 > > +++++++++++++++++++++ > > 5 files changed, 41 insertions(+), 36 deletions(-) [...] > > diff --git a/include/linux/resctrl.h b/include/linux/resctrl.h index > > f786ffceeda3..00cc0457af50 100644 > > --- a/include/linux/resctrl.h > > +++ b/include/linux/resctrl.h > > @@ -41,6 +41,9 @@ int proc_resctrl_show(struct seq_file *m, > > */ > > #define RESCTRL_MAX_CBM 32 > > > > +extern unsigned int resctrl_rmid_realloc_limit; extern unsigned int > > +resctrl_rmid_realloc_threshold; > > + [FYI, your mailer or editor seems to have messed this patch up a bit in your reply...] > These two variables has been defined. > 44 extern unsigned int resctrl_rmid_realloc_limit; > 45 extern unsigned int resctrl_rmid_realloc_threshold; > 400 extern unsigned int resctrl_rmid_realloc_threshold; > 401 extern unsigned int resctrl_rmid_realloc_limit; > > Best regards, > Shaopeng TAN [...] Strange. This looks unintentional and there don't seem to be any relevant #ifdefs or references to these variables in the header that might justify reordering these declarations. I'll propose to James that the addition of these duplicates be reverted out, so long as it doesn't break anything. Cheers ---Dave