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 4B47A45681; Mon, 22 Jul 2024 15:25:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E59D0402F2; Mon, 22 Jul 2024 15:24:59 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2055.outbound.protection.outlook.com [40.107.223.55]) by mails.dpdk.org (Postfix) with ESMTP id B8C68400D7; Mon, 22 Jul 2024 15:24:58 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qWfa++BzYDify7MkSGabtBLu6mczHwuHz9lXU5a0bLYHmuRdUW/zYuEjIsC3a71ac4sCmYsc+6YanudNfSLNMDCmFoRPLhgi4CNzFN8CSLg1oGFf4DXOJurysNIlc1gqHyM2zhLdnLlgWhvyjZxFwtN2hFJvymNeH50ZkCgP7aA67b0j7xvFf/EAIRl7xD2UqZnQ0JAqPutFfbdvB1RbNJSdS1DKjZy3YJvXf1rDM8FicRSJsfCVFfVYFh8chCep5ng+4/d/es4OEEcHnCZms7ahv3Vn6RuFxBL4Nv+pXBDH++HRXlUiiACNzK6fN3rhcNbn0FcDjzF++EzcMkighg== 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=Cl1n9u/P/XXCgA52pWzOOxyFGQtI5psTRDHjKotlamI=; b=PuTK5N1u9nSeYPZKa95QVZVfvIK4qF7PeqQXmajuXJqWfQiRBJXHb5FKLxb02K2ZJpZ2LEQY5szP+x50EZ8XW3sjZX0csw/OOoKgvfKORQFNKaVP+tXKQt8rWSt0uoF522SSdQI3EEyC3XuDl0AVZ6t7RU4+9YjdC7/6wGqfCQ0jSlipxKERZBwVYHL+7LjLblz535fJZpg/SWJLt23svRdWdcHApLAYFmAW6aasDgh58bKFikb8CiFCa+y5dzbN3f5jynhxyT5Zps635YASx1IVxVCK4cHxI+uQ/vM+XMVtE0YBQPUfrvohB5R554yhR5W1eZQ2JUVjrF42JutS3w== 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=Cl1n9u/P/XXCgA52pWzOOxyFGQtI5psTRDHjKotlamI=; b=q1ELnxYDbY0Fepaxz8INWKQjNQpNnsEiHADUSLsJvi4OnYQ4Pjy/ingErWxOqBqG82LiNvFUubpy1qEB//hy4gx3PfMknYHRZwwk6qws/nTljLgSuPLz8qbNkGCirAkW2KTwze9W2rhTXVdWVrMSHK87xnAOyhl9fX11hhyOiVs= 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 SJ0PR12MB7036.namprd12.prod.outlook.com (2603:10b6:a03:483::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.28; Mon, 22 Jul 2024 13:24:56 +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; Mon, 22 Jul 2024 13:24:56 +0000 Message-ID: Date: Mon, 22 Jul 2024 14:24:50 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] 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> <20240722100228.618616-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/kEp49aIUhkRnQfmK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-To: <20240722100228.618616-1-bruce.richardson@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR2P281CA0049.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:92::9) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SJ0PR12MB7036:EE_ X-MS-Office365-Filtering-Correlation-Id: e63284ae-eaf1-4889-7b7f-08dcaa51ad77 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: =?utf-8?B?WFZ5YktxT3c1NlJCMzh0TlZCZGlVSDRPdC9zOXNnbG9aSy9WNUdQS0Exb1B2?= =?utf-8?B?Z0krZ2FNU3FiUkw5bWlSWmxpQ2orOFFZNVk2dnJjMXhuenlURVF2SzUvTkR0?= =?utf-8?B?OWVIa1BSOXppZGZFTXdiK3hiWEJlRnRzYkc2bERNaGtwSFY5anlFZDJ5MkM5?= =?utf-8?B?dzluakszbmc1QTU3cHdzdWoza0tDNDJxYjlMOXkyV25vbVVnc1g0OUM4WUhl?= =?utf-8?B?Tm9WVk9BcjBmVmhPM01MR0UzOVJHY2ZQRFJNd3VXTVhuNlB5V3Q5OXY1ZDJN?= =?utf-8?B?YTZUQytGZ0t6NVNUTjNLUGo0dExCR1hYTDZ0dUNvaDNNU3pNU0lPUzZOb081?= =?utf-8?B?TzVUN2djRnhHMGFTZjNKVGxWYXFyRUZkeDloRUFBY01DQVpHWnh4SG54bGcv?= =?utf-8?B?NFBKMUR0TUFVWWFVV3JhWGozVjhXMVdFUWttREgrc1VmNmhZMWtlbGJwUkZP?= =?utf-8?B?QzIxaE93RGJpcEhKRXNlVDdwSmVLWkRzTm8xdzNrekN1QzVKd04zRFh5cllq?= =?utf-8?B?d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V3FHcEF1cERJ?= =?utf-8?B?enJYak5reHkyMWZpdjUwZG1ab2FYdHVVclc1c3pmaXBwL2RUeUliU29sL21Y?= =?utf-8?B?dFBZN240c3JEcVhDcVVJRUFYNUFWK0lDNzQzczU5UlBiOE9CQncvSjUxMFBC?= =?utf-8?B?UVkwU1pPRHcxVEd1eFREeHc1aENjbkx4REVydC9uN3NzZU16a1pzQWI2UFZD?= =?utf-8?B?aEZXdEtDWFc2c2VhejFVZ2QzV0FNekVYQjBpblQyZDcyVTZtNUFjTUJlRG5X?= =?utf-8?B?b0U0VWsrT09CWERhWnRyMnlQUU9OSGRvQjFiQXBFSGxGRCtBWUk2NlJLSk1y?= =?utf-8?B?aWJ5R002VlJzQUZ1ZGpmY1E1aTRZRWR3S3JkL2ZSeTYyK1pZd3RIVmZPVTVz?= =?utf-8?B?QUxYQ1pOUWJ3eWwzR25Hdz09?= 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)(1800799024)(366016)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RUhXNmJFMG9IT1JVNlVwRy9Pd1F4L2M1VDZUbFNRNk82REdNSENWZEtTbXJl?= =?utf-8?B?YU5yZlVTTzdIRUdsa3BjSXZXaWtTV1hJZE9JODhYaW5lVGNWQStxNW8vTTBj?= =?utf-8?B?ZDJ1cGs3S3VRMXJaV3BiWjhnZzNUY0xJNWNSeTMvQ3BqMitvRXVBRU8wdmky?= =?utf-8?B?QmM2M01rOUFyNXl2djJlek5GZjJUK3VOOEtPeVkxcXpRMERZZGFWeW0reWZx?= =?utf-8?B?QWQ3aXRleTlTck9lRmlwSkZDKzRwNk9Ba2xoOURhVmtoUEd5anpqVk1iZUUr?= =?utf-8?B?VmRkVmVydGx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bTBzbzVr?= =?utf-8?Q?pEEkU9kwbi4fq5VGbKh3g6rzd?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e63284ae-eaf1-4889-7b7f-08dcaa51ad77 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2024 13:24:56.1025 (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: ap4KMw/4wWGFC0a1CrlwRd0lspPQfAm0kvtpL/CuVhcBzXfUidHIxbkfGhb+hlif X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB7036 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/22/2024 11:02 AM, 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 > Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.