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 0CC5845655; Fri, 19 Jul 2024 11:10:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9C96C402D2; Fri, 19 Jul 2024 11:10:16 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2045.outbound.protection.outlook.com [40.107.223.45]) by mails.dpdk.org (Postfix) with ESMTP id 6D76A402B8; Fri, 19 Jul 2024 10:59:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=my1McW1zd/GbNtgYRoA5+dDXmWDZgn8adyMcFcFlHskS8eNvF2A6qv33jJ1npjuWSlzvIDIl43L98ES8698lOQuOoe/s42i1r5/0EOHwAnLNCeprsS+93GFqnm5SO6isF26EMIJDy1WEt1+HkO5c8Cl9kMM9WJro6I6nqHAnqiZYMrZbguIcez/0TuV+Wa9fPmuYzFTNjlEmywAzN5bzdMZU7NmkOIC0w2SBW4V3y+EYSFGWZoiCL8bhOUlBwuTfeYM7Q17QL+l9xsu3d0/wlFw/6kumksiREgBWZjnG27+OIqVaL84wZMLpPhPH80gEcov+25Ezn2vE1bATryPDAg== 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=eyAZoQtklLKHuz2X8aRLF3Cm73Be3LhQEfJH6PUtrUE=; b=ez8bukuS+WpaT+cvXq9czZrUj6mS+D20kdIljFUXpTCDFDPbu2CYgUDk+0WFCpCTf62vf9AChy8vyK1Qz4epqG3fhT+OEXah6rgucwkhp+ZTjvpnMYmkxQqESq0PqBSCFZg6kxqTqsKHfIuUfgvJMfDdI1bjYuZBwDdKHBvM+Wl9x1ndmWkcm8PB7eBwkVpyuM+aHknc0NiUG+5j4rVoavv7U91r1o1ONFbIFDsekwjt6OAKgJ42DolsNwru2yAjfGrgGBAjS3baDBEzlK6pQux0CHE/SLw8udQLH5wkPTvAIpKb/3VXCrKPFtLb6IGXDLr6arSPl7P636mnxKK76Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eyAZoQtklLKHuz2X8aRLF3Cm73Be3LhQEfJH6PUtrUE=; b=x0pi6CPUOlfOWj5JvbWtT1cF7OZ5Yen+DU9OYneEMZyFAbEvc9GW1AvwGySdDWBk8NqbpJimjSsJyfV95LViRYk70ZsRZW4dr/VLXUOoTI99+kn5qWst1P/OHD75PPdAL3DL7++y5gfC/EJuQXJrXzQkJ/mnOEQdEIYtUyKtaPI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by SN7PR12MB8789.namprd12.prod.outlook.com (2603:10b6:806:34b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.33; Fri, 19 Jul 2024 08:59:55 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::ebfb:2f9f:f9ca:82cd]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::ebfb:2f9f:f9ca:82cd%4]) with mapi id 15.20.7784.017; Fri, 19 Jul 2024 08:59:54 +0000 Message-ID: <4f7e619a-0398-41cc-90a9-3c52b73d1c49@amd.com> Date: Fri, 19 Jul 2024 09:59:50 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ethdev: fix device init without socket-local memory To: Bruce Richardson , dev@dpdk.org Cc: stable@dpdk.org, Padraig Connolly References: <20240711123500.483119-1-bruce.richardson@intel.com> Content-Language: en-US From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/6BQJkdyEEBQkE3meNAAoJEFRTPtCK Km/6UdcP/0/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KuyO 8Zk= In-Reply-To: <20240711123500.483119-1-bruce.richardson@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0013.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:15::18) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SN7PR12MB8789:EE_ X-MS-Office365-Filtering-Correlation-Id: 7aff9257-a05a-4d46-2dc4-08dca7d12826 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?B?S1dpUFpRbzU0VmFrNngyZExsQ2dvTnc0Vys2QUNtY2F3K1o2QlhOR2lDcTFo?= =?utf-8?B?R2NKbmhRWlNQakxEMXI0ZmZyRDVqcy9oa3hUaXRGcjltTmZOKzlJd1lkVzhU?= =?utf-8?B?Y1NwWG0vN2VPYSt1Um4rMEdFOEp2MEx0RnJSTURTTWhmOFdOZFFVTWM2VXBo?= =?utf-8?B?TDQ1Z3FLRVlpMFo2ZWI3eHFGU2ZhQk52QUxvRStUSXNVdzIxRmE0bTJmQzRk?= =?utf-8?B?Ny8wc0VyYmpCZ0tIaW8wcUxTL3hNRFlvSWhUSStCWHBJcFZUN0ZDendOSStO?= =?utf-8?B?dHltU0FHK1Q0UXE4U0s4YlFhVmhmV3pPWGt4S2JBUkI1eWtlNGtvNEJ6WjFZ?= =?utf-8?B?ZC9Ya3BLN0hQMmllcWpjdWluVnJVQzlBZHBaN0lRZkQzZ0hhTlJOWXpLWEEw?= =?utf-8?B?azNjbDZGT2NVVmJRV3lTS0tnSGlLYUNsejBYcmxhNVJwYlQxQWI2ZUVJckdW?= =?utf-8?B?Zi8rV2xnNE94UUJMTUpBbzRCQ0VnOGhHNXM3V1BC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BZ3JmejlMb3VXNng5QWNWaFl5elowZndKVUEwcmtWQWIx?= =?utf-8?B?VU1Scyt2YnJmYVdWa1FSUjBSUzBGK0kybGJrVGZ3MEVvSFdtY1RHNDB1dTRP?= =?utf-8?B?RjQ5UDdKWVhkVG1peG03M0lWUTQ5am93QXJlVUlxTXJqd2V4aVF6b2Vid25E?= =?utf-8?B?bkpRc0p4ZzFyUXZSMi81alo1aHExeHlpL09nZnczN2tvOWhRcE81YVZ3NmhJ?= =?utf-8?B?cnRqNTJabjB5SUZEcjZQMVpZYXZ4dmFpcnlrWUttVmhHQzc2YkkwYjhyWnR6?= =?utf-8?B?d0xaWGZiaXltQTh5Y2dVdUxqOW5YVzNZNmVvbkN0cjNBYXZlMy9ZRDFWSElO?= =?utf-8?B?dVJDTzlSQ2xYTW5aN3VjeXVjZGMrenc0dWlHNkM0NTlWb2tEL3pnUE5VOUFv?= =?utf-8?B?bDgwOHFwYmtWc09HV1psdz09?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eXk1a3YweStpcEk4VUhXbUltR3lXZiswUUcrbnNwVCt3QlhNVm0zTktMYm5E?= =?utf-8?B?RVdqSnEyczhHeG5GajN4OW1Xd2xONkY4RUYrQWdlaGlENzlQR0ozKzlQUC9V?= =?utf-8?B?QXVCaDVoTEdBSm9IN0JJRDVvZTRDdjhxaDFVY2NKZEUwSGhpcmZjaGd5eGxS?= =?utf-8?B?bDkwQU9rZ2kwSU0wYTlSb0lTbnVOc2diMHQ3QmpNRXJibGVKVzVrQ0tUaklK?= =?utf-8?B?bTFtZ2syZmp4ZG1XcUNodXVCSmNuZVQ4R2dDRzhCNm83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dzTTlqcWNLbjdmWTgrSTQ1OHZramtIcjQvSDBaazJO?= =?utf-8?Q?MEMCKABZ9PPUPFby2RiN0aAf0?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7aff9257-a05a-4d46-2dc4-08dca7d12826 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2024 08:59:54.5432 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XJMp7jEZDh0ge6TTUcp5ytK7HJS70u/1h031jmWMJmGeMHLSLgubuCRM+KrmnZsp X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8789 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 7/11/2024 1:35 PM, Bruce Richardson wrote: > When allocating memory for an ethdev, the rte_malloc_socket call used > only allocates memory on the NUMA node/socket local to the device. This > means that even if the user wanted to, they could never use a remote NIC > without also having memory on that NIC's socket. > > For example, if we change examples/skeleton/basicfwd.c to have > SOCKET_ID_ANY as the socket_id parameter for Rx and Tx rings, we should > be able to run the app cross-numa e.g. as below, where the two PCI > devices are on socket 1, and core 1 is on socket 0: > > ./build/examples/dpdk-skeleton -l 1 --legacy-mem --socket-mem=1024,0 \ > -a a8:00.0 -a b8:00.0 > > This fails however, with the error: > > ETHDEV: failed to allocate private data > PCI_BUS: Requested device 0000:a8:00.0 cannot be used > > We can remove this restriction by doing a fallback call to general > rte_malloc after a call to rte_malloc_socket fails. This should be safe > to do because the later ethdev calls to setup Rx/Tx queues all take a > socket_id parameter, which can be used by applications to enforce the > requirement for local-only memory for a device, if so desired. [If > device-local memory is present it will be used as before, while if not > present the rte_eth_dev_configure call will now pass, but the subsequent > queue setup calls requesting local memory will fail]. > > Fixes: e489007a411c ("ethdev: add generic create/destroy ethdev APIs") > Fixes: dcd5c8112bc3 ("ethdev: add PCI driver helpers") > Cc: stable@dpdk.org > > Signed-off-by: Bruce Richardson > Signed-off-by: Padraig Connolly > Hi Bruce, If device-local memory is present, behavior will be same, so I agree this is low impact. But for the case device-local memory is NOT present, should we enforce the HW setup is the question. This can be beneficial for users new to DPDK. Probably 'dev_private' on its own has small impact on the performance (although it may depend if these fields used in datapath), but it may be vehicle to enforce local memory. What is enabled by enabling app to run on cross-numa memory, since on a production I expect users would like to use device-local memory for performance reasons anyway? Also I am not sure if this is a fix, or change of a intentional behavior.