Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5919352rdb; Thu, 14 Dec 2023 03:38:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKX70yUaThWb2d6X0o2nrulS3zc6dlnak1QH+s0BN57j4WzMeL+GCyn74poVTL8AOI1PGh X-Received: by 2002:a05:6a00:4581:b0:6d2:6b0c:613f with SMTP id it1-20020a056a00458100b006d26b0c613fmr215998pfb.67.1702553927574; Thu, 14 Dec 2023 03:38:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702553927; cv=none; d=google.com; s=arc-20160816; b=gQ0sP+bvAiQaj2PrT9XlLbMtF6MnX+d2dcb7YYHvTe/DJfNKxQDXIWjdUkhz1gySDI PYupoqpntPdKVwBXpsUfcVxPhkOvlvSrXOXCp1e/HSI1N/upDJdSORb5aP7BoLWlVt/A l/gKhRATVX96kwMtY1mkZYWwVQHmQesZ8vo7lKeHQb21Pf4GB+7JNxOvTR/wlDRyxuoY KWmJaILplkEZyAuy6vAngEPn96dXd5K+ORgNOOdQh1dJMLYJue0sucq0/8qjVxpxy+2L Xw5QGO+NQd+c7x+gt3LZHJPcgGmbWcU3GbnpcMzCQMNJIc+UZGx1AWF7hYbUO/fNXooV dnIA== 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=DButXQhRUB3xZqQE8EpCZ36Q4S5l+JPrMQkrS+QI9hI=; fh=HBNJCb1O5m4cQgWGcwqoKY3KTbKsr5rANYvH6uVWzvA=; b=Xw8hMog9PVXrRIVI/0mxLg2bA4y9RvtagmJ0cyGslvvGVt+8mrgEH7a8wc87EsKF2+ g6zcXZoLYeMWKnv+msfqT/BBkvNJyPkkr2cuzOL/CHwRurxDPwc8Vu4Dw3Y/Emx12Zid ypyiHS9lMX4f+BRbGFgNghY41x7E44pJ4ftva+AMrhsQkPTJED6tn8qNwjlp8WieOq2K jyVVHezFH8ZLivsGSgHCRxt0ANgW6Hutx+/PcDGQInjX9X/ds3Fxsctju7ftYlX8QrQf DiDqncGpl+T+fJg89ffDhJI7FAzuP/5aWTcuDFE1Yl7MGkeLPJsyeQlaOI6UJ8eVhPb1 Gvmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c17-20020a631c51000000b005b93064798bsi10940936pgm.191.2023.12.14.03.38.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 03:38:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 5D9B080EE767; Thu, 14 Dec 2023 03:38:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444104AbjLNLiZ (ORCPT + 99 others); Thu, 14 Dec 2023 06:38:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444073AbjLNLiV (ORCPT ); Thu, 14 Dec 2023 06:38:21 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 195AA183 for ; Thu, 14 Dec 2023 03:38:27 -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 6ADA2C15; Thu, 14 Dec 2023 03:39:12 -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 37AD43F738; Thu, 14 Dec 2023 03:38:24 -0800 (PST) Message-ID: Date: Thu, 14 Dec 2023 11:38:22 +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 20/24] x86/resctrl: Add CPU online 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-21-james.morse@arm.com> From: James Morse In-Reply-To: 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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 14 Dec 2023 03:38:44 -0800 (PST) Hi Babu, On 09/11/2023 20:51, Moger, Babu wrote: > On 10/25/23 13:03, James Morse wrote: >> The resctrl architecture specific code may need to create a domain when >> a CPU comes online, it also needs to reset the CPUs PQR_ASSOC register. >> The resctrl filesystem code needs to update the rdtgroup_default CPU >> mask when CPUs are brought online. >> >> Currently this is all done in one function, resctrl_online_cpu(). >> This will need to be split into architecture and filesystem parts >> before resctrl can be moved to /fs/. >> >> Pull the rdtgroup_default update work out as a filesystem specific >> cpu_online helper. resctrl_online_cpu() is the obvious name for this, >> which means the version in core.c needs renaming. >> >> resctrl_online_cpu() is called by the arch code once it has done the >> work to add the new CPU to any domains. >> >> In future patches, resctrl_online_cpu() will take the rdtgroup_mutex >> itself. > Reviewed-by: Babu Moger Thanks! James