Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp249350rdb; Thu, 22 Feb 2024 02:28:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXYvApNc9VTQEW3c9YpG+l01ZWd+aHflEoqXA9WfGoer76YYYcqMuEJKV8PIe8cpAhOxCe5YL5kaAfFgFThKaScnxJvgoZAdTdYV0gS9A== X-Google-Smtp-Source: AGHT+IEIuCZnrwnrwvJQKUoAbGH+XAcwG4hSmFXOeZe6nCDCgxYLutoQJst3+6FFG0kcC8xzdKKi X-Received: by 2002:a05:622a:8b:b0:42e:563:6b4a with SMTP id o11-20020a05622a008b00b0042e05636b4amr16720579qtw.9.1708597721473; Thu, 22 Feb 2024 02:28:41 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k9-20020ac84749000000b0042e4c1067d7si916538qtp.584.2024.02.22.02.28.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 02:28:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76332-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b=rzNScH8p; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-76332-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76332-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 30E091C23DC8 for ; Thu, 22 Feb 2024 10:28:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 807923EA76; Thu, 22 Feb 2024 10:28:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b="rzNScH8p" Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2081.outbound.protection.outlook.com [40.107.6.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB3C03D97D; Thu, 22 Feb 2024 10:28:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.81 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708597696; cv=fail; b=avOsEo4rdJqjfzyH3S2bcwvVUifwCl0FMlvKRzQyiiSXAkpOXsIEJ0ocoAtQaiiA/tDOpgy1tYdkZdQj8+SfkWNxyiuQ9RtzPFJS2/qPHAtmdnF5oa1ZYh3AoSIvKnKg8pAHgg0BD4QylyPr01Fes9IEMr3GYEI63OdAvueWJx0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708597696; c=relaxed/simple; bh=ARsgwNld9GGz6EvOn2VXTdiqup3W+xaIyZ+tME+rYx4=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BylCxhvQnRCx1PS9Sw4t+9cB8ym690J1ietRDe87fFos5oKSbPAyRNOensC7NYcqxEVMqqnqNnaigKV2nSXOxG/rMtZv7DcTaUnja3F1S8TV/TqJzPGbWUH8LItAQzJFqYNLHitvo15eHnwDzrl1T9ZkttjcmBFGGT7qcIz3zIY= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=axis.com; spf=pass smtp.mailfrom=axis.com; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b=rzNScH8p; arc=fail smtp.client-ip=40.107.6.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=axis.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oCt9BD+eOacpE5XOfIoCogDG4j1GalETRo0Y8eTE+csfV4SNj0m1C0kjjFrO3Mqsu7NLxbMApL44TFWpESAeW9/U1Cpn+Yf0Qjz2jj3Viu4ob+/Vn0LusPVLg01BitWuy+KCFQLMRnFT+h28RtsXbOoNw1VXl5BItE2QgVqDyZ4c1YflMTcvXXKFeue+13nreMn2a/EEhLB/+GNZsr2PS3/DFSFRi0wVRu5vkt+cFxnNtvy+AOycFzXy9s/3Tk5RXJ+i7UzNIPktn28J2qTbu5Rkg1v3s///7SKAVv9kfW+cCVTx0VJf0TYG/EqxyW1OkeuBu0/u6k3aurT7BCoZHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=orMnOBxdCCwGfclyetHsTbVp8ku7B2oHijIo8C7dC30=; b=VtCzTiBb2iYd/yH6mg4kRylw0Q7mIetr+boJnEaGyVOxwR8xcDZJzFzUAZIl0jN40O2cwmZb69kf+G3oQY+7m7vJGC7BbWizctso2sFGA6gX6+5SwqgNGuaEIefONkcWAlcRN+l6U9hIUBhObDxZH40OqGbESIe74zv0kbdSf5zs2AMQT1g5Dup6M4M/VTIoILiMWb8mbNVBjdMfO50TZEEpVOjVb/GU1aXGzIsRm9HerjheyOPYbW6VlKijdPcWVtvT7j+oYzcePEnb0DN6UmT/6ohY60HVaIC1YMonp+gUrBxoFN6hI/BeCstETrVoaXZLLBlCtCp3QVqQ94s38Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 195.60.68.100) smtp.rcpttodomain=davemloft.net smtp.mailfrom=axis.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=orMnOBxdCCwGfclyetHsTbVp8ku7B2oHijIo8C7dC30=; b=rzNScH8pLlaZm43GpvVqZQtoLxp7U0M2a43MKLw+/7Y+VIU0qFfUXCXtTS209ueVopbSTMhdj4s8+eXXpkZ5U6BttcXlfO7GgstRlimu1wpfygDLX4l+ekV8HgYsZMsx/iPocxlIn6PPuWKG9J33X/uPGt1RCx3fKbJa4P+Z2PU= Received: from AS9PR06CA0340.eurprd06.prod.outlook.com (2603:10a6:20b:466::35) by VI1PR02MB6477.eurprd02.prod.outlook.com (2603:10a6:800:193::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.38; Thu, 22 Feb 2024 10:28:10 +0000 Received: from AMS0EPF0000019E.eurprd05.prod.outlook.com (2603:10a6:20b:466:cafe::80) by AS9PR06CA0340.outlook.office365.com (2603:10a6:20b:466::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.41 via Frontend Transport; Thu, 22 Feb 2024 10:28:10 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=axis.com; Received-SPF: Fail (protection.outlook.com: domain of axis.com does not designate 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; Received: from mail.axis.com (195.60.68.100) by AMS0EPF0000019E.mail.protection.outlook.com (10.167.16.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7292.25 via Frontend Transport; Thu, 22 Feb 2024 10:28:09 +0000 Received: from SE-MAILARCH01W.axis.com (10.20.40.15) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 22 Feb 2024 11:28:09 +0100 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAILARCH01W.axis.com (10.20.40.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 22 Feb 2024 11:28:08 +0100 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Thu, 22 Feb 2024 11:28:08 +0100 Received: from pc36611-1939.se.axis.com (pc36611-1939.se.axis.com [10.88.125.175]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id B6CBA1470C; Thu, 22 Feb 2024 11:28:08 +0100 (CET) Received: by pc36611-1939.se.axis.com (Postfix, from userid 363) id DA139628F9; Thu, 22 Feb 2024 11:28:08 +0100 (CET) Date: Thu, 22 Feb 2024 11:28:08 +0100 From: Jesper Nilsson To: Paolo Abeni CC: Jesper Nilsson , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , "Jakub Kicinski" , Maxime Coquelin , , , , , Subject: Re: [PATCH v2] net: stmmac: mmc_core: Drop interrupt registers from stats Message-ID: <20240222102808.GY22484@axis.com> References: <20240220-stmmac_stats-v2-1-0a78863bec70@axis.com> <55c1527f778ada6458dfc3d626d36e5367886dbb.camel@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <55c1527f778ada6458dfc3d626d36e5367886dbb.camel@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS0EPF0000019E:EE_|VI1PR02MB6477:EE_ X-MS-Office365-Filtering-Correlation-Id: 0b7da7ef-c060-4b4f-60b9-08dc3390f737 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4Ms3e+RuwyAhj2oPuEHoJs3lkpijt/Jgw+F7b1o9iYpjsDlywCapeMUs16fEmPKYBhV2OkQAADaab4yPRjdA64tGAV9NgZ2xOXC5c5+QY5FvKq6jo4ZJ42P83CfRBntMiQj+6jAnhlgw/yoPp3OZZyWps3MwyWL6AR3bew/Z6oilEl6HssT987rxIZ1Zhk1GWSIHxpJMPUZMAg2uFSPP9pk3t5G5tIcJ84P8CynNga9Qft+qNRyIubIbrqWb6yO2cEKa9swt7vCgjsOFnqT+Jnldc/kdeNXD0yEbQjO7eT6GjGy1Nlk5JC9EdzyY7WhK+dMD4r8pKt+tdcrJNuRa4opChHD49aw37Z+LbBXl64Qtf0LA/dkDMtxaIUCplawbZXM8bwsTfNQgFIZlHAoYkToXWenMSGTuAD0HhNn2u6okvVU9Y7O6XfqTjeVfppWMpy/e6mJ8Ep0197vadEhQ+ciB82kQuBZJ/nm8eg6tgvbM68Mx5BI2EV7xjmOnPDjpvqnQpnCiHin/YVEpPN17rsPYvd7wR0OYSEu1ozb4JXFgVhp60cKuSUG4jtr17YZ1Sb8r6V+d6Polw54Nd18GHB8dnTvg87ZT26BfxZRyUjevhmL9Xf15S9lLHz3vZxgVxa4Gi/H/OCykdwyE9jhvHKWILHwSmRcN17TkB3oGOlU= X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(36860700004)(46966006)(40470700004);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2024 10:28:09.5051 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0b7da7ef-c060-4b4f-60b9-08dc3390f737 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF0000019E.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR02MB6477 On Thu, Feb 22, 2024 at 10:38:53AM +0100, Paolo Abeni wrote: > On Tue, 2024-02-20 at 13:00 +0100, Jesper Nilsson wrote: > > The MMC IPC interrupt status and interrupt mask registers are > > of little use as Ethernet statistics, but incrementing counters > > based on the current interrupt and interrupt mask registers > > makes them actively misleading. > > > > For example, if the interrupt mask is set to 0x08420842, > > the current code will increment by that amount each iteration, > > leading to the following sequence of nonsense: > > > > mmc_rx_ipc_intr_mask: 969816526 > > mmc_rx_ipc_intr_mask: 1108361744 > > > > These registers have been included in the Ethernet statistics > > since the first version of MMC back in 2011 (commit 1c901a46d57). > > That commit also mentions the MMC interrupts as > > "something to add later (if actually useful)". > > > > If the registers are actually useful, they should probably > > be part of the Ethernet register dump instead of statistics, > > but for now, drop the counters for mmc_rx_ipc_intr and > > mmc_rx_ipc_intr_mask completely. > > > > Signed-off-by: Jesper Nilsson > > It looks like this could target the 'net' tree. Anyway it does not > apply cleanly to 'net' nor 'net-next'. Could you please rebase && > repost, including Serge's tags and explicitly setting the target tree > into the subj prefix? Yeah, will do. My v1 patch applied cleanly to net-next, but I didn't check the v2. My bad. > Thanks! > > Paolo /^JN - Jesper Nilsson -- Jesper Nilsson -- jesper.nilsson@axis.com