Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5920144rdb; Thu, 14 Dec 2023 03:40:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgZsrqfklBw0UaMTeAgC881lXsAXdglgr0rO4jc8pGwOjHiinmUyjImDklec/qaySnnjcq X-Received: by 2002:a05:6870:71cd:b0:203:400b:808 with SMTP id p13-20020a05687071cd00b00203400b0808mr1687845oag.33.1702554038034; Thu, 14 Dec 2023 03:40:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702554038; cv=none; d=google.com; s=arc-20160816; b=OKyWkTy7cskHsTwjtxzPQ6sSKe4g7tcKcZMCrGlD6z+redMLuVMgmSPQwSvaHU6DdS djuSYm2fzPMZZ9GrQELcPA0SpfZtudGsqkBYrI+IfniuxcBUiBSWn1T1ArvdwJFpZZ/1 Vhi9AA/M2xD5oKKSPxeE1667zO9nh4iBtbDwIX+yFLmBiWNBfhUvTJ0Kj4T34XWpFlu2 01CMp9myXG4WDGaZkn70SsZIM2xsFqYs9y3zo4VLcQ2HsLSO406f/3qAlk+KxLFF6Ldf J7sRLHhNIfaqNQo/Yxm0iLwZZxWAgq+vxaBhbnMr2QhSQhuqOcCWQEN0g9AETJIRm/Z4 L7nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=3blpvFxac0pZTUltYWluI+mfdkvz/EBA8fNi9ONGLQw=; fh=HBNJCb1O5m4cQgWGcwqoKY3KTbKsr5rANYvH6uVWzvA=; b=Mu0hs1QXo9SRsli35fN9u7M91vOHrSyRgCzlMWBWt9MSiRzDW4lUVSCW4t61X4pSj0 wheTsa8uVjzDCQW/iO+Tz4+zoJEDH8uCp+oVRWCIIJlyWXWVmlnthVPf6fHUM2ADeQDW Du4n72Np30Ct2B6uDU8tNLrvC3uBvU51HLrnlUSG68o/rFwv1L1rXQAAEGxW3cs4mBcW cywzbCmPKefDA79yct71ceTHhtdB3i1DPA6Osk9F4VN3s3GGo3KixE7DIMCc28Pi6Ep1 29xR2MXm4cfwb2vjE4pdOXAHf6MA46AH8ocY3oVCXcqPaPXLajdU9ibSmejfyg845Ax2 68xg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id c6-20020a631c46000000b005b99ea783aasi10900803pgm.755.2023.12.14.03.40.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 03:40:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C0BE882271AB; Thu, 14 Dec 2023 03:40:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444146AbjLNLkU (ORCPT + 99 others); Thu, 14 Dec 2023 06:40:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444085AbjLNLj7 (ORCPT ); Thu, 14 Dec 2023 06:39:59 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7FEB71FFD for ; Thu, 14 Dec 2023 03:39:10 -0800 (PST) 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 B630C11FB; Thu, 14 Dec 2023 03:39:55 -0800 (PST) Received: from [10.1.197.60] (eglon.cambridge.arm.com [10.1.197.60]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BB3CD3F738; Thu, 14 Dec 2023 03:39:07 -0800 (PST) Message-ID: <425c0051-e63f-6810-ee60-6ae3203da543@arm.com> Date: Thu, 14 Dec 2023 11:39:06 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v7 22/24] x86/resctrl: Add CPU offline callback for resctrl work Content-Language: en-GB To: babu.moger@amd.com, x86@kernel.org, linux-kernel@vger.kernel.org Cc: Fenghua Yu , Reinette Chatre , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , 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 References: <20231025180345.28061-1-james.morse@arm.com> <20231025180345.28061-23-james.morse@arm.com> <0d70d735-a4ba-4bc0-8f3d-24e31c870566@amd.com> From: James Morse In-Reply-To: <0d70d735-a4ba-4bc0-8f3d-24e31c870566@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 14 Dec 2023 03:40:35 -0800 (PST) Hi Babu, On 09/11/2023 20:52, Moger, Babu wrote: > On 10/25/23 13:03, James Morse wrote: >> The resctrl architecture specific code may need to free a domain when >> a CPU goes offline, it also needs to reset the CPUs PQR_ASSOC register. >> Amongst other things, the resctrl filesystem code needs to clear this >> CPU from the cpu_mask of any control and monitor groups. >> >> Currently this is all done in core.c and called from >> resctrl_offline_cpu(), making the split between architecture and >> filesystem code unclear. >> >> Move the filesystem work to remove the CPU from the control and monitor >> groups into a filesystem helper called resctrl_offline_cpu(), and rename >> the one in core.c resctrl_arch_offline_cpu(). > Reviewed-by: Babu Moger Thanks! James