Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp39380rdb; Mon, 22 Jan 2024 11:09:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGDwcu4wILRDgQN2ctVt73TU6D1AMZn4Zz+DzDgVzw87S0k6hYqv/lmg/HHXuwzO4NNeyI X-Received: by 2002:aa7:9f04:0:b0:6da:8572:ecab with SMTP id g4-20020aa79f04000000b006da8572ecabmr1969143pfr.64.1705950598242; Mon, 22 Jan 2024 11:09:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705950598; cv=pass; d=google.com; s=arc-20160816; b=gZ1doRwmHbQSLIwPfuHmnwDtcD5FhSw66gtCCXsOQiptVXfvqcuY0NBT3rkwNMF3Eg I1NTjvg8HTiDD8MXSo1+o+cCt2QHNn+lUMO/4imWIoOAZb8NPuGc+81vPrsdXB+VwyMm u9KxLSMSYlPjlztvjv+H3kkuKZHILHaG0hOp28sUJcbCe1lRkMcBRxUMBjGto1iymBJt 9ou8soX1ttkS7sDshepllkSIZYky0ucmA15/6M9giympMVWjCR0P048wQnvDo5CXC6FA 2D4UPpsi9wx23bgteOBRKdEgRnKkELdjxqNnarSWSuC9fS6IYj6psFcyGD3KKP4mgwUY LEMg== 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=vjkQbsJF7oly2TIEgMq2DhwGPrjb127EyE57puGIqe0=; fh=HBNJCb1O5m4cQgWGcwqoKY3KTbKsr5rANYvH6uVWzvA=; b=EoF5eLotEOS13D3oKS+JtVJ3ENomig5l5wTBTUG4F+A8xdIuqksXJL6nGDYSyuS0Mc dpL4kSjeaUa8KftB6s+lSGKOuUfExLXbteRKNi58ZBEAsfc1YbREb5rQACLwhZmHlaNz Hhi8ipvBWGrLKO9BtWa3bMOfzKSp9iDr2RiBVD+R02UYEuW/uEqtriNaUGwiRactDAt4 XbubavC+L9UI5hDx70JIVbtWPKjsxmTl7ZeICafi79TU/s8snEyJ1zoFL/OcGZNwP7mv 6zmn/tIMTDImVdE0kyYQ/IKle2i8FnX2Ah2A6Ifmk3Yzjrr8OQte22z6dKyPBklP9oMg cZQA== 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-33896-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33896-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h14-20020a62b40e000000b006d9ada3dc74si10511401pfn.263.2024.01.22.11.09.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 11:09:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33896-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::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-33896-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33896-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2C442B2F4DD for ; Mon, 22 Jan 2024 18:32:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62EAF5D8F9; Mon, 22 Jan 2024 18:05:52 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24DEC5D74F for ; Mon, 22 Jan 2024 18:05:49 +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=1705946751; cv=none; b=UbKFVYHkavIejqW5D8o37GWJdTkJswOpmVWrOocEzXNs74GSJYhgcDh2Rz2Yk/hjUU8UnN6DMP6kVif/CLU6G15f6bN0UUN3NaM246gfZVVOifhneFN/1iQvmx5xHg/94YF8qPGpRyWtS5vtSba8hERoxQhcH6cYozdAA5lQeQ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705946751; c=relaxed/simple; bh=vjkQbsJF7oly2TIEgMq2DhwGPrjb127EyE57puGIqe0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gNSnzPnlH2L5NRrVUp4augGj4m95m9nsyOAcOP1zL2d53kELjcZRFWjGezkOBYVv60qyNqBJRTvOevxQZv9ZBIZFQ2pNnxfoS8xN1oWZD9nkvT+h9OHs2pZKpzDRNl2zST0viI7d7MacrVTcOi9Wes2nE6g+8T3ZwqbutX/38qw= 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 B180313D5; Mon, 22 Jan 2024 10:06:35 -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 884B73F5A1; Mon, 22 Jan 2024 10:05:46 -0800 (PST) Message-ID: <22cc6861-3f3a-a38b-307b-809e29d034c1@arm.com> Date: Mon, 22 Jan 2024 18:05:44 +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 08/24] x86/resctrl: Track the number of dirty RMID a CLOSID has 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: <20231215174343.13872-1-james.morse@arm.com> <20231215174343.13872-9-james.morse@arm.com> <286216a9-d586-42dc-9f1a-8909364bd7bd@amd.com> From: James Morse In-Reply-To: <286216a9-d586-42dc-9f1a-8909364bd7bd@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Babu, On 03/01/2024 19:43, Moger, Babu wrote: > On 12/15/23 11:43, James Morse wrote: >> MPAM's PMG bits extend its PARTID space, meaning the same PMG value can be >> used for different control groups. >> >> This means once a CLOSID is allocated, all its monitoring ids may still be >> dirty, and held in limbo. >> >> Keep track of the number of RMID held in limbo each CLOSID has. This will >> allow a future helper to find the 'cleanest' CLOSID when allocating. >> >> The array is only needed when CONFIG_RESCTRL_RMID_DEPENDS_ON_CLOSID is >> defined. This will never be the case on x86. > Reviewed-by: Babu Moger Thanks! James