Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5919458rdb; Thu, 14 Dec 2023 03:39:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IErR45ah4ML0PuepwRr3uXP+H4U4B0rhoSk+ZH6nrZkuSBVJUQK42nAWk0jeTjn+e0tK6zK X-Received: by 2002:a05:6871:3316:b0:1fa:fb70:63c5 with SMTP id nf22-20020a056871331600b001fafb7063c5mr5715351oac.25.1702553940383; Thu, 14 Dec 2023 03:39:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702553940; cv=none; d=google.com; s=arc-20160816; b=n2zZ300TFkRKUwgLfwCjNYX1k82DscLrrbt0X9/qGzIj13Uxf+njipEe0LTgA8v5o2 MBltLvlamWvVrLXzD199Bjafa2rK4lAkLYh/HLaeA/IUcGHIN3GJQE+4QscK1tKbdX1O Mx+OWBqJFwz/QkZuWHMHBBhGHzLO2HFZQOowuC8iJF16G0FWgKQGdtzCwV/K/1pBiSgI ufZJEM59W+jBoua3jr9V3OSD1UMU0WmNIa2DlrnX6XgDyJmZ9fznAtKZlKWjQeNUFU/E XqzUB/prqK3wqwsXISklZJpnse1410KNuGTqobVTFPNNte2ao+oyh+LUcmP715wY1Gcz VNwA== 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=bkVbtA3hq8obt+GGzTGRqVfRJowcRDz1uJTKnFwPLlQ=; fh=HBNJCb1O5m4cQgWGcwqoKY3KTbKsr5rANYvH6uVWzvA=; b=h632ZLE026Z4lhzYfgBB/a2mMUr1Mit0iUWJH/xOb+BJQwQ4ZCoHn60Egjh+EiYqsd GOmnp+1JIK8aphbpGeYtYRMCYWQVmcZr29PtDdyw1VydlCunwN6RjyCOEY/L6ByenX9N dLg1y3LeOiBPDbOvi1AhgEi5IgSRWCiqOyzrr6kERVVetOS+xz9CuyQjGO7ZlRooLcYU kZ0RA8Ow+kIi7QnPh9+D6u2us+YWcDKjgoIQGVV5Mt3xr1q8qlkQrZn/LpsrkHHrxl/z y0RmsKBn/uyOR5E2Me/oaN7hD6Zp4ieeroWEHx1qmRDajYeV2K05vozaizyVSh8XsIZ4 DxxQ== 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:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id n6-20020a654506000000b005b86119661esi10860388pgq.86.2023.12.14.03.38.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 03:39:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 93A048025776; Thu, 14 Dec 2023 03:38:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444134AbjLNLif (ORCPT + 99 others); Thu, 14 Dec 2023 06:38:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444083AbjLNLi0 (ORCPT ); Thu, 14 Dec 2023 06:38:26 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D4CA1181 for ; Thu, 14 Dec 2023 03:38:32 -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 228F211FB; Thu, 14 Dec 2023 03:39:18 -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 19F123F738; Thu, 14 Dec 2023 03:38:29 -0800 (PST) Message-ID: <08b75c00-0451-e395-4bc7-11eacaf6a5dd@arm.com> Date: Thu, 14 Dec 2023 11:38:28 +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 21/24] x86/resctrl: Allow overflow/limbo handlers to be scheduled on any-but cpu 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-22-james.morse@arm.com> <6f90a9c6-d474-4173-9f74-a51675b10e6f@amd.com> From: James Morse In-Reply-To: <6f90a9c6-d474-4173-9f74-a51675b10e6f@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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 14 Dec 2023 03:38:57 -0800 (PST) Hi Babu, On 09/11/2023 20:51, Moger, Babu wrote: > On 10/25/23 13:03, James Morse wrote: >> When a CPU is taken offline resctrl may need to move the overflow or >> limbo handlers to run on a different CPU. >> >> Once the offline callbacks have been split, cqm_setup_limbo_handler() >> will be called while the CPU that is going offline is still present >> in the cpu_mask. >> >> Pass the CPU to exclude to cqm_setup_limbo_handler() and >> mbm_setup_overflow_handler(). These functions can use a variant of >> cpumask_any_but() when selecting the CPU. -1 is used to indicate no CPUs >> need excluding. >> >> A subsequent patch moves these calls to be before CPUs have been removed, >> so this exclude_cpus behaviour is temporary. > Reviewed-by: Babu Moger Thanks! James