From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BACD645900; Wed, 4 Sep 2024 10:19:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AAF54028A; Wed, 4 Sep 2024 10:19:03 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 5C16F4014F for ; Wed, 4 Sep 2024 10:19:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1725437941; x=1756973941; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=Rd89Z9Ork+zZjn7RRpBEltgCakMWYugaL94NE6dOo/8=; b=SwLsYyd4uPIHle7sy41/xr3Klp95OFnUk01u0tSItKF4s+Xx9vuOwX+N +HPunjlXiD+amErMzXk/jdrgBH06h0MFu57xYCdkd1CIPHiGQcKFOcFEJ +dW2cvM6ATQb6HSxG8V/rzSJ/ClwbutUBLCO94nEGsj7JvHsVVtUZuyAQ rI3ok72YQ88YtdMjls6fpBQh3ffhVHwdvhqb3Dznqt+vE1IhOP2Tjq0X5 ueP5eCGnFiie4TEJMJSdKHW18lx1KramUKEfVjU5xU4Ze1lomfmS616J2 TZo6P1TlPVp5oc8JbZ8WYbJ2xQi+SfvF5/5DXqkCtzi0e1ICE+nxmeEZO w==; X-CSE-ConnectionGUID: CZUugRoMQyKqEI8fGQUNzA== X-CSE-MsgGUID: w3+dPRmqReq83YPVoCV1KQ== X-IronPort-AV: E=McAfee;i="6700,10204,11184"; a="23642141" X-IronPort-AV: E=Sophos;i="6.10,201,1719903600"; d="scan'208";a="23642141" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2024 01:18:59 -0700 X-CSE-ConnectionGUID: Uyutp5ioSP2Bdici/Iz8CA== X-CSE-MsgGUID: aKdmHzOVSSmT/hmSwFLKpQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,201,1719903600"; d="scan'208";a="69999515" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orviesa005.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 04 Sep 2024 01:18:59 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 4 Sep 2024 01:18:58 -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.39; Wed, 4 Sep 2024 01:18:58 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) 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.39 via Frontend Transport; Wed, 4 Sep 2024 01:18:58 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.172) 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.39; Wed, 4 Sep 2024 01:18:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZRYIIJ4n7Ayh809hhV2zprbnA/6mG6TFzFzPgDtSTku8ga0MW8iLGbkuH1C1lOO6mdsGKhvfoXoxYrgvGfv1msUExPk6jeICBz9ayh3Q0JpU5z4ZOBn8XC8qqmFvJCtqiB/B3BfV0uyrkttofWE3WyxAuS5MN9k3ZJmUzplRglu/hWzMljxePcMGQ5WvM54gvyjjF/Q0DHBzLFRC8BgTYnWE3schW8kh8fBYybHUJ9A7zggNCkuR09Wr1VF1MZdXPI2XbECEY1Kq87Kp9RbdG3b/lbwfwVvd+xS+qGVMxw7p8M2jIJAJSQjB+O8dEG2gq68iUZtyeORLsiPUV9XhfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=7hsxHgLEIqRUKTgTc7JzDKlR4MmzfSXYX3NqvI02Skw=; b=akL30ntXO3f1NqTgbP1iEq+KMiwHJVExxCN2E9c3oHqAaq220A1mfj5XVY8jcj+rLYRBSI6HsnMzhdsOOxZuAGJBeOKWnXnIeGcPoGUofK2zAm+cwdMnRbVIU5djMXHIqKoTHdgs5QnH2/c3Mcy+eqO26OXN1NycbWKfJ4zq3awvCRskosEg4X0HM+ncvoD+nrPFVTHD+5CJ7zmAqQsH57D2WS2KMF8p+1QcA66EQEiqMVvYkjXm/JNrdSaOx5RJPYZbGq2BokoNjPvgBuhKhk9Y24S8S0jC02cXflvwMr+cWiLfxv5bKw0MkGXCMla2idMxl5gDVtVz/r4oETvdlA== 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 DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by IA0PR11MB7403.namprd11.prod.outlook.com (2603:10b6:208:431::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Wed, 4 Sep 2024 08:18:56 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b%2]) with mapi id 15.20.7918.024; Wed, 4 Sep 2024 08:18:56 +0000 Date: Wed, 4 Sep 2024 09:18:51 +0100 From: Bruce Richardson To: Wathsala Wathawana Vithanage CC: "Varghese, Vipin" , "ferruh.yigit@amd.com" , "dev@dpdk.org" , nd Subject: Re: [RFC 1/2] eal: add llc aware functions Message-ID: References: <20240827151014.201-1-vipin.varghese@amd.com> <20240827151014.201-2-vipin.varghese@amd.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: DB8PR09CA0004.eurprd09.prod.outlook.com (2603:10a6:10:a0::17) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|IA0PR11MB7403:EE_ X-MS-Office365-Filtering-Correlation-Id: d3b343fe-553d-45f7-98d5-08dcccba3873 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Z44OQBD2gjt72ZDyfneVM329Ax84ZLp1LdGYkOhBRkpo0ue7J4LDzRLcVxaN?= =?us-ascii?Q?V3SbTAk14h+2qVivivaN3EmXmKeU15DPfJgja2BPlAHYfyu2okE3p/U5lPIt?= =?us-ascii?Q?iQqt0pwhx9ETl8njdg4WiQEtMTFqbrOdP+UL/Ho1MgvMGwlgaxaWkZS4nkFC?= =?us-ascii?Q?xcGDQ0kN14IeQgCCfGA7D60F28xAAEOzX5WKwcZEy/6eYOagUpJqE/+SWIKs?= =?us-ascii?Q?aUdMgbfWFxxKMN9G0QgiAC9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w7ikypAsn6Vjlm?= =?us-ascii?Q?9voMpWGDyGGRaPabVIQUhOzEb+VoOxgipfzLt3dYhY+dBuf2upTZ/7vkaia9?= =?us-ascii?Q?nK8IgUfI24Wv4EgS0fDlE2CvkfWstXeGB5q0k+jlvO8fzhgIJ0J0VR/bWiWP?= =?us-ascii?Q?XCLyq9AEi6LNf7RnNis5+0xZKw3Fh3klubsjE5NnYt/LVMdZqvnWSHNKecxF?= =?us-ascii?Q?AU398BdT7Uzkamw81kOdV352+mIs13twWVny+te59GiOjQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?T6C5DVjhQOjxb96zTezjMfA1DItPcS9i7VdWKT6OorEGZgZS5IK0OhIKrAcq?= =?us-ascii?Q?67TdclflIaYRrTGdRho/PEZ4ll5J3WEV085z0hntAXTCuHbbPjq3Nwn6fvZN?= =?us-ascii?Q?BMDYT/DbxKzpzv7orjpZnPt36fh0GH/TeGLR526JDYwLhz8X5ITcPOcHntEN?= =?us-ascii?Q?Q52msICY0SOh13UPC3O/6j4RPvz/pGcmo/XXmTc2Dkz1wM13hN7my4MQQNsx?= =?us-ascii?Q?bsS4y7hrk84EaQ4I3ZGa7aJmhb3qcKRYbv1jw+Xyx7VnSt2EjOq+SOaFM/OL?= =?us-ascii?Q?nSLH4gskX1iw4fzHqdTkjb+PRi1sYLd3rq9cQYVJ3+huXMxrV+i+r5z6iUEm?= =?us-ascii?Q?9Fv3+vPdL9UOqn4jxpr4HBnjJWaXNuD2tq6pfWCYqL2NRsxmiSeZvrBAyR6C?= =?us-ascii?Q?aU+TQAfRfGbUrg3F3jAZWSptmWWWnBOLbC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ii?Q?pBI4q3kvwUlZG9/kWHAf/lGRjRCw2gP4e4++pjiXsIup6P0S9cSK37IKiPeO?= =?us-ascii?Q?4GH015c+csLzUpkYkiUaBqnsuHTk+Uviv9n3e3uHWWIVzW7RP/N7+TqhlPsh?= =?us-ascii?Q?zIantzdHqf6hcFLJxAiX7BJDZxMDoe6aQ3gIiYQltwj+bJvAXR6DT2KRv9IF?= =?us-ascii?Q?/nv0fceXP1T2t111K/Hh6PrItaGzRc0HpI4u7YWUKjeENwslQAEUjIgI69yR?= =?us-ascii?Q?xnpUrY99GIPkMT6/kIibeswcK1XaCKNGSWu2dodW3wVbups0bFYC1uDxGIo9?= =?us-ascii?Q?0Q=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: d3b343fe-553d-45f7-98d5-08dcccba3873 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2024 08:18:56.4224 (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: fr9KS1AUcd0gVpELBeJUrIWckaHHP145+YBmGO3joKX2eIWPXUNluY3/Uch1JRF1eObiTDmYXINhRztV6R56N2n80LQ9bPqJvK3yvcMNa2Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB7403 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Tue, Sep 03, 2024 at 05:54:22PM +0000, Wathsala Wathawana Vithanage wrote: > > Some SOCs may only show upper-level caches here, therefore cannot > > be use blindly without knowing the SOC. > > > > Can you please help us understand > > > > For instance, in Neoverse N1 can disable the use of SLC as LLC (a BIOS setting) > If SLC is not used as LLC, then your script would report the unified L2 as an LLC. > I don't think that's what you are interested in. > > > 1. if there are specific SoC which do not populate the information at all? If yes > > are they in DTS? > > This information is populated correctly for all SOCs, comment was on the script. > Given all the complexities around topologies, do we want this covered by DPDK at all? Are we better to just recommend, to any applications that need it, that they get the info straight from the kernel via sysfs? Why have DPDK play the middle-man here, proxying the info from sysfs to the app? /Bruce