Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C035C38142 for ; Fri, 27 Jan 2023 04:51:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230112AbjA0EvX (ORCPT ); Thu, 26 Jan 2023 23:51:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbjA0EvV (ORCPT ); Thu, 26 Jan 2023 23:51:21 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 566FF410BB; Thu, 26 Jan 2023 20:51:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674795080; x=1706331080; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=i3B1TlQwoY22RxIsdzAZq2RHfXBpF06atJhH9QriW1w=; b=hEE8BKiT5a4kBtQn7/AoPPRxmnKVOI5rL8hRALDs7G0dHceQ94jT7zOm kj7sBBi1Av8OBnXxTELOsANaPKjpLcHcYG3xu0rBfpVMFTKAkDuLL/ysH 5ip6JW9eguePCjIJPYNWce70ys62i9ICLMhvgcWeYmJco+rQHrMSzCEGh 8/1xEQ87utfEHSAFXIiUBD9Ftj0/553OwNTfVvGmGFrGsOCFtb/4pdmGw ePPL/R1/NGriFJCRB2Jhxqf1eh67Sh2oTS/3aeP+IGBfgIroj/Sig4LEf X3hUpVxeG1+Y+Rm2y60lRgz782v/Gd+k1JoLjIMlE4wYlAlJF/cNAt3GB g==; X-IronPort-AV: E=McAfee;i="6500,9779,10602"; a="310642607" X-IronPort-AV: E=Sophos;i="5.97,250,1669104000"; d="scan'208";a="310642607" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2023 20:51:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10602"; a="695404939" X-IronPort-AV: E=Sophos;i="5.97,250,1669104000"; d="scan'208";a="695404939" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga001.jf.intel.com with ESMTP; 26 Jan 2023 20:51:10 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 26 Jan 2023 20:51:10 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Thu, 26 Jan 2023 20:51:10 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.48) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Thu, 26 Jan 2023 20:51:10 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dexWKbOFD06V4aGl8C6JtU6kWNPO20OkIgLp6D5yZXzQiUl8w8NVQh+IyrGAeVaDO6rb2GMKRvovshbHcSg3I+iMBuGhH211SbKub9NlzXTafbC/9RdTbKV3tVMvLbd/j04cxxxg9a8PWGMwVr8D1uw8mHQP8Kcj9yBZvnMCTtBHbod+F+OE6hyi3DgxAoANGqPleiXRZsF74EsO+tAv4+MDG03tktVnPDEPzMMmOA6pMeTlxOe77tTepDE4vr2Dmk15hXAPh6Q4TF13XouvucQxQ2upBnEdI6QmXNZXVJyU+7TLR1hBQRBWmTbnpNVu3x8NUdQICtvrHs45FBgpkQ== 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=i3B1TlQwoY22RxIsdzAZq2RHfXBpF06atJhH9QriW1w=; b=h4klyICzJeScqhPqdnTRtmluTyJU1LSULLneA4naYZsS/IAqD4bvGl3TqzfnrCCZujse0VMQN6Rk6DA4MHGSNlquHzfzNCQBgikqNbcWNkD42VhLCorWW1uiu+9FIbCz9UHdHWhE4R9AS+3uBGKeaQM6gd2hjvDfMDQohwXOpxJ5LzK0Hwc44bWI4X8yKuwZev2dm0YNHwgteYNHHr7Bk7QFtFO2SooUq7hTukUMHd8DSm8USPnd7/3mbJYMLUJE7Te8tDhHNyrCKHIuzTQDa3DVpSIAEgmgiBY38NH9rGY9mrpoB613tHu61CpDK6nybn0FLy0AQ5B5rPd4KNz69w== 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 IA1PR11MB6097.namprd11.prod.outlook.com (2603:10b6:208:3d7::17) by BY1PR11MB8126.namprd11.prod.outlook.com (2603:10b6:a03:52e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.20; Fri, 27 Jan 2023 04:51:03 +0000 Received: from IA1PR11MB6097.namprd11.prod.outlook.com ([fe80::16c0:1ae3:13ee:c40e]) by IA1PR11MB6097.namprd11.prod.outlook.com ([fe80::16c0:1ae3:13ee:c40e%8]) with mapi id 15.20.5986.018; Fri, 27 Jan 2023 04:51:03 +0000 From: "Yu, Fenghua" To: "Luck, Tony" , "Chatre, Reinette" , Peter Newman , "Jonathan Corbet" , "x86@kernel.org" CC: Shaopeng Tan , James Morse , Jamie Iles , Babu Moger , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "patches@lists.linux.dev" Subject: Re: [PATCH 2/7] x86/resctrl: Remove hard code of RDT_RESOURCE_L3 in monitor.c Thread-Topic: [PATCH 2/7] x86/resctrl: Remove hard code of RDT_RESOURCE_L3 in monitor.c Thread-Index: AQHZMbXnJ2URBPpPukyWP0KzYPyC066xBEkA Date: Fri, 27 Jan 2023 04:51:03 +0000 Message-ID: References: <20230126184157.27626-1-tony.luck@intel.com> <20230126184157.27626-3-tony.luck@intel.com> In-Reply-To: <20230126184157.27626-3-tony.luck@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-imapappendstamp: IA1PR11MB6097.namprd11.prod.outlook.com (15.20.6043.007) user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.11.0 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: IA1PR11MB6097:EE_|BY1PR11MB8126:EE_ x-ms-office365-filtering-correlation-id: c9d04d3e-dcf4-487f-aefe-08db002217f9 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ckFG965lcFPpPrT3x2qvfmGgm2ez4iEPurJN3BDK/hR9m3YYc1kTL1EGkzBCy3nfDHUEe7EP7YyTtDKc/n5WhaKfx3+zT7iJVzlVhrChIu3/LbjaRLhqnvFm7znRmSpLL/+k6qxzZ3lsFcbpiDHr5/F4E3a1YGAGpOIr4qTlFRmcMevzn2Dr6AsZm+sHafL96x+Um+h8PHQQI/hERVAB287UfW0bN76yh6DECeNgrMmI/hATmzWTRtaAN54mDLVApDKuvR7+dr7PcOGO4RDcT7+vMYSKYdV9A5f3tB1EQr2maCvsO165mI8nm6o35eERk7udecOZdcn7l3an5UoyI49p687fVLyQiODhb24TSdKlwdfbdd5MMBsA6ZmNrcV2VE2SOgHUEsJx8XeVb3dqtj3OKWfKX3tOxV+1a00Wr5afQtPcWZbBhOOqS+siLqoRGSeDu+XOTOV0HofrUjrS+PMfK9uejm5NSQXh1QWNJCpawWazl17FC6QhkGBBRNNGBvuUDhHXqxu5JB9ojM9hg/YWn3LuxLJKFKYw0Pb4+LjLDBeTfdPBW2+RGZxyKWVqnNnuKSqXSTlc8jy1Igdpji898dviWE5dsHwK/SniP3lsPbVMRb1kQuP2B5JSKOWPA2fWHxJ0+YlcQBebyyf5T3ZCqEZWmEfaLvF9AZA1Abd05MhQRCtoAYNmVM+JqlYMv3Lms/ufcfglbZKDfbMuUiYeOZJhk9ss3gidd4muVuLJMObwK6hhDRtg2PcQQk2v x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:IA1PR11MB6097.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(366004)(396003)(39860400002)(136003)(346002)(376002)(451199018)(33656002)(54906003)(7696005)(8676002)(66476007)(66946007)(110136005)(316002)(86362001)(71200400001)(478600001)(66446008)(76116006)(64756008)(66556008)(7416002)(2906002)(6506007)(52536014)(41300700001)(55016003)(122000001)(5660300002)(8936002)(26005)(38070700005)(83380400001)(9686003)(82960400001)(38100700002)(186003)(53546011)(4326008)(65966003)(43740500002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?YjIwOFJCQUkrdElQNTVkRTFKVWZ2VVRzbGJSN1A4cXVtUnNNaHRjN1E5bGE1?= =?utf-8?B?RGdXcjYwd05RM1dDcDNEbzBzRFlzdEViKytqSDkxZ3hjc0llT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NXZQKzcvOXAzbHM4UXBMWFB4TllNVHZ1RkFPS0tKRHJZWTdOU1VQ?= =?utf-8?B?VDZBSDBSaDgyMlhVV2dPSS9HNjhZSGE3WEs3T3hlUzROQmhia1Y0MHlHdWVV?= =?utf-8?B?cnNGanJDSlFRVERJNWhaald2cldkV0NaZmxGUndXZnpidmFTNXk1aDkxRjRS?= =?utf-8?B?Q1I2N2tEQlRNbTF2VnhNRzExT2VKSzVtT3dkTElkSjlELzVhR0puTnYyU09z?= =?utf-8?Q?TiIlIoWp8ctZWWedHsehsmgCT?= Content-Type: text/plain; charset="utf-8" Content-ID: <3BFF5FA8AFD98A4A860D66E9CC591ABE@intel.onmicrosoft.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: IA1PR11MB6097.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9d04d3e-dcf4-487f-aefe-08db002217f9 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jan 2023 04:51:03.3872 (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: QKcLWCO/6X8amXI5q78cjGqEuWAbvPHvVMDQ0yaKWUSXwFrgmNjlSP+fWr6oSL35h6QDUx15lTCzi8VgKR0F1A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR11MB8126 X-OriginatorOrg: intel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIFRvbnksDQoNCk9uIDEvMjYvMjMgMTA6NDEsIFRvbnkgTHVjayB3cm90ZToNCj4gU2NvcGUg b2YgbW9uaXRvcmluZyBtYXkgYmUgc2NvcGVkIGF0IEwzIGNhY2hlIGdyYW51bGFyaXR5IChsZWdh Y3kpIG9yDQo+IGF0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