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 AA1FE46E7A for ; Sat, 6 Sep 2025 06:00:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7832740156; Sat, 6 Sep 2025 06:00:03 +0200 (CEST) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mails.dpdk.org (Postfix) with ESMTP id ADC1440156 for ; Sat, 6 Sep 2025 06:00:02 +0200 (CEST) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-45ddc7d5731so4817065e9.1 for ; Fri, 05 Sep 2025 21:00:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1757131202; x=1757736002; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=fOQ+W1M9v+oawoGkZHZxe+Fl3iQkx0uZTwAv/ocxVnE=; b=IMX1qU5iRjFZkueuX2wr4pIZcrNtKwQd3GCIOSBcVnGIZmNXoJe/weB+Ae3Da4HedB EkeYlXmPcpkYsQa8lbfGmk9u5eLooioTaFrkPJ1ALK8UKWWoLE6Jg2DO0d3mDAiXYBIh b3kS2V/36yCFSlOA+/vpRMhX+pwIKxEO/Z9uo1A6hS18QExAek0aHS470A2ML5iHq4qg y1sbERR2vrJgKwwb8e2aSKB/tC/WPa13sVzik5asZb3mtuqtpASCYJ25AvBzQ4ohxjy2 uka4BGVP66HQ1nfHN9BUP8u0rFrVXTIX3BZdok9mWGJCjWg3D7HQ0m6cQgG2JXORWr5S nx6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757131202; x=1757736002; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fOQ+W1M9v+oawoGkZHZxe+Fl3iQkx0uZTwAv/ocxVnE=; b=MMqxRlfL310+NndC+7Qxvx0ExQqDfuo6DR+lORDZKhpWVr/C1l3MRIJZ0wOgqmHwIm jiKbCqWSeb7O3RQwHhOreQfFuLNG5jKig0hH2q45Hb5qIjTgJf4tM0loulU1vnjSy6xX TMVO4KTGucEbtarelUbu1JgOagfdDsDribJkasY5wch474dPj7MeMUDGbzHR7zgdi0CR MWyb59A72p0OeCtjIxHHw1OvpKnMKWcQLFlAwOxOOB8fw8QUwaaA57OwyfezXMwbDlqY X3dmep5w6NJcALfgem2lWFp8gvVIiqg+eEmTDsD9V4Y2I/3FaUarldkacEmg1YO2IdsC 8T9g== X-Forwarded-Encrypted: i=1; AJvYcCW+AyWNuhn9pjCEAdGi6gTW9U4pin04wXBMJ577+1r1G80vaNiDnlBx+Ood9lXxZq+UITYoqdk=@dpdk.org X-Gm-Message-State: AOJu0YxLpixP6SC+FyLQo2kL37TFosp13MewvC/n4mL2x1ssXBRTFQTp Z6pxDPCoDRwpCC+dEaoLRXfHKjOu14sxUFL+cgJE4TJ3RHRVqqD2kHkxcNjfyBUNksQ= X-Gm-Gg: ASbGncuROtVhK2zMp77WJPSRHa88A9JZOOUbGAGxtTesQIUUPkKI7K7EyVp36WpnPn3 fKvjxnmt1rgTh00Fbg3h4DfkP/Xz08wfiYApDLNscGqqNj0jS6uotcLRGCerzqk3Himo80SdWfL W1bqk641NNr1LeTb1d49OfjQihlIs0sLMcilqZcx+agOGmW6Lp7wvI6FZ3hve1O8aWJE08Z8ee4 Vqw8nHvK/Kag1ryVIWZmduJsKZXI7hknUdtcu0RHKWY8UEMJ1ckkL0rd/IGTNBCS/Rl1DGhM+J3 q4tUHre2UXN0Mr0jpip7eezJOWlAdTWJraG5KyISdA1wqLQKcLm43yt0D/35wqRbV7CftIa74HX OQfXBCLqjkEfMc9pZgp8YtMUHM7E0ll6pepaJDX4foU7+gWqmOx8QpTx4O7hXd5sM9QMtocvRFl x4V3yoYlfVMQ== X-Google-Smtp-Source: AGHT+IG2rzzTObb0MR/qbAyQWM2W1s/3C7TUc1R+l4p1OAt/kdgau2cHbx0gi42s3XriulTWrXv/DQ== X-Received: by 2002:a05:600c:548a:b0:45d:db33:fa0a with SMTP id 5b1f17b1804b1-45dddee3772mr7107925e9.33.1757131201897; Fri, 05 Sep 2025 21:00:01 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45ddb779eb6sm37072545e9.8.2025.09.05.20.59.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Sep 2025 21:00:01 -0700 (PDT) Date: Fri, 5 Sep 2025 20:59:55 -0700 From: Stephen Hemminger To: Thierry Herbelot Cc: dev@dpdk.org, Thomas Monjalon , Devendra Singh Rawat , Alok Prasad , Jerin Jacob , Olivier Matz , Edwin Brossette , stable@dpdk.org Subject: Re: [PATCH] net/qede: reduce the optimization level Message-ID: <20250905205955.74b15b75@hermes.local> In-Reply-To: <20250903113252.2496087-1-thierry.herbelot@6wind.com> References: <20250903113252.2496087-1-thierry.herbelot@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Wed, 3 Sep 2025 13:32:52 +0200 Thierry Herbelot wrote: > The qede PMD stopped working under Ubuntu-24.04 (using gcc-13) when > compiled with -O3 (default level for all DPDK code). A bug is opened > for this issue (see Link). > > A first workaround is to just disable all optimizations (-O0), which > restores packet Rx with Qlogic NICs. However, the performance impact > is not acceptable (around 50% drop). > > A better compromise is to use -O1 for the qede PMD: > - there is some perf impact, > - but the PMD is working as expected (packets are correctly received). > > When compiling with both -O2 and -O3 and gcc-13, there is no packet > reception when using the qede PMD. The root cause could be missing > 'volatile' keywords or missing memory barriers in the qede PMD code. > > Link: https://bugs.dpdk.org/show_bug.cgi?id=1379 > Signed-off-by: Thierry Herbelot Since GCC 14 and 15 are available do they fix the problem? If so, the the hack should be limited to Gcc 13 and with more complete comment.