Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1121147rdb; Fri, 9 Feb 2024 10:51:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHX88hUAXJ2E/iQrNaA/BRcMz9zK/VZozaiJ7W3Dm42IkV50jHeAB9AkpBEm+PvLE3PPrRB X-Received: by 2002:aa7:85cf:0:b0:6e0:268c:316 with SMTP id z15-20020aa785cf000000b006e0268c0316mr105665pfn.25.1707504696353; Fri, 09 Feb 2024 10:51:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707504696; cv=pass; d=google.com; s=arc-20160816; b=CGjtW4gV34XXssEmmQOYWEBOg5+4fbJeA8P/TUu46UtLekjBvcE4XGb2ZZau8Fhi0w e8wEFGCRM8JLi4vhyPhdB1SShfmQtsoU/hULubi/e2hr0gJ8pf1QxtRIoKT6X3f9hcoN P0UuX+iMT/W2BNV5q6VG1R//idI/oXFHd0uVAJ+XrBsEn90Ic/iZE2/Zqqm+7tO9nuFJ 7t/HeCJa1+jW1jejdBbttITEOT5cCgTkystGEsdEaI6DnvsdOnWMCH9RZDL69D+9COva dsckuGReBUUUudX1y+Mm2PlQrfPTq2KclTye2DSG6q9t1q/uyFXgDOjcRfR5cE+0fh/W eU8Q== 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:dkim-signature; bh=lBM7NEkAna8LosGM75CrQaVFst1DyBImr94CLJk2n3c=; fh=e8EZHXUwvR6XLcJChsnNMLFgnRLwESsfxNJ0SrHlNWs=; b=czK5u15lR4EYxbjxBVQR7vQWMmaCINpD08NaB8wMkh2uTbieRstJL+5jFx2GZEtnOh DStpi3n1NMa7rBeTj8ZkQCNqygGkD85rkLrp3hKi8yBhcsFH4mQ3Yvev4QUmBL49GEUQ 1NPTdfkEWGA0MWQhXYvYJhfgd9htf7qwMCP0eM+VivqWk+NOIo6BsfJbuXtGo/Gk2jBu ge/jdY1Mo4Q8jiOt2Zt9aPapVov6jspFrNnyYemXWmVTxQij63jtHsApgMwAZBjuyqa+ +lahqEc6Ek+LjWmJZtsBQccEL4yCrwP28k2rYeCI0Y/HosBj8aGkOXnBDo3es+C4Atxl CqJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=a+VcpdL1; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-59834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59834-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCXb/+KT6T0EOekuLtFDMMcRPP9BRRfU396VNWyus5Cf35IlLL1/r5YA5UAvKUFVqZGQwDN15+Zo2NHJEKdXjDTR9bOoexrC6KrNmV4l2g== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id fd36-20020a056a002ea400b006e06e699385si717251pfb.350.2024.02.09.10.51.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 10:51:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59834-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; dkim=pass header.i=@intel.com header.s=Intel header.b=a+VcpdL1; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-59834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59834-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DA8C128596D for ; Fri, 9 Feb 2024 18:51:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 983DA80C18; Fri, 9 Feb 2024 18:51:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="a+VcpdL1" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 F0D8B6BB22; Fri, 9 Feb 2024 18:51:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707504689; cv=none; b=iXLLzyGkNgRBYolvp4kNON9uCqum007L5Vbyh00p/0uFyvD4qFGLosPEdl1NDxqnQVA+lgXR4l6AZxwY0zl86R6gcPPYEUxvUOdv9Cis0eUI9+gFsQhgwkMyAJaSGrYU33FJWVRy6kHGYMfYpT4T+r7a85mM4aNixhGj+l6L6Qw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707504689; c=relaxed/simple; bh=zSd+Tr0N5ssM9VaLZc8HIHGHOmryVhAXfEsuY8XuY+k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=f0QlWVaRcpbdAN3y5YX6a9Ud33vuhcptaWs5q5QU2mBC38+Kf3IjEq84nf7aUNy1bFMmKjtfgpgCH4XpWE1mJPuYgOjXuLj41lJcvksqKBUi/LXLpsKfSmKKTuJWOH2nZfM/PXojR5Xovfd7NiJ2k0KvLuID3x9Ceb4HPf48lxI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=a+VcpdL1; arc=none smtp.client-ip=198.175.65.13 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=1707504688; x=1739040688; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=zSd+Tr0N5ssM9VaLZc8HIHGHOmryVhAXfEsuY8XuY+k=; b=a+VcpdL1J/FuEuKOFdxg1Gp1+sV7KXNvqZQRhzVIaHLBoy7NivYqbLCS ejkaLBi3njfyrwSwJMKVmdFU1yoPoH4X0IpFDq8mKwDW8/SXikfkcdwBi DjH/sOdL2asHxNpdzjD0yoK+AJizhWhQR1PQ82C3K3+L1NP2gypO4lJu5 sXZJTmsooeL1ZEgjh0tICszn28LTyNp3IfpKY0kwHkjrrK+BgM+dQaWE+ GXYZ8qV6pte33EoRNefRiZdo+XW6iu5wk3QTmc0f8Sxy3HeEh8uOMy0Aa PylcLJoiGNePpBe7APoK4Cyp9rC105qIKudMldqn9QLX3FdKgxCCyqndv g==; X-IronPort-AV: E=McAfee;i="6600,9927,10979"; a="12568988" X-IronPort-AV: E=Sophos;i="6.05,257,1701158400"; d="scan'208";a="12568988" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2024 10:51:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,257,1701158400"; d="scan'208";a="2043753" Received: from agluck-desk3.sc.intel.com (HELO agluck-desk3) ([172.25.222.74]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2024 10:51:27 -0800 Date: Fri, 9 Feb 2024 10:51:25 -0800 From: Tony Luck To: "Moger, Babu" Cc: Fenghua Yu , Reinette Chatre , Peter Newman , Jonathan Corbet , Shuah Khan , x86@kernel.org, Shaopeng Tan , James Morse , Jamie Iles , Randy Dunlap , Drew Fustini , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH v15-RFC 2/8] x86/resctrl: Move all monitoring functions to RDT_RESOURCE_L3_MON Message-ID: References: <20240126223837.21835-1-tony.luck@intel.com> <20240130222034.37181-1-tony.luck@intel.com> <20240130222034.37181-3-tony.luck@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: On Fri, Feb 09, 2024 at 09:28:25AM -0600, Moger, Babu wrote: > Tony, > > On 1/30/24 16:20, Tony Luck wrote: > > Switch over all places that setup and use monitoring funtions to > > functions? Yes. Will fix. > > use the new resource structure. > > > > Signed-off-by: Tony Luck > > --- > > arch/x86/kernel/cpu/resctrl/core.c | 6 ++++-- > > arch/x86/kernel/cpu/resctrl/monitor.c | 12 ++++-------- > > arch/x86/kernel/cpu/resctrl/rdtgroup.c | 2 +- > > 3 files changed, 9 insertions(+), 11 deletions(-) > > > > diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c > > index c50f55d7790e..0828575c3e13 100644 > > --- a/arch/x86/kernel/cpu/resctrl/core.c > > +++ b/arch/x86/kernel/cpu/resctrl/core.c > > @@ -591,11 +591,13 @@ static void domain_remove_cpu(int cpu, struct rdt_resource *r) > > return; > > } > > > > - if (r == &rdt_resources_all[RDT_RESOURCE_L3].r_resctrl) { > > + if (r == &rdt_resources_all[RDT_RESOURCE_L3_MON].r_resctrl) { > > if (is_mbm_enabled() && cpu == d->mbm_work_cpu) { > > cancel_delayed_work(&d->mbm_over); > > mbm_setup_overflow_handler(d, 0); > > } > > + } > > + if (r == &rdt_resources_all[RDT_RESOURCE_L3].r_resctrl) { > > RDT_RESOURCE_L3_MON? Good catch. -Tony