Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1733141lqe; Mon, 8 Apr 2024 20:18:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVELwB9rDJTKR9T8yCljkOFVWVnGkQSSWG1bQgAbM6XM6GXrAMwwmcAR+QcZYGCbqPHQ/776e2tyf6zuNPX0O4jI5N88/vACSvH2q7LNw== X-Google-Smtp-Source: AGHT+IFMfI5VD0osF1IS+Su0WvQDtYaUMnwgEQw/09Pl+/3FeOkd9QDECYpJKpo0PFmYZMw5+TOK X-Received: by 2002:a05:6830:1d6c:b0:6ea:1bf3:9854 with SMTP id l12-20020a0568301d6c00b006ea1bf39854mr3997849oti.12.1712632733898; Mon, 08 Apr 2024 20:18:53 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i5-20020a639d05000000b005d8e3c86163si7769849pgd.142.2024.04.08.20.18.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 20:18:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136189-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=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=dp+ZQw6j; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-136189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 8A7EA2825CA for ; Tue, 9 Apr 2024 03:18:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF4495491D; Tue, 9 Apr 2024 03:18:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dp+ZQw6j" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 79D8E54776 for ; Tue, 9 Apr 2024 03:18:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.8 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712632727; cv=fail; b=ojZUowBA4z93jPeJs9fFG4k7+1c/0lmfWLpZ1LECzXEL2/WmtdwWd3eGrH182bq2Iif5Bjq8eJp5x9CIpelk+L+NX0rwuYwfwswl5vpnH79628ZrocHp3k+Rn8cBlCTTqaOGNlI72cWJsvFLsR0HlWCE++OFJStPHTCCxNf3iGQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712632727; c=relaxed/simple; bh=LLhksb4ejcrqFz7Z4jJ6MQ4OTmjdeNxDZ9tk/RCj2Nk=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=IHeS/MEAcv8AqVjJPjSQnQ4k0jOMKoqMNDiaD+CLIUcujz+HLkZ+gKyOfeluCwSN08fg9f5QDCMfQrCWaKTM1E8OtaMh9x9whiuEWQXWlo3ulL/CHhyoZKyWKrQ8UE3NUSZ+qHwz80Ebkv9/AZIBDKG++9aamste1buLGDJdtYc= ARC-Authentication-Results:i=2; 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=dp+ZQw6j; arc=fail smtp.client-ip=192.198.163.8 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=1712632727; x=1744168727; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=LLhksb4ejcrqFz7Z4jJ6MQ4OTmjdeNxDZ9tk/RCj2Nk=; b=dp+ZQw6jGzYk47AvKkmikjXFmtQhNgLsWTMAo/j2SMCttyR5YPGshNdZ ft/z3Q7wFseWmB10K+jOfiXToK2QDkZ8Bf6mk+xWRMX2s4Ga59OVNcREN qBGAH/2gtz6/rR1KvYFb0Dpdl/TwXK4qI91Dw9RxtHUDF3FnJRM80eazb Py4OzgAF+MNA+0IX+INH1+teYa2j+8RslhwmOw92mFqCuDXJRuh5lmg9e IDAbF6ee3dLlQBEUyNcD9VSzCuX3C2ieeS4B5Zhmra8B2jlVr2xVnXKdf qz21+a4ZU2dNdM4DyDWMvOPpullwzsl8ABnvQT+s1FG7cl12HaAJ5Yt2Z A==; X-CSE-ConnectionGUID: eHFxl78bRGKVvPztXF7TsA== X-CSE-MsgGUID: M8EWc6TEQmaMWNEgOSF+QA== X-IronPort-AV: E=McAfee;i="6600,9927,11038"; a="25435914" X-IronPort-AV: E=Sophos;i="6.07,188,1708416000"; d="scan'208";a="25435914" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2024 20:18:46 -0700 X-CSE-ConnectionGUID: PSFi5lZqSm60kD8+CETe8g== X-CSE-MsgGUID: d/iFW1A6Q1OtNE+5jTKUYQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,188,1708416000"; d="scan'208";a="24575952" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmviesa003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 08 Apr 2024 20:18:45 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 8 Apr 2024 20:18:45 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 8 Apr 2024 20:18:44 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Mon, 8 Apr 2024 20:18:44 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 8 Apr 2024 20:18:44 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KaoMF8WPoQF1q5RXRHsL0xeKFp6k9Et2U8tA+9Z4xE38UepP+s960KlY0OMHWur+39Dpo1/XKHE2Pn605q3gY59KVW3MVmPdqdYbbtik5lkhiJTsbi4sFS1KbrY/EUSnOmkQw5OwUs4G1XiXojr9B8Bm7hfSjCTlukdjSUJ+CHHKwrphBxOSIsgdHil1E2EhBMCnecQIsni9+iTSOe11DPjDmAguS1PU7M3vhq5DJHA7cnc/ZyNxfiXLNWq4WJlWTAERJzcfWU6ZSgPwmxQrTMG98qkCk/bOIuy2ISE9jxBX4aTkQM6jGiaMG7x5V5VgcV+NXmZLqFVe3bJs+XoBPw== 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=5uivCuYvh9tkuk1Kpc382xtNlGvbTCAYbrHzce0w/U0=; b=hp5EVesnrNrWNHGAhLANHo7f50OwYD0/z1Qsh1a3GDN+SKIuCokh0KYWDc4VxItcaUSh861BxxKCzcO7eeeImABI5tC5kDGWNKEzSFw1r6bRtN8n1Xc1jjzRBTZyciyUxf2hN11zoDphebGcknghzvLm3VwwyUCcYK96n4gwdB0BFOzCm83ynKYrbooJkYmCmOUt/DVY4dF5a2OSf1mkVph0u6z6dyn01PaJ0eb4pNhBWUYud0LsAonBA1rcIkSVLR+qi9bFqVQgQkXitxQmCfWhv1x370PCuQcgnkG87PI1A/NhL0bkV7iAc/+dtsPbOCuKRx+uCs8c5yz8bEPQnQ== 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 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) by DM4PR11MB6357.namprd11.prod.outlook.com (2603:10b6:8:b5::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.26; Tue, 9 Apr 2024 03:18:42 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::d610:9c43:6085:9e68]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::d610:9c43:6085:9e68%7]) with mapi id 15.20.7452.019; Tue, 9 Apr 2024 03:18:42 +0000 Message-ID: <601034c9-e9cf-4ca3-834e-58479a58523e@intel.com> Date: Mon, 8 Apr 2024 20:18:40 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 10/31] x86/resctrl: Move monitor init work to a resctrl init call 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 , , , , David Hildenbrand , Rex Nie , Dave Martin References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-11-james.morse@arm.com> Content-Language: en-US From: Reinette Chatre In-Reply-To: <20240321165106.31602-11-james.morse@arm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR04CA0116.namprd04.prod.outlook.com (2603:10b6:303:83::31) 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_|DM4PR11MB6357:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +ioWM1u94CPOowy8vCntvRzTXS6QEe1HsZEXX6HS+51YFRehLQOx29nWLhE7KK35oTsQEYMDsu/skiQRh8GeI0eQxQt/Z0NwizgETcBPFCj9Jgw2v1jOS+n9P6/40JyORd+ZoFA9le2a2o5tRtKa03j5bGSMSJYN4FBtRQn1Rrxwbeb7H1vkD+FrLEqUE+iSaqQ1Yq1WKtjjRnQnZh8s4VncgaynHHgOw99+gHlg+u96GDl2hxRaMOnBbh4lva7wt1C9dfEPwLxZBUHq+EBsywLzuF5HUSqzOZJd9QjXZZG4L2ULGpHtYuurp5rEftBeX8b955T/9mr9I+68PIk8pHIbmVl76v0UWzixqF1mmJpDnvxlctJLH0t8I6ED0xSf9rSB2gHn4dXpyD2qTZcjOpVrvwPFKHIqoOKBBiqEYtK8BJtkmSeoJOZ/cFHAdLCH/D4znx53bU8N8joV86b+ugQetF3yEGySjqB8pOmWbOPjAqtfzBx2FeAXL+Kna/R3sJMkbjbrS6GZT3Z+L2XTjMc8dvvoRUTzuy0WZuHCo9DesaJ48QjYebv1Q0TZP+GfXtAj63fPIa2iio3uCysfxxl4T0T2xZCXccDUrPxxU3zal/y0ZgRIi4tMRvenGSMPM0rWcT8IXwQDOJVhMbvc1iiCF5HlAsPhi5gz9zVu6D0= 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)(1800799015)(7416005)(366007)(376005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dG1XRHRSdUZ3TUhuZmNLY3RySmRHb1UzczVWb0QyaGlUL3U1YWN3V01wN2lL?= =?utf-8?B?L3hocDRka2xmQTZJUXFNWFB3ZnhLYm80WFhEZTcxTDY4MkdUdjhrWE9BNDVT?= =?utf-8?B?NFJEMjVQbU5aT2VINDRQQXVYbnRLVUpaL3Z2QWVFUVZWUVBNNkRCN205eERX?= =?utf-8?B?b1hzZjVxZFI0NVczbnkzeEZTMjJ6UGFyUDRNd0NqUkFzd1VBeXFLRkRBY0RD?= =?utf-8?B?OHp2NHhjZkRWdTUxektRdUJuYWM5clhtZ1htOXdCRGdHM1BBUHo4WW1YSFNY?= =?utf-8?B?Uld0TUIzSTNEWW1hTGZEZFIrMkxXNUdYVXh1a052L0JtQVNFR09JZnJIV0lR?= =?utf-8?B?Ynp5UytQOW5aVmhPUElnSXJ2enE0eWdyQUxJcXh5UXpMY3RYdmVtNk96WjlF?= =?utf-8?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Network-Message-Id: 01d4bd94-2a81-47c6-ac9b-08dc5843c248 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2024 03:18:42.6479 (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: B88Dmfw8Z0BI0WVGbanPxRRP9oqt8yGdbDZSxmu02i21pZgnFDIeLByVY6akJtXN2rIG+bB0HUeOZWKu9tU/ZDMdpXL4/+3DtADIkbzZ6X0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB6357 X-OriginatorOrg: intel.com Hi James, On 3/21/2024 9:50 AM, James Morse wrote: .. > diff --git a/arch/x86/kernel/cpu/resctrl/rdtgroup.c b/arch/x86/kernel/cpu/resctrl/rdtgroup.c > index 13c24cb18d76..7a9696f53f2b 100644 > --- a/arch/x86/kernel/cpu/resctrl/rdtgroup.c > +++ b/arch/x86/kernel/cpu/resctrl/rdtgroup.c > @@ -4138,6 +4138,10 @@ int __init resctrl_init(void) > > rdtgroup_setup_default(); > > + ret = resctrl_mon_resource_init(); > + if (ret) > + return ret; > + > ret = sysfs_create_mount_point(fs_kobj, "resctrl"); > if (ret) > return ret; Should the mon data be cleaned up if sysfs_create_mount_point() fails? Reinette