Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp432284lqg; Thu, 11 Apr 2024 07:20:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVu1TJnCu39eKqYoDAUN/0Vx+UC0r4Bq8+2QiAtuXFr0WsRLaWbTJ9jg29gP9N0prWp6YmkwPg+CU5xALd9UE4mxHNa/7bDlmktJzM9eQ== X-Google-Smtp-Source: AGHT+IGIUkN3sB+b9sUuDf7hC5MgotG4lc3EhAQ+1zd1HO98IV3v+i9cX7p3WB9GqRQYXZINXPMl X-Received: by 2002:a05:6a21:1519:b0:1a9:5a2a:7e51 with SMTP id nq25-20020a056a21151900b001a95a2a7e51mr5921404pzb.24.1712845244771; Thu, 11 Apr 2024 07:20:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712845244; cv=pass; d=google.com; s=arc-20160816; b=HYhAX9H+/ZvJFpftlAlgVpKtxvcd4k5ne/gey5ZKTlgk1V+XGXHbv1sP/ctYzOLuWu KWb2ZbkWUOGOfr43IYolZVtb5YOSgppErHfsqX1ckMlGxZl4jJR37M6UT5y4X0K0zLch uKRNErmw3tX9LSij7WF74iFlolcWxLNnSf9k1gtBtJ9eVikwVjGn3e7D+JdRyKlEROmt mqWV+2GICLy69o/GdHg+8SVacF8+5TyHeSnxB+zGb49UHR6qfKmS4Rw5R5JYOIMba4A1 kT5Bf0IF0/o8tN0FjWjCK55tJL7NJNwvx4XKy7xyih0SnhWGhM/snTtQ5WH/0ebYRTSU dryA== 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=PUEar5i5hThr2xYTcN/ZoGQ1v3oyYYEPPkOazLuabWs=; fh=YJ7GNJzNTpZo2CxRq9D+SewrZvpe6OJuBa4EsT7MJAc=; b=PcCm6dg3F2Sfg9elaU78mGrXCiwBMrw6HgmwxG0B5SrWLHPy3vK2Qb7FzNuvXZZdSN 3RPBzcUkamCiSdu8C95fBAi7raznugNlYmooA73uJoU3Yw/o5o2JeM7PGvX02SJdRTAD okhSQA9wT+NmRJNax8uS+3kci8H4Q8RP6kNoIl+ksy+v55Y9Kw5p+QDmDQA8C2f9RGw9 6vzNp7Wc8W7OyJPRi5vRWVwMmTmEClTa8qu6WK9gh99+tab6yaIu9jdknt/SeMZk4Dhk 0kUg3K9ZWebKOayfttGnw5E+8NRB800SYuP94gEtX+1HuBD1yjG/uEgzZQFpw6TkMmUf 6Hdg==; 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-140614-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140614-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b22-20020a637156000000b005dbefa1fb3asi1371987pgn.578.2024.04.11.07.20.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 07:20:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140614-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::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-140614-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140614-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1C30E287F56 for ; Thu, 11 Apr 2024 14:15:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7AB014F12F; Thu, 11 Apr 2024 14:14:47 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC55314F104 for ; Thu, 11 Apr 2024 14:14:45 +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=1712844887; cv=none; b=d3jSY60cAsQDEx3Dty1poYu1pRawpxD/Sz6JNUHrgeaoJvx0EuEDu3oSnO1intF5L83LIWZ6ApBeWxGFyj3SDNzAETM10ElCzun/hzSRAS+aTjfa6LnzSWasPCmAWf/PCeRTZGiE2tCJO7tdmhGHC8Dm/payQvp2yIafPaa/yvA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712844887; c=relaxed/simple; bh=pAXfynRvZVXBc8XFJ+iZWkP/Zd7LC+cDV5LxxtMhLu0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uUo0+TeFowX3hbllPn0Cmv/4z6JO7Fw8hN0g1UedKEJ5OylzDg+iDXfUg0u7XyeAs63XuMhZUpUnzjpLK9L+FvCSr04ZsGCZ4Kb5hUuSw8ye83nJgBxKObJpTqSBeYC+E/QkyfeOxxE6OJV+QyLBqIp0DVN4MERC7cdIy1+YbH0= 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 BD6DE339; Thu, 11 Apr 2024 07:15:14 -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 766D13F64C; Thu, 11 Apr 2024 07:14:42 -0700 (PDT) Date: Thu, 11 Apr 2024 15:14:40 +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 06/31] x86/resctrl: Export resctrl fs's init function Message-ID: References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-7-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 Wed, Apr 03, 2024 at 07:51:54AM +0000, Shaopeng Tan (Fujitsu) wrote: > Hello James, > > > rdtgroup_init() needs exporting so that arch code can call it once it lives in core > > code. As this is one of the few functions we export, rename it to have the resctrl > > in the name. The same goes for the exit call. > > > > x86's arch code init functions for RDT are renamed to have an arch prefix to > > make it clear these are part of the architecture code. > > > > Signed-off-by: James Morse > > --- > > arch/x86/kernel/cpu/resctrl/core.c | 12 ++++++------ > > arch/x86/kernel/cpu/resctrl/internal.h | 3 --- > > arch/x86/kernel/cpu/resctrl/rdtgroup.c | 8 ++++---- > > include/linux/resctrl.h | 3 +++ > > 4 files changed, 13 insertions(+), 13 deletions(-) > > /fs/resctrl/monitor.c > 746 * RESCTRL_RESERVED_CLOSID and RESCTRL_RESERVED_RMID are special and > 747 * are always allocated. These are used for the rdtgroup_default > 748 * control group, which will be setup later in rdtgroup_init(). > "rdtgroup_init()" is still in the comments. > > > Best regards, > Shaopeng TAN > [...] Noted for James' attention, thanks. Cheers ---Dave