Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1733321lqe; Mon, 8 Apr 2024 20:19:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJtywrx2gdRJJRayMD8ZGumGwU7tLxygk7DXJ4xwp/uwoW2GilO8T7XdbCyNUuimrWykj7k6DWywQdZMqZlLtw//lEx2HeySH7BPKQ+Q== X-Google-Smtp-Source: AGHT+IGOKhoV+Lpq9Ptg26vxvBKOD496k3ptRT4TN1azVTX2LOEJpCA6tn0WQWmZAnIVgIQFkHkx X-Received: by 2002:a05:620a:4607:b0:78d:65e7:3d44 with SMTP id br7-20020a05620a460700b0078d65e73d44mr5921407qkb.78.1712632770569; Mon, 08 Apr 2024 20:19:30 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u26-20020a05620a121a00b0078d5fc40e49si5343322qkj.3.2024.04.08.20.19.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 20:19:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CW4ao9ks; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-136191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136191-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EC9001C24116 for ; Tue, 9 Apr 2024 03:19:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B93EA76050; Tue, 9 Apr 2024 03:19:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CW4ao9ks" 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 1AFE3757E7 for ; Tue, 9 Apr 2024 03:19:21 +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=1712632763; cv=fail; b=hwpGh/eb9ps8/rlWF53FtgI/+i1llGkhyMrqbqIjuzVEHL9cmb0lnR6IS4EcPpbKnfqk2NSgTvtuqZHG/11/P5sCDhs7UM+QuMl+H1lMxEtRmaJmzA7ucM3h9lTnFZ8aDx05FdBTOuB1Q9cJzzBCDmq6esun/SkgRcAdaaVFwzQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712632763; c=relaxed/simple; bh=yUH+40wOXxuywofxp+taeOu7mRz0kLDsrSAD1qcv7JQ=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=RA6d+am6wsGPaSqy9CyL2sV3YIn1pgBQ5b4+YKBfRS3JDJ0C+1Wvc/RzMJN1+CsFv9T2QrjjPq7P41HYLicqtxC2HafEBcaW+nZr14DRzAUwWtKBinL/7gLBStSTs4gc7EeC1qkPK9dFfEjRrLRvIlJMOsGtZL6W9+kHCLgnudk= 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=CW4ao9ks; 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=1712632762; x=1744168762; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=yUH+40wOXxuywofxp+taeOu7mRz0kLDsrSAD1qcv7JQ=; b=CW4ao9ksiCAskBQ3+tKVuIHLjFlRMbXpNGKzvCzJRLNdIedBiOw7cG8M rfwGc/VYrOvcEvbCWq6RhtM8AgVQn74hmMXvds/qPKgPufoiIRaPmtdRy DazrMBVVaCNzVbdBt4w1Thd+29+oyaGF+/rRNVB82oRi69qJD5bwngClK DY1vTJdFmnzOSdYxFnyS/YpH8CoJ19S+9zB7Rkxl7p4IQd2r6wf6O8Zix /Dc/2mcWPa0WV4bIHOErxU/0/1+d9TQqhIyrlo4/evtL+1mlYh+OPvCKy HtE4z5QIlKM42CWa7fAlLMApbCFpxStZa8NCAuM80uPhSj1cw4YsDEfxt Q==; X-CSE-ConnectionGUID: tD4nSU/eQBeFED/CpEHpEA== X-CSE-MsgGUID: 3ac2mGSHRZyNc/6tjv1sSA== X-IronPort-AV: E=McAfee;i="6600,9927,11038"; a="25435987" X-IronPort-AV: E=Sophos;i="6.07,188,1708416000"; d="scan'208";a="25435987" 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:19:21 -0700 X-CSE-ConnectionGUID: ul3gC5EdS8WbMQudW316zg== X-CSE-MsgGUID: Gzm1dDeKT8WcbFUGM3PTHA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,188,1708416000"; d="scan'208";a="24576016" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmviesa003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 08 Apr 2024 20:19:20 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) 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.35; Mon, 8 Apr 2024 20:19:20 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) 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:19:19 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) 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:19:19 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) 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.35; Mon, 8 Apr 2024 20:19:19 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kDNzQiqxWKsLV+I0dHOPfVacwy/kyXkQ2ari7GTKH3T984QEmJHYP7dfN1zYhCeARPZDLlZHRoETnB0GRPFcJKITirNBBjV3gGargOMQy+NCnhdU42Kb21OjZ9gwRANshUWbJSqmfWf2VbA442CM6QeKGMcZyYIkbpUfWaMRSAtMsKesi3THqL5dMM+Fv4C37gTCeYoM4vnaKNUD9ON0x8WmWSwD8z0bqhKJAzQ3S7XpalYZATZ56py44OYgG4fDr7k8MfsXzG7Pwa/CBBmpQpfSofmlKmv9yfesCmjeEtfLdPh6DpS3gtk5Q97INfb1IR/hWCGif76IKC4k+l4HHQ== 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=RXlbH+5+zt7NhgEPJ6JcQXrNm+YJ7Nd5N8NPWagsdMc=; b=Scwsg4U/rUBqGcocd4/OF7yH4V46zrPyWQJSb9frDCbH00MmleI2llTWc1mHGS28MRX1IfWC65ZmxIlrfC/o0agBQW1Gl5B3NqwKbAR8QzptUgxbeSeWuwiOxGa6uSExJqev/sG3LGIi2scB16kxlMGqt10dkt0lSaBvdChMFSw2kY2mr3zY73IrHNYXlaujKo3Ori8yJcKeF1/Gdt/eZNbE+6usYbxUcjWPN3sBWEwKkuTl4SjnEoOOPoSKYMmUV32HK4wcWqi+XWzhUIVLfsUD+HKeAZPn47PcxnhfqvPzjLgznGc6vG49djDrlkz9m4ROUdvwxkUDFLxn9OqwZQ== 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:19:17 +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:19:17 +0000 Message-ID: Date: Mon, 8 Apr 2024 20:19:15 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 12/31] x86/resctrl: Move max_{name,data}_width into resctrl code 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-13-james.morse@arm.com> Content-Language: en-US From: Reinette Chatre In-Reply-To: <20240321165106.31602-13-james.morse@arm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR04CA0057.namprd04.prod.outlook.com (2603:10b6:303:6a::32) 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: vDBqBFLC572s7vy8EK/XVO22xxBmxbo05xeIMPJJ22HeAc/KvN7iHD/v+nYyUvIgs1HfjrBSb5ESM8dhFJPoserlYFySa/U9nX2Lwqjs5ukGy7iYJ1KbtNgPAm/kkKiYi/4kxWL9u2x6yTePNOlJC+j6DrMtILcHoG6DHttqcZ04nbu5tBVYyjR0eiw+pSw+csWOX289hQ7Q33fkfKiljMLaHLMeC0aX3K+OpW5sC3o4xjX5VUjl4zoO6kptZTDLM+brkLJhA0QARCCDidUTS3bPdHfyA2nKiVcy815JlPXzD4fm1mBmI2+9S9u7+OAouLQMMvlR32ccTTrDF4rqR6IpLIB+LZvpu1hFEePH1jZzfvLxfRt28QR2r6QWYElWApATvYCVLSETNKmibIybFLA3DuyzI05lPdASiKcQZPl7MCqDyGQ9ffrk3XlPoLT3vsCZVzksIdT8zkUmcSqAFQP7/OZwzeN8WfYec4l8MokK9caLo1gt77cNRLdFKa96KILG0GvWmTugdeni9IISYOcvkV5Y+2J1jj0bGuOWd5v0NzZvNi5LvfRC9T5x7ryqvvJiknZLl7PlmspQL1YROV0Mr3TJXf7xVPaTnFzJb4Uo7KGjIHIJgGnwf7OOZaQyL7L3BD+A5edkhYrDfsw2fVCRpZX2l8E0r5klAijzf0Y= 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?cFdnenN0MXc3a2VRYm5tcnM5VEQ2aTFiZ1h5UjU4a0FrZzZ0YXV6YWFCQmMx?= =?utf-8?B?ZlFVdzRhaGloOEZMYVkyUG1ib0JBUGdUVHN1ZWcvVlJlbVJJcDI3SlFXQnIw?= =?utf-8?B?anpJMGdZR2RvcC9mQzNNbkxSaEFVZEVlekZUb2Z2RmlKc0NUb2o1RmpZRjVN?= =?utf-8?B?V1F6THdRQTF4aEV5T1QydE1zekxjZDRIQWpIR2swc1UxZ2JlRHozVXh5aVh0?= =?utf-8?B?VFFRZlkvMHlyVGJaTGRoTy9XN21QQzY2NEJ0cG1EUXJYV3lGeVFmVzBWdjRs?= =?utf-8?B?ejkwQ3Jod3h3WWJ5ZVJkSkxZWlVEVDA4Z1BRa1JZWWpxRng2WlduYnlrRkNh?= =?utf-8?B?NnNLWVVoQ1ZNMGxnUUR0RTdwNHl6U0dFaE9DYjM4SlVtbHU1VUpXSk05dnhX?= =?utf-8?B?N1ZzbjhwZEFSMzAxZHQ0WGlweHZyazhPY3NiWTlTUE9SRlN2eFVZdjFTT3Zv?=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thSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2024 03:19:17.6554 (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: G+AKMnTeo73P1L4tEbCTAV6BL6O9l/Yqjg/9SxULs3R7Fp4leJsTaJy+94YhVlieFd8ZexNLeElprJ57zs4ICJp/p7Fs3VRydTOHV6YCl/A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB6357 X-OriginatorOrg: intel.com Hi James, On 3/21/2024 9:50 AM, James Morse wrote: > @@ -2595,6 +2601,12 @@ static int schemata_list_add(struct rdt_resource *r, enum resctrl_conf_type type > if (cl > max_name_width) > max_name_width = cl; > > + /* > + * Choose a width for the resource data based on the resource that has > + * widest name and cbm. Please check series to ensure upper case is used for acronyms. > + */ > + max_data_width = max(max_data_width, r->data_width); > + > INIT_LIST_HEAD(&s->list); > list_add(&s->list, &resctrl_schema_all); > Reinette