From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.46.1 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796140890; b=XAHi0C7H2GEn/0RugiW6lFdszLwb1lYfio3Xj/YIGVjqHk8w1jZ3YLG9bwK2lDM+FMvA SRDn2ITHXnaXRkGF55G4VtHzXNoCbWGnXAZm/0GCpaHQxatIfJ9pod4yXvklXVJ8qFM+a PdtAKFCVPVZ98mnZglzov8fvKdDatxOV7tX8PM0hXU/h1V0FDim1iuK8ViZIZafKRDDvT K2tikJPH2m8zbpXlMe6z0Zjxo2/HPB62TLnkxBPC3eTz8vftssKS3Jh5MEVlqusLhtqi0 Du58wiH/2ioMTBY1on0/FbNguY7XXZFuRthNtVfyPhHFOuj0TYlRhB/JG7/ytOy3bhw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796140890; h=DMARC-Filter:DKIM-Signature:Received:Received:Message-ID:Date: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-ClientProxiedBy:MIME-Version: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=7U4Q19Kk6YwHW0FWqUcjKga/hagxEHC2ZIgpyEUgiqo=; b=tPZVpp4feqjifUDSHsTkauhEMkKcqTTohHHCtI5V4nLItWgNcH/+SvstYL4rBlbLapEV pMkzgbfTMxoLuGzkApdbujLMdmsnXrBgBJbx0pYBGw/f1RxL1orUbK0fvjhW9CyiXi//r nhean/5Ea5GZ/GR/p8MFpTR+ke1MfSSFZmTGDJCSCRAXe0vcylBvKrLd0gOGhxALxdB2e MZmVGSI7qsM5jf4Lm/daHTxgwBJmgi5FBpVF6McU1RdoedWGeIPJ71/cbvuIA6FxZNn1B 9gV9V7JuuxcdoJpjUjRG0isz3GYkq7eyZjximnN7bnv7sDiZFIh3p/iyF1m7//o6H9w== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=jjS7WXgK; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.46.1 Received: from CO1PR03CU002.outbound.protection.outlook.com (mail-westus2azon11010001.outbound.protection.outlook.com [52.101.46.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D416A606A325 for ; Tue, 1 Dec 2026 16:01:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D416A606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=jjS7WXgK ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ayIoLeHOhHnd/1m9/KgffVshFuTrrl03JANa68GuCE55IA5P3RXfkF5QtRe8l6otua1ATrWlkrMxXr9croQLlFCNnxIhoeDVCmviY2SjXZkDFbyEYAefBAY2dPtSGr3HMoSWg5H0r3sfoLtdEh27G3kR7cfoHcLMyviQAdIsanBNx5gazLPkDeSqyRV3JCLbUDbxernOUK5J4DpHSk6ATPUrKfn4QW3/iksa/4LQGF3Oi0OSbZx9WRTHTI+uT3wDMSDH0iGrM93iPgLzyuKkLd3BfFRXulNubpli5H335FDdnr9cYdZRcEGRPmccKrBa6uDreFECc98OaNnzim0DUA== 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=7U4Q19Kk6YwHW0FWqUcjKga/hagxEHC2ZIgpyEUgiqo=; b=w+HURhKrd5jAbTFhqG4jup3QawNwiwvZrotcznaiZ0xPOFBlllQCZq3fNSK9TLEOYC/ubBCjeHvrbDiKIp/09HP4e2Dg2HvGR2RqmXQnt7jjHu10SToNCdpYTDSdvdZFj/9/T+uDOw5kT6eo99Rfi65QXPjDM7OmQklL92BsBX38ridIFSGuFdvcXP4maFZpSODYnLnS9bIy0TBRsCRq5GH4zaiQa+jpe5unMlfFHNCiodholVKVHB6IGJNKsCTkh9evuq4E0kgXC0xiXLNmq7Y8vbN2GKUQENXWcxrbM16J6qUnBwL8F09nWS4Npb9AOnn3e+huhYtmVTyLSG/0oQ== 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=7U4Q19Kk6YwHW0FWqUcjKga/hagxEHC2ZIgpyEUgiqo=; b=jjS7WXgKm341XgQeOjqA+vOpubybhmY4Zwg/jJUhG6QJFInnjs2JqLt7Wl+89ljsQQYYRq0F3Pu6U6cgV5c8JJHKmuhQIdbYt6B+bjaiLobAPUqmRmZgHU07SosP7PJiTLw/WMPFFef9HAege5LF4SO/SS3YMhfbdAH30AdGlHc= Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39e::8) by SA1PR12MB7294.namprd12.prod.outlook.com (2603:10b6:806:2b8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Tue, 1 Dec 2026 16:01:24 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::1f4e:98f9:2c94:8e4e]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::1f4e:98f9:2c94:8e4e%7]) with mapi id 15.21.0662.007; Tue, 1 Dec 2026 16:01:23 +0000 Message-ID: <69dac0ef-63ec-492c-8b5a-781b4bc0c4e7@amd.com> Date: Tue, 1 Dec 2026 08:01:20 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v6 0/6] ionic: FEC reporting fixes and .get_fec_stats handler To: Brett Creeley , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shannon Nelson Cc: netdev@vger.kernel.org, Simon Horman , Vadim Fedorenko , "Nikhil P. Rao" , Eric Joyner , Breno Leitao , Arun Kumar Prakash References: <20261125-ionic-get-fec-stats-v6-0-1ab49c729c00@amd.com> Content-Language: en-US From: "Creeley, Brett" In-Reply-To: <20261125-ionic-get-fec-stats-v6-0-1ab49c729c00@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR13CA0085.namprd13.prod.outlook.com (2603:10b6:a03:2c4::30) To DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39e::8) X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB5389:EE_|SA1PR12MB7294:EE_ X-MS-Office365-Filtering-Correlation-Id: fbc7249f-86c1-487b-b025-08df4fc4588c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|23010399003|22082099003|10067099003|56012099006|261026121527099003|261026140227099003|261028144727099003|261022105027099003|261021123027099003|261021121427099003|261021135927099003|261102123227099003|261009223027099003|11063799006|18002099003|6133799003; X-Microsoft-Antispam-Message-Info: Q9EAfxzt9GSD26soDMzUB/i6DtPvm3KlB3dKipvi1L0FGUxxFkL+rLGzLhRz71CdTteF7k/gUecvnnEo8wTJ1VG/YGx3KmNYOW3alMKVKIx182UNB5Kpwu0tJLAZLn5qbwnEaotj7K4qK2fkeiQptZkrhlI8CGHTGA6xrnalBwGCcfIcq/5Zq/28a6clLnSKl31xE6cu/NzGa26aV/GhkeQS7QDIz1AqP/GWq0GYwEmPEjR1FZq6yRRqlPTlnZOE/dvKoWKT28Kf8h6Z7FxCbqZFIPmiVda9XImvtRAulAwY0V7J5ZJGeDAe2+5IyZHA8zxqOx41iAgf26zSHwhycuKpVlQ/6onDr1BzAFimACFyu3KTVHAtKa1MmcGRuziJhkc/tfI+DW386bJXtqAcO7zbBRPn+rs+hHWmJG5QNnLswZTflT3z30/NHhKZlSWJTsHySZ9/UvU49y6acU3519XLAri/iiuJ0Wmf1qsgEubQp9aJDUCRREdL9mQozGsjjRAucVJwQ4PdX1jm4ogCXRXTaYMoBumHqpjt1oFtG7BeoJsGAUL+ZM75ww8ESDuy+EHrYq83vfwEyBeTRO377YZqLixXAXi7ZbTRfgUSkAm56fphl/mcxobukkiZLvQx X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB5389.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(7416014)(23010399003)(22082099003)(10067099003)(56012099006)(261026121527099003)(261026140227099003)(261028144727099003)(261022105027099003)(261021123027099003)(261021121427099003)(261021135927099003)(261102123227099003)(261009223027099003)(11063799006)(18002099003)(6133799003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TjdpMFA4UzJENnVOejVFLzRWcUZzYnFBNlloMTZVUjJzLzlTUUx2Wkt6eEJI?= =?utf-8?B?QlRVckxsd3FEVXd5SG9GaENtak9VUFpvSXd5UDkvYzJ1aUNHcHFoUjNEN1hY?= =?utf-8?B?S1lVNGp0bUMyYk1DM0ZISzhLSFFmSUE2UGRnS0tycU9vRlUxZWp0bi9QQ3Ft?= =?utf-8?B?ZUNpQ0t0V0VVeEhTWS9QQmhTT3hBNWY0cHYwMnJGZFpHTzNjZUg3am8yRlhR?= =?utf-8?B?QnNtT2FKNWFnS1ExdzlIUXFBUmUwbUtvTE1aNm5kVlZiK3UxdEFTNHhsRms0?= =?utf-8?B?WDBGOFJrV1VXWmR6Q3NqMmJ1Zjg5bVBkVmora2tSKzR0NGQwYWM3RmxUL3or?= =?utf-8?B?aThvcGtsK05pclFHYmxLbGwxYXFaODNPb3AreG5BWWNXVmtPUDFHMDdQcXBp?= =?utf-8?B?MUdhOTJyNXNwR0hGRldubTFFaE1FQzRDeUFXS08yMEJCWTdhMVd2WVg4eDlP?= =?utf-8?B?aGoyUTkycGxJbzYrMnlMR2NJRGdzM2RKakU5VlZyYUZnakFo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?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbc7249f-86c1-487b-b025-08df4fc4588c X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5389.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2026 16:01:23.1283 (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: 3khSuD2g8du7K23XocmgTKkwsxK8Zr9DDzTyRLDN8qLFmDEy+z3EoSqhs502QAADNVGym1U2HFrp7kArIO/nvg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7294 On 11/25/2026 3:22 PM, Brett Creeley wrote: > Add a .get_fec_stats ethtool handler, and fix the FEC reporting it > depends on. > > Patch 1 makes the driver write the IONIC_STAT_INVALID markers in > extra_stats, and take the ethtool -S snapshot of that block, one > counter at a time, so a reader that tests a single counter cannot see a > torn value. > > Patch 2 adds FEC off to the supported and advertised link modes. > Firmware does not report which FEC modes a port supports, so the > supported list holds every mode an ionic device can use, and firmware > rejects a request for a mode the port cannot run. > > Patches 3-5 fix ionic_get_fecparam(). fec->fec reported the constant > set of supported modes instead of the configured mode, and > fec->active_fec reported the requested mode instead of the operational > one. Patches 2, 3 and 5 have Fixes: tags, but the later patches build on > the lines they change, so they are sent to net-next with them rather > than to net. The bugs only affect what ethtool reports. > > Patch 6 adds the handler. It reports statistics only while the active > FEC mode is RS. > > The netdev AI review of v2, which Simon forwarded, asked whether the > per-bin local really guarantees a single read of each counter. It does > not, so v3 reads every counter with READ_ONCE() and drops the struct > copy. The port_info lifetime problem that the AI review raised on v1 > and v2 is fixed in net-next by commit d90d1a768b3b ("ionic: fix > port_info use-after-free on firmware recovery"). The netdev AI review > of v3, which Jakub forwarded, found that FEC off was not listed as a > supported link mode, which the new patch 2 fixes, and that patch 5 made > old firmware report forced-FEC links as FEC off, which v4 also fixes. > > The netdev AI review of v5 asked whether status.fec_type can keep a > stale value after a firmware reset brings up firmware that predates the > field. It cannot: firmware copies the whole port status block to the > host, reserved bytes included, at LIF init and on every link event, and > firmware that predates the field leaves those bytes zero. > > Claude was used while developing this series, to investigate the > review questions and to help write the code changes and commit > messages. The series was tested on AMD Pensando NICs: ethtool --show-fec > with and without statistics, the FEC link modes, and ethtool -S, before > and after PCI resets run while those queries were looping. > > --- > Changes in v6: > - rebase on net-next > - patch 1: > - take the ethtool -S snapshot of extra_stats one counter at a time > with READ_ONCE() too, and retitle the patch (netdev AI review of v5) > - patch 2: > - read config.fec_type once in ionic_get_link_ksettings() > - drop the comment that repeated the commit message > - describe the devices generically in the commit message > - patch 4: > - read config.fec_type once in ionic_get_fecparam() (netdev AI review > of v5) > - patch 5: > - drop the comment that repeated the commit message > - patches 5 and 6: > - pass the configured FEC type to ionic_active_fec_type() so that it > is read once (netdev AI review of v5) > - Link to v5: https://patch.msgid.link/20261118-ionic-get-fec-stats-v5-0-c9c0ee63df4c@amd.com > > Changes in v5: > - Patch 2: say that firmware leaves the supported FEC types in the port > identity unset (netdev AI review of v4). > - Link to v4: https://lore.kernel.org/r/20261116-ionic-get-fec-stats-v4-0-d25cae9f1e87@amd.com > > Changes in v4: > - Add patch 2, which reports FEC off as a supported link mode (netdev > AI review of v3). > - Patch 5: with autoneg off, report the configured FEC mode as active, > so firmware that predates status.fec_type no longer reports forced-FEC > links as FEC off, and add a Fixes: tag (netdev AI review of v3). > - Patch 6: gate the statistics on the same active FEC mode as patch 5. > - Patch 6: explain why an RS check is enough for the histogram (netdev > AI review of v3). > - Rebase onto current net-next. > - Link to v3: https://lore.kernel.org/r/20261104-ionic-get-fec-stats-v3-0-b261fd53d0a7@amd.com > > Changes in v3: > - Read each counter with READ_ONCE() and drop the struct copy of > extra_stats (netdev AI review of v2). > - Report statistics based on status.fec_type, the operational FEC mode, > instead of config.fec_type, matching the active FEC mode that patch 4 > reports. > - Add patches 1-4, which fix the FEC reporting the handler depends on. > Patches 1-4 are by Nikhil, who is also a Co-developed-by on patch 5. > - Drop Vadim's Reviewed-by from v1, since the code has changed. > - Rebase onto current net-next. > - Link to v2: https://lore.kernel.org/r/20260814-ionic-get-fec-stats-v2-1-13f0e7d2e702@amd.com > > Changes in v2: > - Latch each histogram bin into a local before testing it against > IONIC_STAT_INVALID, so the sentinel check and the store cannot be > folded into two separate reads of the firmware-updated DMA buffer. > - Explain in the commit message why the RS FEC check gates every > reported counter rather than just the histogram: they all come from > the RS decoder, including fec_corrected_bits_total despite its name. > - Rebased onto current net-next. > - Link to v1: https://lore.kernel.org/r/20260731214021.15279-1-eric.joyner@amd.com > > --- > Eric Joyner (2): > ionic: report FEC off as a supported link mode > ionic: Add .get_fec_stats ethtool handler > > Nikhil P. Rao (4): > ionic: access the extra_stats counters one at a time > ionic: report the configured FEC mode in ethtool_fecparam.fec > ionic: map the FEC type through a helper in ionic_get_fecparam() > ionic: report the operational FEC mode from ethtool --show-fec > > .../net/ethernet/pensando/ionic/ionic_ethtool.c | 139 ++++++++++++++++++--- > drivers/net/ethernet/pensando/ionic/ionic_main.c | 8 +- > drivers/net/ethernet/pensando/ionic/ionic_stats.c | 8 +- > drivers/net/ethernet/pensando/ionic/ionic_stats.h | 2 + > 4 files changed, 140 insertions(+), 17 deletions(-) > --- > base-commit: e20f88c4f08bc9dba09c48ddc9806015f79fb20b > change-id: 20260814-ionic-get-fec-stats-990736964908 > > Best regards, > -- > Brett Creeley pw-bot: cr >