Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1000302rdb; Fri, 9 Feb 2024 07:28:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX/RQUlVj4bFnbn7aiDf2qYu2iVeirC9NyJNda909Qlvdz9ZOUY9oKmVJmdSlx1NcOg3BRDlEBp5w4TlsS5SF6C4Z6c8MvT3uWgtTISzw== X-Google-Smtp-Source: AGHT+IHpppahRBFvKOxBQo0Ftmlct8sDBMXimLnbp1JI+3uryvpLybCSQ+eGjYfrZ1kgsMpvGxGe X-Received: by 2002:a17:906:3e1a:b0:a3b:f043:19ab with SMTP id k26-20020a1709063e1a00b00a3bf04319abmr1512205eji.21.1707492528796; Fri, 09 Feb 2024 07:28:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWHrxNUL98qgydNgG7FWxNIGads23SDErHY7vB3h0LMLop1rEeDjb+HwAN+Dp0pr/+RKSHN9vi72BLdbKtp9N1g0PWdBt0uNANpuvegJQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id uz11-20020a170907118b00b00a387b894618si908284ejb.120.2024.02.09.07.28.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 07:28:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59534-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=os9hner1; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-59534-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59534-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.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 1F4EB1F21967 for ; Fri, 9 Feb 2024 15:28:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9709274E28; Fri, 9 Feb 2024 15:28:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="os9hner1" Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2089.outbound.protection.outlook.com [40.107.94.89]) (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 BCD24745C8; Fri, 9 Feb 2024 15:28:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.94.89 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707492511; cv=fail; b=Qb+877COCYCiBrBXT1lN5DtSNaXsyiIaLh4W/4iNbenElNTDlfcTuE3XuBDNuNDdmAy+6GgKZMGwtEaar6kI3tB4UgkgdXWhipcE5pJprUwCUcqUO0zte0p4hxYrzeAyk6s6tkwkidHF6UT8XvknD8ZHRnvvaYiJi980rKYa0w0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707492511; c=relaxed/simple; bh=2Yn4ojU38M0iAxT7VUFa3uijZ5XAiEJJTHbEJHVs9uY=; h=Message-ID:Date:From:Subject:To:Cc:References:In-Reply-To: Content-Type:MIME-Version; b=jf1IpmQkzyAnh4ECnqMwFqHS+y/l18u8r2ucDIfya4k9eCZDvdoQk7hFOlhYos1f9xj3EEahVFv0UdD/nGu1vvUrPWaejpOTV6IRRtrO3f0MrwJvRq54p2hczeULnoWAkP+cKCm6RQZKxQlUf3k1KIkbpfBEG5ZAR0KXF/tKIQ4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=os9hner1; arc=fail smtp.client-ip=40.107.94.89 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CCjVU5uAy+DIcJizpK6HIrDyAvnp/QsiY17jQaktWP8+ts95du3XnnP9k1R9o+BR1ZUkwOY98jRic3gOH32vWv8JijaTowDHsJ9ooZSpLUPQsl+uq1ZGabV8xXPaFBo959ZGBkZuOgRd3X0JmomHfjvAvqUPBpMmmOwH7fAtBuHl/mslC+o7dKwKq1Pmq+cMX78T1juDy/adltddKX/ruvkFcKVI98U5yXFH74CpZh254wIDcmQDexljA4JEh++pURF5NNJC8P5zXoOOl6bTTpjPsvAnAbdcmxKpnRNNrx0aQKgN6YSvDiTnMBkWmpZyhKLgR9ex2cPHgZPJYZyBGQ== 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=ZV2bEVWqhW946UuFPHEtccow4rTchShQbTPWDy4505M=; b=gIUEAzjb3nol1Jkpha7qJcQRmYZITFqECxf9bnaxhtT+dc6DUwlsCSEgGZ2cYlOHHrtypvM24hdnL2dMklgI8GfrwJDfITukFGVIcjOhwqrzSFa+HsvnMi8x2PZ9Dky83dVUiKYRjzEx5IlqSm116HoedvmyuIQi+HJDlq6BFaC3UMUZKEsSG4I79v7qzHpOcermLVVr8QO+LTC5VHmrR4D1/C9r2Jwcr/4KqO+FqbRoAfnKFy8UtIooSDItn+u1y/j4AX3qWiyuXDf0RvdCY4Y1o4rpLCyhiFdXv7PmR6h76j1e/weEzvdx2IDV8Ed5OM/foz9h0879Xk3TEq7/gw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZV2bEVWqhW946UuFPHEtccow4rTchShQbTPWDy4505M=; b=os9hner1Z7Wa+/h5Z0XQnNL9B7xqkKDRZvW6UfmwYThinHUaoNrgQLhDd5GRq9jcGy+6NyZMvjwDNBdYs7EuYh5vbmjPM5909VQ/Eb4FC4KBweNWmSw9r3EI9BGAnu4u5RLLylP07OnGSJWR7LIzFgTBsvfN4TDLbVVgDQ/O2lI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) by DM4PR12MB7503.namprd12.prod.outlook.com (2603:10b6:8:111::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.14; Fri, 9 Feb 2024 15:28:27 +0000 Received: from MW3PR12MB4553.namprd12.prod.outlook.com ([fe80::f1ae:6833:99e2:9dd4]) by MW3PR12MB4553.namprd12.prod.outlook.com ([fe80::f1ae:6833:99e2:9dd4%7]) with mapi id 15.20.7292.013; Fri, 9 Feb 2024 15:28:27 +0000 Message-ID: Date: Fri, 9 Feb 2024 09:28:25 -0600 User-Agent: Mozilla Thunderbird From: "Moger, Babu" Subject: Re: [PATCH v15-RFC 2/8] x86/resctrl: Move all monitoring functions to RDT_RESOURCE_L3_MON Reply-To: babu.moger@amd.com To: Tony Luck , Fenghua Yu , Reinette Chatre , Peter Newman , Jonathan Corbet , Shuah Khan , x86@kernel.org Cc: Shaopeng Tan , James Morse , Jamie Iles , Randy Dunlap , Drew Fustini , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, patches@lists.linux.dev References: <20240126223837.21835-1-tony.luck@intel.com> <20240130222034.37181-1-tony.luck@intel.com> <20240130222034.37181-3-tony.luck@intel.com> Content-Language: en-US In-Reply-To: <20240130222034.37181-3-tony.luck@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DS7PR06CA0040.namprd06.prod.outlook.com (2603:10b6:8:54::28) To MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) 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: MW3PR12MB4553:EE_|DM4PR12MB7503:EE_ X-MS-Office365-Filtering-Correlation-Id: 19c9f224-23f6-4465-1919-08dc2983c330 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ySr05thTlbUOtdDae99XwAs70G1LsSSd25PsPoxCx+uyua6I07bqAPcsmyiFcXBWXNgruN7YWVty+5s+FYS/arxnZ4cWrMpg9hZRPhAy2MZVj9lVSL25W8QVQHCvG/MkupTIZIX/gmwoNewfM1ZWBLBDnFk4FSMqSI5aFEXf9ZesioznLf3/OTMrb4v0vyUDbp2FR1PZFTVW1TgMLOXfmG2v5QVmMKZO7yeh0FnVXcRdNHzvinHmVcyhVKXZMVNjzDaS8ZDbJcqOeKB/JaPxjBQwoJEP6C1Wt2pLk5lU4C8suJfSlg3eObW5RZPyJKVviShRQ3sglZ90OEmiVnFWOncffLXIWfRbyRocKbq/B0LZhPfx+8NEsUr+JOqAMqON1Wf3Z8+uVLElXege39Ao03+XOUMObF+7bEVZfaJPersforI8W3S+xbpR75f5vrvYPJLZ7MiCAhQkd9mFQXG1C2l6hYT0XMpGDq/niMy5imZMKSm6pFf0JHVOreRmOdaF7e9uEtibLctkDkvkPG5qyFK0Np+cgtVP9Toy6XMiQDFfzyTXF2yQXHWdXswlw2Yf X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR12MB4553.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(396003)(39860400002)(346002)(366004)(376002)(230922051799003)(186009)(64100799003)(1800799012)(451199024)(8936002)(3450700001)(4326008)(31686004)(8676002)(2906002)(41300700001)(7416002)(5660300002)(83380400001)(31696002)(86362001)(36756003)(2616005)(54906003)(316002)(6506007)(26005)(6512007)(66946007)(66556008)(66476007)(6486002)(478600001)(110136005)(38100700002)(53546011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VVB1Z0k2VGJyM3c2akVBREpjYXh1NnBMNmtqeGpNNHRiTGpWdlRmaVhtYkpL?= =?utf-8?B?eGhGYXVTS2dhSDE1LzdBV1cycHFDNmlNSGx0SjJRSi9rYkRBc0ZaQ0g3SFN3?= =?utf-8?B?UFVIQlhPRkFua2JpT0ZXQ2ZmWU12MEN1SW54UVpkd2Z5TDlCcEtVQlU1T0hE?= =?utf-8?B?SDhiRzEyY1g2aEtUeGszaGhUZVZqcnZGTzhjaElVMyt6Y0IxT1F6UlZYT3dz?= =?utf-8?B?TmVVRW1kSnRoMXR3ZFV5d2E0VDVXTjNGR2RDV2lIU0hQcm1Ra0pySWIzVlZG?= =?utf-8?B?K3NBZDVXbTFFQVVocW1OcUdDMWNYMHlncVd1dTY0TVlVV3Ryc2hHMjREcVNk?= =?utf-8?B?aVpPY3RuT3ljYW5rK2JNUWhOdy85TU9LZFBheW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330 X-MS-Exchange-CrossTenant-AuthSource: MW3PR12MB4553.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2024 15:28:27.2891 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CJVox+WNdPTNkZ4sndLekELzv6WrBNYDMCMvLTudKeT1ObIFcyszOkkyju1XZx9s X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7503 Tony, On 1/30/24 16:20, Tony Luck wrote: > Switch over all places that setup and use monitoring funtions to functions? > 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? > if (is_llc_occupancy_enabled() && cpu == d->cqm_work_cpu && > has_busy_rmid(r, d)) { > cancel_delayed_work(&d->cqm_limbo); > @@ -826,7 +828,7 @@ static __init bool get_rdt_alloc_resources(void) > > static __init bool get_rdt_mon_resources(void) > { > - struct rdt_resource *r = &rdt_resources_all[RDT_RESOURCE_L3].r_resctrl; > + struct rdt_resource *r = &rdt_resources_all[RDT_RESOURCE_L3_MON].r_resctrl; > > if (rdt_cpu_has(X86_FEATURE_CQM_OCCUP_LLC)) > rdt_mon_features |= (1 << QOS_L3_OCCUP_EVENT_ID); > diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c > index 3a6c069614eb..080cad0d7288 100644 > --- a/arch/x86/kernel/cpu/resctrl/monitor.c > +++ b/arch/x86/kernel/cpu/resctrl/monitor.c > @@ -268,7 +268,7 @@ int resctrl_arch_rmid_read(struct rdt_resource *r, struct rdt_domain *d, > */ > void __check_limbo(struct rdt_domain *d, bool force_free) > { > - struct rdt_resource *r = &rdt_resources_all[RDT_RESOURCE_L3].r_resctrl; > + struct rdt_resource *r = &rdt_resources_all[RDT_RESOURCE_L3_MON].r_resctrl; > struct rmid_entry *entry; > u32 crmid = 1, nrmid; > bool rmid_dirty; > @@ -333,7 +333,7 @@ int alloc_rmid(void) > > static void add_rmid_to_limbo(struct rmid_entry *entry) > { > - struct rdt_resource *r = &rdt_resources_all[RDT_RESOURCE_L3].r_resctrl; > + struct rdt_resource *r = &rdt_resources_all[RDT_RESOURCE_L3_MON].r_resctrl; > struct rdt_domain *d; > int cpu, err; > u64 val = 0; > @@ -623,7 +623,7 @@ void cqm_handle_limbo(struct work_struct *work) > > mutex_lock(&rdtgroup_mutex); > > - r = &rdt_resources_all[RDT_RESOURCE_L3].r_resctrl; > + r = &rdt_resources_all[RDT_RESOURCE_L3_MON].r_resctrl; > d = container_of(work, struct rdt_domain, cqm_limbo.work); > > __check_limbo(d, false); > @@ -659,7 +659,7 @@ void mbm_handle_overflow(struct work_struct *work) > if (!static_branch_likely(&rdt_mon_enable_key)) > goto out_unlock; > > - r = &rdt_resources_all[RDT_RESOURCE_L3].r_resctrl; > + r = &rdt_resources_all[RDT_RESOURCE_L3_MON].r_resctrl; > d = container_of(work, struct rdt_domain, mbm_over.work); > > list_for_each_entry(prgrp, &rdt_all_groups, rdtgroup_list) { > @@ -736,10 +736,6 @@ static struct mon_evt mbm_local_event = { > > /* > * Initialize the event list for the resource. > - * > - * Note that MBM events are also part of RDT_RESOURCE_L3 resource > - * because as per the SDM the total and local memory bandwidth > - * are enumerated as part of L3 monitoring. > */ > static void l3_mon_evt_init(struct rdt_resource *r) > { > diff --git a/arch/x86/kernel/cpu/resctrl/rdtgroup.c b/arch/x86/kernel/cpu/resctrl/rdtgroup.c > index aa24343f1d23..9ee3a9906781 100644 > --- a/arch/x86/kernel/cpu/resctrl/rdtgroup.c > +++ b/arch/x86/kernel/cpu/resctrl/rdtgroup.c > @@ -2644,7 +2644,7 @@ static int rdt_get_tree(struct fs_context *fc) > static_branch_enable_cpuslocked(&rdt_enable_key); > > if (is_mbm_enabled()) { > - r = &rdt_resources_all[RDT_RESOURCE_L3].r_resctrl; > + r = &rdt_resources_all[RDT_RESOURCE_L3_MON].r_resctrl; > list_for_each_entry(dom, &r->domains, list) > mbm_setup_overflow_handler(dom, MBM_OVERFLOW_INTERVAL); > } -- Thanks Babu Moger