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 304D245A58 for ; Wed, 9 Oct 2024 03:21:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 185324065C; Wed, 9 Oct 2024 03:21:11 +0200 (CEST) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2088.outbound.protection.outlook.com [40.107.102.88]) by mails.dpdk.org (Postfix) with ESMTP id 03B77402B3; Wed, 9 Oct 2024 03:21:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Z7nYzzc6TQNN7tYxqIjmU9VmMhw1QP1Zh2Gxb1fLKpUg9H1ht7FSuHaiwulonklACFLUBhMqO6qkcPJLkRTm6EJ6gRdhN8DCyiDGpaMMy3479exJRNZIyFUnnbKRPF3Q6jtfi667uKvnt+MzaEwkyOoB9tjSOHTg1PtxwftMQG+ZtfjDkQur7bGBAEWDacBqsmBiBXwTK5InxaugbPJHVyyMyUtas4FZBR+wOfeIiDLAnClst+d53ynK+p1ARXoZMcsto1QnXHzFQtOoz8sdKcBqIqfUcpU9TSXWsSTWWyb11hTR8R6KwrUMHIb49PsfOHelIoZqQNwcL5YeoFYmfA== 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=UmivSgw56uTTH2Xoo5W2kSFYRqY5XT4qCLSSIXVa+4s=; b=TtENyqJdfVUnpkOAM84H9G2alyjKIbxYdR9RyW1672PAU6qUKNqGrIBym7kYr50GclgKf8rX/A/MAytn3d5WtYsWU9/WIPfTRWxLVJIidGEwCaIzkCXBEhx0QWaedhNNe3WNeHVXqx4c6DO2H+nzSjZRu8ACwbfFhB5/sUUsSvezZEd+kEmTIJyR5Sdivf0otuML5SDVe/4ioPtWqp3Jg9+z0f83oiXr2ffOc9qdeakC1+w47Lx0SMzAAsrDsw2M+Nr38mmPcnT8MxlSLZU3gSPUNatDze3dIYd6ns3bEV0jxRJW7EDkKzndnbNEYGBChtwdssl2wD3ukYXA+a3yrA== 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=UmivSgw56uTTH2Xoo5W2kSFYRqY5XT4qCLSSIXVa+4s=; b=dkFr4OKRDGIldVv81Jd9l7ZZkk5WTnWX1W0+EQV7SXRjfFQX6smnLGuGBnsx8FzUn/Q8RJw6/Fs9rR55GTwYezmo7eF+mk40gMXzjSffzdlFnMGjZsveXnyzxVRzoJQ82bGw5LgydQnW41SeVVCQHZwOmZDkFFkCX6dgkFyXo1Q= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SJ2PR12MB8830.namprd12.prod.outlook.com (2603:10b6:a03:4d0::9) by IA1PR12MB6457.namprd12.prod.outlook.com (2603:10b6:208:3ab::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Wed, 9 Oct 2024 01:21:04 +0000 Received: from SJ2PR12MB8830.namprd12.prod.outlook.com ([fe80::c3eb:df02:eaa9:2055]) by SJ2PR12MB8830.namprd12.prod.outlook.com ([fe80::c3eb:df02:eaa9:2055%4]) with mapi id 15.20.8026.020; Wed, 9 Oct 2024 01:21:04 +0000 Message-ID: <305b785e-0f80-4712-8ee1-dc9db8df0b6b@amd.com> Date: Wed, 9 Oct 2024 02:20:59 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] net/gve: add IO memory barriers before reading descriptors To: Joshua Washington , Jeroen de Borst , Rushil Gupta , Junfeng Guo Cc: dev@dpdk.org, stable@dpdk.org, Praveen Kaligineedi References: <20241004010535.239103-1-joshwash@google.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/6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YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20241004010535.239103-1-joshwash@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DU2PR04CA0086.eurprd04.prod.outlook.com (2603:10a6:10:232::31) To SJ2PR12MB8830.namprd12.prod.outlook.com (2603:10b6:a03:4d0::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR12MB8830:EE_|IA1PR12MB6457:EE_ X-MS-Office365-Filtering-Correlation-Id: 105fb692-5930-4166-84b6-08dce800a4dc 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?R0pjWW4rcVp3alBsS3NZVXdNc21lcHNRZ0NHS2oxbEg0dTZEWkpmaWtpVFhC?= =?utf-8?B?bGh5S255QWRISDhONGRRUWUxazk3L2s1aFMyN1o4eE1tR3NNd0lNeHNDQS9i?= =?utf-8?B?c0hCUHBTMEw1THR6VTNGdmEwVWhYUFJTUnkxV2IrYkpBQWtNYVNlVEhDbDQw?= =?utf-8?B?NS9EWlRSK0NIaFNaaU9HZlE3dlQxS3dTbXlJTjU3a0ZKRGFkV1dpb0JmQkJ3?= =?utf-8?B?ZjNGdVk4MkxCYTQxbHcyaitzbW9vZk1pMkNzQkNVYlpENE9uLzZ2YWIwRFhX?= =?utf-8?B?R3VIbDIxNmREVmtjNlFqRzBqcXkyUzUreUV6SExDWWN5dWtDKzJ3Y2ZIN1FW?= =?utf-8?B?QjlHQUwxclNoTm5zMi8yb0MwWUVmT2NzemtuWE1ucitScXR4R21WbXNQY0Y5?= =?utf-8?B?cHJVUmh6NzcwM3NhT2tuSnlXdVh6UmMrN2ZsbmJDRENUclNnK01PblhHSnZi?= =?utf-8?B?RnVxcmdOcE0xc3gwenRBbDhkUU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1d2SE11d3FtOW5sQlNxeGxxWnVCYnNzaXZOUFZhZEZEZDJLRWtFUVJT?= =?utf-8?B?bk8wRCtPZEtScVpReEl4QVA0bGNmMHBzQ2dScjcwR1RLQmN6OWZQY21SaWpo?= =?utf-8?B?eHdscDlMSERwTlJMU1V3ZHd6cTVhYjFZR2t3TUd2TnJDb1JyL3R6R3FEWnVK?= =?utf-8?B?aXBubDF6aC9NYTl3Ui8rcWloZDZMQzVNWWRhaWxhWXlwTnZxdVZBVGNRUTht?= =?utf-8?B?cDRsREJQNFFmYWlNK21IdFo3SkdRRHdsTExkU1N4bHBXdUFCZHc1Z2lIeGlh?= =?utf-8?B?Zk05NkdHa2lnL1FQMysralNuSWVacktKajZKaXRaa3A4NVBjeG9SbUdRPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ2PR12MB8830.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?ZnlQdW53cGFvK0ZKUlNNODAwd1RsdTVPYUtlMGdLMjM4K1JKQ3BnYjVRSEUz?= =?utf-8?B?Vlo2WkNRSHhWTHJJSzB3VlZodUJQSG9XZ2JnUVBZVCttdlh5cndwUnJISEpu?= =?utf-8?B?OFhJNFpxdXlyRjZrWGNYTitjSklzbnlQTGZWUVhvelNrVDY5NUNhQ1FlMjFV?= =?utf-8?B?UlZKbzNXaW9zdlF0Rlp3WEx1UGhEVzlmZ2VVOTNDMG1IYXE4ZXlVRHN5dU9M?= =?utf-8?B?aC9xWjEwQTRpdVdpV0hhSWMrRVZIdzhkZFVxMTJlbE13aU5zaXRZRlMyZWJ1?= =?utf-8?B?dTcwTStiaVhLRGdSaEdBejQ2QndJY0g5VnlGVWpqT3BIYUwrVktBNzh2T0hy?= =?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rg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 105fb692-5930-4166-84b6-08dce800a4dc X-MS-Exchange-CrossTenant-AuthSource: SJ2PR12MB8830.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2024 01:21:04.5441 (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: IboGH0f+0if1YbacpEBIR/g/z8jF8p4ygJhqga0ar4eqQWpqClfas/YQbquWbZMz X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6457 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On 10/4/2024 2:05 AM, Joshua Washington wrote: > Without memory barriers, there is no guarantee that the CPU will > actually wait until after the descriptor has been fully written before > loading descriptor data. In this case, it is possible that stale data is > read and acted on by the driver when processing TX or RX completions. > > This change adds read memory barriers just after the generation bit is > read in both the RX and the TX path to ensure that the NIC has properly > passed ownership to the driver before descriptor data is read in full. > > Note that memory barriers should not be needed after writing the RX > buffer queue/TX descriptor queue tails because rte_write32 includes an > implicit write memory barrier. > > Fixes: 4022f9999f56 ("net/gve: support basic Tx data path for DQO") > Fixes: 45da16b5b181 ("net/gve: support basic Rx data path for DQO") > Cc: junfeng.guo@intel.com > Cc: stable@dpdk.org > > Signed-off-by: Joshua Washington > Reviewed-by: Praveen Kaligineedi > Reviewed-by: Rushil Gupta > Applied to dpdk-next-net/main, thanks.