Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp18970rdb; Fri, 15 Dec 2023 21:02:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8DABhfXq8BOm2iy9AnejzT3pFqKO5XBmuWE190QqxDx+9P7TCwlyAKnig4fa/ZJTco1jo X-Received: by 2002:a7b:cd96:0:b0:40b:22de:b89a with SMTP id y22-20020a7bcd96000000b0040b22deb89amr7679104wmj.31.1702702969069; Fri, 15 Dec 2023 21:02:49 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s13-20020a170906168d00b00a2328f14b19si94484ejd.516.2023.12.15.21.02.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 21:02:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2083-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="ek7l/DUw"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-2083-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2083-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9EAEF1F25DA5 for ; Sat, 16 Dec 2023 05:02:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3345C11181; Sat, 16 Dec 2023 05:02:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ek7l/DUw" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1329510A00 for ; Sat, 16 Dec 2023 05:02:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702702958; x=1734238958; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=ZeekOitKk+vBiN1LSex1a7mQtQXgeMy8eUjmsCPmYBQ=; b=ek7l/DUwaiU9QVfm9TGl0JSQeyNwpo39+ntD3VNVtNkaFqCYlmrS+yrM oHF7HPuT3O9/xoQUAj6IVmRcU8iS+urniE/rX3GhOaTFbJAwJ58P4wiCC +2+Qe+whdaqseIEKTmwxbFOtDlblJmDWBNLnkLSS5Oymqy6OWKYTMJ0uj 5fW1nXKDV2zvqZyaYiLf0zYxnKngCIjFqcnA3y9RGLu6v9kLF931ibWwS S/vUiB5ANcwBSSvKsyuMuE09K5rNGG1z9bs6QKZ+rpVSTG9MkIFUOz67y 18iOY6MOAmoLOTht3VcR07LheZHUzSeAvP/9nUzGTJNT/U864hIp7+IZF w==; X-IronPort-AV: E=McAfee;i="6600,9927,10925"; a="2183200" X-IronPort-AV: E=Sophos;i="6.04,280,1695711600"; d="scan'208";a="2183200" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 21:02:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,280,1695711600"; d="scan'208";a="23076481" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orviesa001.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 15 Dec 2023 21:02:27 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 15 Dec 2023 21:02:25 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Fri, 15 Dec 2023 21:02:25 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.100) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 15 Dec 2023 21:02:04 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YqZvIzQB1utu571ESV37rX+ykumuC0miQ7IpVaxpjTqB8Rlt4pNBdM1G2dwSW/Voi90DJJZbs9raNJTDc5fzz3YOM0+Whiv9LIVc6KGCV+VoyRW5qtoh+gKqUE2fN0biFePzA/BSkoaXSLhTccc3U/DgKadvs9tF4TvjuG87+WrMBP3lqFxflsExXCeRkflK4keEBplaCJ/Rq/wZTo4z1utK7YEm+eZbBfrGcNw8oWYdMoQ0r5jSyJkVyMZM47YaPGlQTsnnMgeB92arL9yJxZaYvpzF1NefDdbtNiKIJtcDJHcZKYjQj1GDIr2jDqAUCdh1otwvQNwy8B2UKJgg+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=T1VHs/u/etX4lD7i+EY+mc+iOWKQfJ5UpD7hXHv6UqI=; b=VH6Snp8Tvyxm2bIJT7ZnnQyzNo3HQ5qycYo716bfRVs9pEmLumE8Wr46uQh543PTLE8r04JXugdR+KuoqBi0S8sSY8nHp1iE7cYaP1r1ziu5DznWImU5ybDEs0wl9bXo3GUyHMf0U61DJOGLTlgfDs6iEbOEMG2QJ4T0hBwrayds0ckU7xZMXIMr4ZWWadwUtgMuAyt6sMiW68ih/Kl5Ko5Xtz1xTA9OicyUpeAQaICdqb78K/aTAe7Mg9bbySsQ0NZoibEG6HcpydmEosBIyDvA5UCcjQ7pjkzeNR9WOYG2BxF+J1NlDtiIyHhBzD4aiN4UpcNMJQ/gJYr4l/dJdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) by MW4PR11MB5775.namprd11.prod.outlook.com (2603:10b6:303:181::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.31; Sat, 16 Dec 2023 05:02:02 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::6710:537d:b74:f1e5]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::6710:537d:b74:f1e5%5]) with mapi id 15.20.7091.028; Sat, 16 Dec 2023 05:02:02 +0000 Message-ID: <1516e4ad-b0c6-4c03-922a-5b14522c8d0a@intel.com> Date: Fri, 15 Dec 2023 21:02:01 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 21/24] x86/resctrl: Allow overflow/limbo handlers to be scheduled on any-but cpu Content-Language: en-US To: James Morse , , CC: Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , , D Scott Phillips OS , , , , , , Jamie Iles , Xin Hao , , , References: <20231215174343.13872-1-james.morse@arm.com> <20231215174343.13872-22-james.morse@arm.com> From: Reinette Chatre In-Reply-To: <20231215174343.13872-22-james.morse@arm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR03CA0273.namprd03.prod.outlook.com (2603:10b6:303:b5::8) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB7573:EE_|MW4PR11MB5775:EE_ X-MS-Office365-Filtering-Correlation-Id: 06ad0b24-ff93-4151-fb9e-08dbfdf42434 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iaAwtz9DZkeOiYbS3R4FEAq8SfcRThquiXqjH2qQWIhmdmCMUnhj3/0MwFg4P6sXw8z6Bqmz39DnjVCPj5DqSc0vR3vlclGwgBjctViu1Xe7BKTLqbpURxZZ1yJXI5JTzcBDerolUTYoJ6adPLbtxNxIhKTbT60rKnoxaWUD4BKyEEgaT2kfDeKaQv5qrP8pP8cCunwQc13l8yna+9A6TbkrlVMviIPQysiGsKUagPbI87BKGkUrn9MmK8iYLNurojGjysSJ2JDlFK2F29ngSkQxbdZw/nsmonfnsn/tz732G9i4icf9ApolN4mVW+q8Hj4wLupDzfi/DIgYgM2xHJnqBuWnWC6Ht8sGF4/kJ21oxy0jRLsPCyWq4enYg9WeOLvr1wz82e3+CvGATZOegDZzo/Actj8a9NTyurBSzGoEyqMF3htdmlwpEnObpql8L8D3z69tQNVD3KmFsKs504b0yKLpMTAUu2mGCRRLUxnJk38cdQYJKszoiRYCnygDwa4OCeD5l3BvVO/eBYLkQrmMtBV97qLgeC1Bmi/RwcV016yMH6oB0IJM5N9bgYBa0fFu+/IzFsbM3Sw7rTs+6OZDlrpzo+Tux0clT0d2z0KSN5eggweaHoy4l7mYC0OLNWOM88vO46SCg3GYMRA3Rw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR11MB7573.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(376002)(136003)(346002)(39860400002)(366004)(230922051799003)(451199024)(64100799003)(1800799012)(186009)(31686004)(26005)(6506007)(2616005)(82960400001)(86362001)(36756003)(31696002)(38100700002)(5660300002)(4326008)(44832011)(7416002)(6512007)(53546011)(54906003)(316002)(66946007)(8676002)(8936002)(6486002)(66556008)(66476007)(41300700001)(4744005)(2906002)(478600001)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?THcwak5BMWJzdmVFVml1QVBzVGhKZ09KVGJ5UUNhdFBKZWYwNkRJSEd0LzFi?= =?utf-8?B?WmJRWHdqelZmVjBZMzFvSUZyZjBkbFd5VmNZL0ZzTmNCd1hZRG54dFBEaGhp?= =?utf-8?B?c0tRcFRrZ1VKK09GSUkwTkVBUnp4Qys5T2xsdTJLOU9iN1lNOHE4YUhCdG4y?= =?utf-8?B?UTNURE03VXpCd2ZTQkhoL3dGdC9xTXloVU5INnVuOXZJQmZqcllLM3FUa0RD?= =?utf-8?B?SkJEMytscklYb3NqQVBjRHVBcGZJVkh3UFpmUGp3enhNZEVtWjdMUjB2ekZ6?= =?utf-8?B?ZVZ6SkpxNlRWb0JqZ0FpUGxKQjFRUXlrS1YwZG1wd0lYTzll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NCWWJuL3JYZnV2WC9YS0poejhzSFBGU0xjSzJlZUNQMEZYbHNvNi9JYWNR?= =?utf-8?B?ZXc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 06ad0b24-ff93-4151-fb9e-08dbfdf42434 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2023 05:02:02.5401 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: es8u75eFDsQgy9+fnhGogOfbhK3BVZiHoChcoft4Eflt4ox1jA7FWvr9MmNgbmXahX6z53bd+9TvxluoQkcKer+IbCRgOfUC8UW13Fo5dQY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB5775 X-OriginatorOrg: intel.com Hi James, 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. > > Signed-off-by: James Morse > Tested-by: Shaopeng Tan > Tested-by: Peter Newman > Tested-by: Babu Moger > Reviewed-by: Shaopeng Tan > Reviewed-by: Babu Moger > --- Reviewed-by: Reinette Chatre Reinette