Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp18098lqp; Fri, 12 Apr 2024 09:19:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWfIxRkEi5fNbI781B/y9Ftuqv35sg0Yvo3TuUJcpaegBaxvbXXL7LUZBs6f96NA65Z676bjoKMvytTS9c26sZCdKs6VUZZFS7YWqnNlw== X-Google-Smtp-Source: AGHT+IGTe98oxhxjPb/qbUclOnws1d6HUPMu3hgazasNtkLZqw5cqiK57UOQdVYLrNhYV8pYcEev X-Received: by 2002:ac2:5211:0:b0:518:9844:6494 with SMTP id a17-20020ac25211000000b0051898446494mr632929lfl.16.1712938752183; Fri, 12 Apr 2024 09:19:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712938752; cv=pass; d=google.com; s=arc-20160816; b=GCwTt5o0Sg/jH9u3nbEhxyBZcqy4UE8zY5nzj3VxKDV4wg1u2zJWE78t++RJq+0KE9 z7ldIi5/oSpoIa8BU7p3/ZVhp+XIxD+Wf4big4SitRXu2SQxzn1SYHyn7RCgI7fUxkGC BKd09J0NJiWPcX4waqTGid8phA4WRr5SSPCm9J70iLvVgWvS6lp2R2413fAf4s41WCvw 0M4zgldVif/lcfwCiUCOjOosXfqn3tB7UEuazGY7TR3JzdZGh48vIVw3KQXIKeixqsbM 1ONkb9SOowR6N2WjAPPGweJsddGIT7OMvjaTHXE7qklwDUllYbvaoWojFavetFegH1pQ SKIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=I4OX+TYxvbTNIsVQct7Er42HxtjSAR5pDhm7g0NwwMs=; fh=o15LHdentjCkv0NIiQBCog+N9nRhDflPLweHRzdqdB0=; b=AJBG+BsPk7VksNmYO2fNrrrTz+RWjRGWxKAhjD56TpFklc4i+V9z0lUvoBrMd/+dEn MW5mZcWlOl1AZm/TnVKm9HSgdNXLUzMmyA+MEs5O7ePa78b6Rj57/nIiIAJ6WIwnAJlb TYV9rkUqpzuTmNqzHHZZ9jls8fYVhSKJi6agubJ5mphlo6kQcjrISvBP9k4nWBcC7Wqg 7heQqGTIcWJl1FftbXxq8+MSZPm0XvRkAq6ldZ5OWcIjw78n2xVjtT+H36umVP2Wn1Z5 bAl8UDEb9neKRpgi6qT+ftC4JMH6k3byhRPyDYdFNtmT8iN6cYoO3xJo/4ZkfuBbaD8x vxdA==; dara=google.com 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-143046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id rs28-20020a170907037c00b00a51a67eeec9si1843750ejb.950.2024.04.12.09.19.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143046-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-143046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143046-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E1DF01F227A0 for ; Fri, 12 Apr 2024 16:19:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C43F71494AC; Fri, 12 Apr 2024 16:18:05 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CE86446BD for ; Fri, 12 Apr 2024 16:18:03 +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=1712938685; cv=none; b=kmt3YkTjtNqODHjq2/aQ4g74pRks5+CWXxRdf+/Xar/x/g4grUm3ojSadQDirpIDpsBFawJS5U4+s/SlaOwCiSen1HZ8BFBzuTaiAspo5olYzmrGQF8TW8GWIl9FOOpVM7BZi3GB8JN6aaao70JB7cdE89MMEGssrrJ85YnLeSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938685; c=relaxed/simple; bh=uszwOdJLkaMVkV6UAk2fH9FDshpx6WSiAMT2XMXso/8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jXnp6QLdzIcJp/uJK1kBYn8Y1JHBAhQoiqpkOaRdF1wY9CSFqnoj47KFe7HaS9aSIIleV609PEjdTf3UHb1hgD6E+eZR2TlJLrt+Knx9wUW5QlAmfghkP1nJJhl5E9nEUWDLrywleJp+NRPeUcWuqNetKCleHQ6SAG0XCdtwEdc= 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 9C784339; Fri, 12 Apr 2024 09:18:32 -0700 (PDT) Received: from e133380.arm.com (e133380.arm.com [10.1.197.52]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A559D3F64C; Fri, 12 Apr 2024 09:18:00 -0700 (PDT) Date: Fri, 12 Apr 2024 17:17:58 +0100 From: Dave Martin To: Reinette Chatre Cc: David Hildenbrand , James Morse , x86@kernel.org, linux-kernel@vger.kernel.org, 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, Rex Nie Subject: Re: [PATCH v1 01/31] x86/resctrl: Fix allocation of cleanest CLOSID on platforms with no monitors Message-ID: References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-2-james.morse@arm.com> <1e19965c-51f2-4f7a-8d29-e40f4e54a72c@redhat.com> <4bc84ef2-6db4-4d3b-9b48-42396e78356c@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4bc84ef2-6db4-4d3b-9b48-42396e78356c@intel.com> On Thu, Apr 11, 2024 at 10:35:56AM -0700, Reinette Chatre wrote: > Hi Dave, > > On 4/11/2024 7:13 AM, Dave Martin wrote: > > On Tue, Apr 09, 2024 at 10:05:33AM +0200, David Hildenbrand wrote: > >> On 21.03.24 17:50, James Morse wrote: > >>> commit 6eac36bb9eb0 ("x86/resctrl: Allocate the cleanest CLOSID by > >>> searching closid_num_dirty_rmid") added a Kconfig option that causes > >>> resctrl to search for the CLOSID with the fewest dirty cache lines when > >>> creating a new control group. This depends on the values read from the > >>> llc_occupancy counters. > > > > [...] > > > >> It's weird to not see RESCTRL_RMID_DEPENDS_ON_CLOSID appear in any Kconfig file. > >> I guess it will all make sense once the refactoring is done :) > > > > Agreed; a stub Kconfig item could be added, but since the file layout > > and naming conventions change after this patch, doing this would > > probably just create noise in the series though. > > > > Looking at (yikes!), IS_ENABLED() is designed to do > > the right thing for non-existing Kconfigs... > > > > If nobody is too concerned about the temporarily dangling IS_ENABLED()s > > in this series, I won't propose any change here. > > I am not concerned about this. Please note that these IS_ENABLED() checks > are not introduced in this series, they were introduced in the previous > portion of this MPAM work that can be found in upstream resctrl. > > Reinette > Ah, right. Thanks for the explanation. Cheers ---Dave