Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp3031644rdb; Mon, 4 Dec 2023 14:52:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4COi6OwI1bNN+pB6+S7Au1LLN8QZ8xNTk//ONBDJk3y7rFX4LtPVANpkHZFqgdukQm9F5 X-Received: by 2002:a05:6a20:258b:b0:18f:97c:8248 with SMTP id k11-20020a056a20258b00b0018f097c8248mr3127612pzd.82.1701730345148; Mon, 04 Dec 2023 14:52:25 -0800 (PST) Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id w6-20020a056a0014c600b006ce1127888asi5174680pfu.10.2023.12.04.14.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 14:52:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fDF6K50O; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 116CF8062434; Mon, 4 Dec 2023 14:52:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234306AbjLDWv5 (ORCPT + 99 others); Mon, 4 Dec 2023 17:51:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234279AbjLDWv4 (ORCPT ); Mon, 4 Dec 2023 17:51:56 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12C13C6; Mon, 4 Dec 2023 14:52:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701730322; x=1733266322; h=message-id:date:subject:from:to:cc:references: in-reply-to:content-transfer-encoding:mime-version; bh=Rad0+D+r2hmBsMux47RIXPt364aUdNokmQBEQzRYzqE=; b=fDF6K50OoGFV7sA+N0wN50dm2ZMX4vrZdSsWndcXMy5kHm412TymRQFr FjzzbviiechYpPX91D7nfaiohpNMuHAtBODR3QPzQ9KTsvAtlpQT69DH6 HBHmod2ekaPOQNLZS3epT3I9+mvxex2glWPKtyCJE02f/eZEpdBhxUF/g iENpSywavsFpkhMkNQ2l59qa/1gSV58fM5A9OxgcTyyYTnsHusfj7HxS1 PJ2NpWy/YPqsttczo6vM8Q2l9i7nSUXHviS/yjtOL2z8OSgRbMkNQlVHG ivGtvT3BjAOEYxHkCZDT/hJZCQcPPXEYII/CTvpRrVZllcMvseYN/bX7Z Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="373990945" X-IronPort-AV: E=Sophos;i="6.04,250,1695711600"; d="scan'208";a="373990945" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 14:52:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="764117854" X-IronPort-AV: E=Sophos;i="6.04,250,1695711600"; d="scan'208";a="764117854" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 04 Dec 2023 14:52:01 -0800 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 4 Dec 2023 14:52:01 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx603.amr.corp.intel.com (10.22.229.16) 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, 4 Dec 2023 14:52:01 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.41) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Mon, 4 Dec 2023 14:52:00 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ud/91YwIfj/MQO8YYCoBdvSgF/rjGR+a+31d9u5hOh5JgTj0NzkjZk2sHMZRNREpBI5iGgxHyXWXLgZuu4zUyKiNoLqzsMw63m+bpjarvTuP5LC0lu0QZFPhhtuis5zgUN1rapQyZRqtOK53FzzopXwhyyrfxN/KDj1BjVcqCexjcfTdr0JZgRuT6jtEgUNrfFAAgK7scqTOqe6UO1T2sZ5KF5N+2+CkW7uuTqZ6JWSXrNnP6/MLMjKONP3iErT0L1H5X0szBpDsHhsZheKRLlu1JTehgPRQHmHf0Fw9laRFpCHGdvt6Wkk97RcCK+ebrskoCyt7xmlGWQQBizwtpw== 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=25g68BEgYg8/hxv48JCYOdupSjkFSnYnB98r6VVtL2s=; b=oSezlVP4FBc4VMyx+pmHVL1U4/WVy13LxK/LSxRBKjtzcw1t0sxKuYURNrrzPC04V/jbFRWCQd8cPIvTS4z3/4zSUTzulMaS/KyvJ4dSWgQLD1exTp5TakglyoXsafUkec2G34lOPJBaySocpNlzCoA5dk1X9Z3aZhj6tCPprtPfo8f3nLixpQ9f1Jimp2pNHO+ksE1On6uCRtdPSNYkBgpDb3D1VUyay9Y3iHL0GXaP+60GGGvSz8atigGqSsZiJrRNMEylLkffNNfkRrYkZuoBcnfO4ApJhQzAvvX78LOx8QcqAHszGHtKblOAiLg0n6lC4TY9Sx2DypuQ9/mDrA== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) by SA1PR11MB8278.namprd11.prod.outlook.com (2603:10b6:806:25b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.33; Mon, 4 Dec 2023 22:51:58 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::6710:537d:b74:f1e5]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::6710:537d:b74:f1e5%5]) with mapi id 15.20.7046.034; Mon, 4 Dec 2023 22:51:58 +0000 Message-ID: <52df445f-c2cf-44da-aa6b-995a6beeffc6@intel.com> Date: Mon, 4 Dec 2023 14:51:55 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5] x86/resctrl: Add event choices for mba_MBps Content-Language: en-US From: Reinette Chatre To: Tony Luck CC: "babu.moger@amd.com" , "Yu, Fenghua" , Peter Newman , "Jonathan Corbet" , Shuah Khan , "x86@kernel.org" , Shaopeng Tan , James Morse , Jamie Iles , "Randy Dunlap" , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "patches@lists.linux.dev" References: <20231128231439.81691-1-tony.luck@intel.com> <20231201214737.104444-1-tony.luck@intel.com> <660935b2-93bf-4ca0-836a-7aba46009c5c@amd.com> <0285bbec-7152-4f54-94a3-45ce265a3ebe@intel.com> <0c2beb97-437c-4315-9aff-14c650297565@intel.com> In-Reply-To: <0c2beb97-437c-4315-9aff-14c650297565@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MWH0EPF00056D18.namprd21.prod.outlook.com (2603:10b6:30f:fff2:0:1:0:19) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB7573:EE_|SA1PR11MB8278:EE_ X-MS-Office365-Filtering-Correlation-Id: f769d2fb-f4d7-4f01-0a01-08dbf51b9eed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OFagApjRxhtiDOs63NMMx40bTMBRp5NYcj2jRwM+SBvtYFeND0ohRKgW/eF8fiFJJIYIA7vvMzJTlXqYN+lIqHz/r2sdlHyxvKm3ljZi8wzSuyzTFiVUcMDnPVg01JR/FvwvtjJgVro+I76ndl3lsOMHZSTJQOMU6yAvNvLCNdOOp4TWvXItddlGhnhyL9fBsSTBRXJjl/MY4CQsGtIT0lwSXfzUBr/hhJ9NdcmE/GMz9pzLex+LiUShZcSsMAmZz5czZirbutFICnPKZg3xn70rKU1yCvzogYt9i1tBMxlTg1QEo5PHcstNNeJeDsNUmQQO7JMmK1L0NgvfQNzSLPmn3xhU574VCtSVYYbvOqYCRtFIUne6xUsAvQH/tENv4YkUpLY1GkZhVixzopo8vE2phzKg8J5wXnxkzlwg7Mv6u9G95pPTOxO1eqBhsvLxViz5NxXinzcqgTRiRuNnBWEELfGxmQY4C06PbuN6EsDVHYkhJA85LcH8DhJlGwQ556tgpJ4a+tMFwsyOGCaBciki482aPumHKX91PuhfD8I5jcf6/LQ7UjfpY/YM7IYrBikOtRiNoAubgGuaIVu/FvMMx2Y3OVFTEjVkUJaY9Nz85762rZLKG1BUmNnraCy9/y8TRaRACvETysqU/55V8g== 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)(366004)(396003)(39860400002)(346002)(376002)(136003)(230922051799003)(451199024)(1800799012)(64100799003)(186009)(6486002)(7416002)(4744005)(6506007)(6512007)(53546011)(36756003)(26005)(2616005)(41300700001)(82960400001)(38100700002)(86362001)(31696002)(6666004)(2906002)(478600001)(6636002)(44832011)(316002)(66946007)(37006003)(54906003)(66476007)(66556008)(8676002)(4326008)(8936002)(31686004)(6862004)(5660300002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aUNDQnRaU3poTmI0ZVkwL1htTk9HUHpRT1BSeU53V2hSYkRIemJHSVN4a21K?= =?utf-8?B?eUtIMkdzdVB0OU5vWVc5Ly9teER2b3Fhd0lISm9XRU95NlJScmhOUTUvRXdH?= =?utf-8?B?ZHBsZkNiekxCYU1QNmJTUjhVRlRCYThlY0NMdE9hdHI1WlpGSSsyTXlJcW1H?= =?utf-8?B?THdabENGMk9qWVdHWit2aXFVU0c5S0RDUVYvY0xMUkwwY2Jpd28rVVI4Y0Fp?= =?utf-8?B?N1pqMkNzMjhFU1pTRE4rSGd5TmdNOWpMRE5NY0p1bFR6Vmg0YS9MTFpCUzM4?= =?utf-8?B?dlhyVFErVmUrdi9SMnFGKzNZa0hNcHJESkE1anVyKzZlUTgxRVRLRHFnUEJR?= =?utf-8?B?WHFyQVJqMjRBU1gyc1Q2ek9zR3lLYnQzMVo4TStTRGRPdld2WWxoVmZ5TWV2?= =?utf-8?B?enRUWkR2M3lFZ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-f4d7-4f01-0a01-08dbf51b9eed X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2023 22:51:58.3878 (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: v4QB5KSeFDnF4TPkMt2IpLfoGqXRT7HjwtEj63/Ip8LDVF/uYSVaTkxgDr21NTmZXizh8ZDyLSIKj04NORDHF49v/WlWKpSWiHQBKb70XKY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR11MB8278 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 04 Dec 2023 14:52:14 -0800 (PST) On 12/4/2023 2:15 PM, Reinette Chatre wrote: > On 12/4/2023 1:08 PM, Tony Luck wrote: >> >> B) "mba_MBps={local|total)" forces use of chosen event, fails if event >> is unavailable. > > I assume you mean "mba_MBps_event={local|total}". This is my preference but > I would like to learn more about Babu's "overkill" argument. I do believe that > (B) is well motivated in [1] and has no impact on AMD. > My uncertainty here (considering one motivation is to future proof it against > adding more events) is the generic "local" and "total" names. Even so, all > I could come up with are "local_bw" and "total_bw", which I do not think are > improvements. Thinking about this more the existing names in resctrl may help here ... "mbm_total_bytes" and "mbm_local_bytes"? Any new event would need to integrate with these names. Reinette