Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp73569rdh; Mon, 30 Oct 2023 14:21:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZDhfwdb0c0XqK9A1vnqS6WNDjt572eoxnZ8LNNpsIu+DMb7NwiuZHL5LT2nHgSrdtEtdP X-Received: by 2002:a05:6a20:8f05:b0:14d:9bd1:6361 with SMTP id b5-20020a056a208f0500b0014d9bd16361mr11116197pzk.11.1698700911954; Mon, 30 Oct 2023 14:21:51 -0700 (PDT) Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id r18-20020aa79ed2000000b0069342cee042si5441099pfq.51.2023.10.30.14.21.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:21:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KJ9UExJv; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id A3B5280B1228; Mon, 30 Oct 2023 14:21:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231725AbjJ3VVi (ORCPT + 99 others); Mon, 30 Oct 2023 17:21:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231359AbjJ3VVg (ORCPT ); Mon, 30 Oct 2023 17:21:36 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12B83F7; Mon, 30 Oct 2023 14:21:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698700893; x=1730236893; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=NHQAl1mvT4REZIFPXQdH9kjT9A0zC11d8hlJVVYtz98=; b=KJ9UExJvekKRTmMwyySY/6v0LAcMQRyXgyVJb64DAj9jOEjZl8BxepGj x4YD97UNIcxJQ8uyALBCHvgMr5xjXF4guQWEuQgSpXp19TWnGG4OlRG+7 DZHnq9PdiN6ybyxq7VbjNNUAdM+cRChWj1zhCG8GTv6RzI1GGitzepGDQ VvzklVYYwma9FpxVapMeKTATEUWFBz9FK+ZeOKNdzqwQcNYwCCJCWm/qo EeNru3tkIVmNDyA4ssPjQnaCKfOxPPNjHwYM66ujtnj9mLp5iYZKnKThs DWypf0RIFG0F5EFXqFo5e70Aa8vErV9Pe3pU5uXUuB92LGjF8s560jelt g==; X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="474407027" X-IronPort-AV: E=Sophos;i="6.03,264,1694761200"; d="scan'208";a="474407027" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 14:21:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="826180414" X-IronPort-AV: E=Sophos;i="6.03,264,1694761200"; d="scan'208";a="826180414" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga008.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 30 Oct 2023 14:21:32 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 30 Oct 2023 14:21:32 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) 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.34; Mon, 30 Oct 2023 14:21:31 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) 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.34 via Frontend Transport; Mon, 30 Oct 2023 14:21:31 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.41) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Mon, 30 Oct 2023 14:21:31 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hx95kaxM4yHftYSeLIu4Q/IKt8Sm/1P04EJeK+BdtzUxpJ5XoskSCwP4O0dWcNC6ubGxT1jgcMYVytNDjnA/RwYfNeZY5m2yeHtK18vz2/hbcsw2KYL9cL1sDybaRSFPr1Pfxd8R+tMQY7QCYEsdgvHgd2g53WJsmN7H4PUD6GNkahz2YYUnOEjzMw386nD+L4HYZosLB5acxev82YRXsYjbT6rXpbW5q0uhunu7Cmtf/EdHRgNAM8BltmZ6qCu0dON1nFUm3mN59afdXIgRjYSruLDLLIXVT3Ldo3DGHs2K8hKxuhLNUMbDSB3Je0LdxTrVOEY7GTcWo2OFDVtqxA== 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=yBlWJmfC4BM3AJEMBIrBr+mz0PrAKvmyH2nY+eazKP4=; b=gv1ecBXkYpTCAn8+Dhtndq61DbtqCkSTLV5l0XoXWB7/p1YgyYHC+J9sSDRRysOznpzR7S8PAcgBm8taQn7mzgS7AJchubWdrUTqgd/7M2lgkvXlkAJeWWsf6OY3hRy3W6B1+/PPBZO0mbltvlmjo4wNF6GPPZrxT0HTPSiXZjYjQk2+Xj+nrtda23h97Y09ik4+5YCimXBHdbGjpHetxiGAZ/umVtmUjKnlQZnIdJ4qkstFjxDA6V3pQ//qPYv+F4+eEzAhZz/mvDKcaqKocHaZiNQCpyaLlmlu0gUGIm8aKQ1xTVCk51Dqc8ww+rgp5FBuHUdru1EcHDF5jwpRSQ== 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 DS0PR11MB8136.namprd11.prod.outlook.com (2603:10b6:8:159::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.27; Mon, 30 Oct 2023 21:21:30 +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.6933.028; Mon, 30 Oct 2023 21:21:29 +0000 Message-ID: <967f9b61-41d6-4a4a-adc4-0b3c742bcddc@intel.com> Date: Mon, 30 Oct 2023 14:21:28 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 4/8] x86/resctrl: Split the rdt_domain and rdt_hw_domain structures Content-Language: en-US To: Tony Luck , Fenghua Yu , "Peter Newman" , Jonathan Corbet , "Shuah Khan" , CC: Shaopeng Tan , James Morse , Jamie Iles , Babu Moger , Randy Dunlap , , , References: <20231003213043.13565-1-tony.luck@intel.com> <20231020213100.123598-1-tony.luck@intel.com> <20231020213100.123598-5-tony.luck@intel.com> From: Reinette Chatre In-Reply-To: <20231020213100.123598-5-tony.luck@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR04CA0277.namprd04.prod.outlook.com (2603:10b6:303:89::12) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR11MB7573:EE_|DS0PR11MB8136:EE_ X-MS-Office365-Filtering-Correlation-Id: e6330b06-a191-4c9a-7fdb-08dbd98e2ed8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cSru9+igyFYVtX5Mjy76JcIozPRuKBSev95rUf5DhivaLhjpbkd19SnpkuwTVeQ0oMFICELZPlK1GwUQJLhXXNO1HIHPUXmS9AkhDcVjueu2J2knUHeDZcDbcmH3JVKVzUdWYyejoR4J+9upZBGnUQh8vvKc6E/vWamafy/tddW0f2rbF2vPGLti1SOMarb7IR8DPkTmh+4pYe/8EIJcnzfACxIGwLsWeLvftaJaKt6eYVNXN9Kf3TCd09VXj5wuCJpYPkTMk//13gnXGDXTKLBiS6lsp9Z0lI8sQbAL5lKs+GzlzAnWzxoNx/wxZLohdCGRGVA2jQ+NhwP69QPJ/ACRheRJVy2IHoTmU1mAOjwsAYaZcMZerG7o8nB8YI4GcZRejTYytt1x7qsk+2VU2PtO3DKzNj2mqjaa8jkbsGVIAIR8pkmzTu2PprKJx9+vNdCXSVvwncZRGDH/2/1REgZ9JGd4GUwjlEfFi0/kXsfMW6Ey1b5JNu9UvBFiLPjSt03cNXIC2EnvSjP5CjgArQqO6YiERpE1VGN7orb3sLp54aKoo6IXej7fHk8nkV3MiCs/gVRaIlZ1I9t3nX2M3bMoCl0BdoOSQWNs/OZQMlulCQdCOVXMKXVpPWZaxsWiF3IsKzFqgJi8wYRJLsAdMA== 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)(136003)(396003)(376002)(366004)(346002)(39860400002)(230922051799003)(451199024)(186009)(64100799003)(1800799009)(31686004)(478600001)(110136005)(6506007)(6486002)(66946007)(82960400001)(36756003)(38100700002)(2616005)(41300700001)(66476007)(2906002)(6512007)(26005)(66556008)(53546011)(44832011)(86362001)(31696002)(8676002)(8936002)(4744005)(54906003)(7416002)(4326008)(5660300002)(316002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dzNlT1l0VjkzVDFlUTUzRTBUSTRKQVVINHQzdWlUVnY5ZDNOZ0ttUzFJeXlj?= =?utf-8?B?ZndYU3pzTE5aZzg2K01nRGlxQ2lTZ0JPUlZZY2tQdUUyUlA1L0xRbjZSWDI0?= =?utf-8?B?RktjWEEySytqSG9lbk5zamxaZG5YN2NjR3ZyZEx2eUhEUmhvWmlrZEtvcTQ4?= =?utf-8?B?eTlzTkwyZ0Q2bkUrNnNpMVNRN05iNlptMGFCVUpVZ3NoZnFEVTVyWWpnRW1k?= =?utf-8?B?ZmYyYy95eC92NngzY2RQWG95em50bjBkbkpTNWhMdWs0S01ETUtmanI4VDdm?= =?utf-8?B?MzFZcEFYQllBMWZoTzhNY2hyM2xNbEVMZkNhZ3ZQdUdSdEZ1Y1Y3VHl6bHZk?= =?utf-8?B?bmJ6bmg2YmxGS3hIV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0hERW5zb0lKSTRwRWg3?= =?utf-8?B?aVE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: e6330b06-a191-4c9a-7fdb-08dbd98e2ed8 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR11MB7573.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2023 21:21:29.8768 (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: ufcONHr857vlF0g9PbVqveBP8SkaN3EaJNDcnvmKXVOVJh4UML7HT4Bff05URL5QR69AOfhnyIa4nsEbLsRDOu+5XRgcV33+GJfFaplFjfQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB8136 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-1.3 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 30 Oct 2023 14:21:49 -0700 (PDT) Hi Tony, On 10/20/2023 2:30 PM, Tony Luck wrote: > The same rdt_domain structure is used for both control and monitor > functions. But this results in wasted memory as some of the fields are > only used by control functions, while most are only used for monitor > functions. > > Split into separate rdt_ctrl_domain and rdt_mon_domain structures with > just the fields required for control and monitoring respectively. Sounds like a motivation for the cpumask to form part of the common header? Reinette