Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp27810rdb; Mon, 22 Jan 2024 10:48:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHW2Xs+mrPsz88uO6CYoodUI0/bXVvXHIChzhgz4/ecxmZmmGmR6eOkd+X7wsUd+p3WGGCm X-Received: by 2002:a62:cec7:0:b0:6db:d07b:bd69 with SMTP id y190-20020a62cec7000000b006dbd07bbd69mr1408219pfg.27.1705949297780; Mon, 22 Jan 2024 10:48:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705949297; cv=pass; d=google.com; s=arc-20160816; b=pkpcZdYq5TsEY2c5lCxnEGVd2IQlM0vJww3VbSaDeJc2tiYdKsFRncEcNJESlPoI3M DiyGnTgs4sobNxjtD0BHihbQaYN+/mkK9hKdRSeHyJMDgCrNCCqxuGM8pR2pft1gzgzW AwX9UGmIA5P+ztleDcwektmP6FGixSCFnrwi31SRTRcyzuEP/+e1BkVQTfvPQ5tJ23Zw IcYaSD3Z62YUs0QMNyAsaaniqFkMGCNcJzUqxZUpi/gQQd/QPJ+IDN8s00IpNvA2WCKt esMcTwnODWH7gapj6LIulorxmlPPhhLO19v0dtcnh/00oDBgacxIt2sHiNcE+wCpzGqj 5+jA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=HCgXEn0tm48cKGYKWxdvlNUL4kOd/LO0cgBonVcu7mA=; fh=V3EXrfhtPXQ8VZs+995Yo8T+zOpBnshrD4ANVkhZrjM=; b=QJRfCVFePG2M7+VztsBd0cx4USkGArAj8be6vsUqEMHtcH6/H86L/5t4c1LJqQ8SnU 3u11qqFwOwcPfV2y4tilB2Cai5NoAiJgXFN0Ta4r7pNGfUS0RiEC5k0wiaScSWF8mnDD ozYQRKNXqrwjwoIB9XDDphrTHzqWGHdRXq1razS79C+C2tBgX5LY2iPQQnpB6xlmGbnU 6D6dOTm9KqWf/2dwi7/19K9QUSzLCsiNY4luR5eix8es7b3IK/dIctoGJnPwYcQo3ZXS MQ7kjRiici6gt5ZiEIFb0sJa6mDhDFL+PdderdPSTryWxeEWb03H2/4EzU83tuN+3IV2 vtfg== 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-33905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33905-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 q62-20020a632a41000000b005ceef2ad0dbsi8411976pgq.384.2024.01.22.10.48.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 10:48:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33905-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-33905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33905-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 300C82923D7 for ; Mon, 22 Jan 2024 18:35:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D1E55FBAD; Mon, 22 Jan 2024 18:06:39 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD91C5FB96 for ; Mon, 22 Jan 2024 18:06:36 +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=1705946798; cv=none; b=WhWiTQg4AjeXcooWOR0PYA4iEku5RNQ9O3g0RoWZjC8sT0gCV8mX+BVPrZqc/3PYZoJfjBwsstwnLbGEu//FJ3LWRtcCLVndotl3bDlxysoqvtFll46Dme9VEO62tCvJsM+3PBwvbJZKfyatCLgvjN3f//WXtpV3Y3KZC4CqCQo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705946798; c=relaxed/simple; bh=HCgXEn0tm48cKGYKWxdvlNUL4kOd/LO0cgBonVcu7mA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Iiub0341q2xnb+Xe75ZIyLffQMijSo75HEVTq1/6PoR+lFF/V7cd4P9yFJyavArjIYzNwjurPA2N+p/0wneBm+3zJD/sIOTtQbNgGFOhT1ODCkpHd5Ij+Bp1GS90+CMeKoVwZ3iVcS0GkmlHbKHX5Cav8kVANQdfkux4L+rs9+k= 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 69E2E1477; Mon, 22 Jan 2024 10:07:22 -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 DDD0A3F5A1; Mon, 22 Jan 2024 10:06:33 -0800 (PST) Message-ID: <88a6c45b-eaf5-a391-7758-d04f1d0611d2@arm.com> Date: Mon, 22 Jan 2024 18:06:32 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v8 21/24] x86/resctrl: Allow overflow/limbo handlers to be scheduled on any-but cpu Content-Language: en-GB To: Reinette Chatre , x86@kernel.org, linux-kernel@vger.kernel.org Cc: Fenghua Yu , 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, tan.shaopeng@fujitsu.com, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com, dfustini@baylibre.com, amitsinght@marvell.com References: <20231215174343.13872-1-james.morse@arm.com> <20231215174343.13872-22-james.morse@arm.com> <1516e4ad-b0c6-4c03-922a-5b14522c8d0a@intel.com> From: James Morse In-Reply-To: <1516e4ad-b0c6-4c03-922a-5b14522c8d0a@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Reinette, On 16/12/2023 05:02, Reinette Chatre wrote: > On 12/15/2023 9:43 AM, 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. > Reviewed-by: Reinette Chatre Thanks! James