Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1202797rbb; Mon, 26 Feb 2024 01:54:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUIXK38hepIKcey1NbJmR0TTzcMm1nMtTmnkU7GHHTLhBe2bRnX5oA4Z6j3rUQNnBOyeR1Ft+nlU4D/Q0jaIRCbgxJQIAVsHU1BL4MziQ== X-Google-Smtp-Source: AGHT+IHbnPgoTzpBFQiueewyRX7vs7mmdEsmxAIhKCxCLZsWRQidt0Amu3QapE0vcdqRdazSBIGA X-Received: by 2002:a17:906:a3cc:b0:a43:3d07:803a with SMTP id ca12-20020a170906a3cc00b00a433d07803amr1811337ejb.54.1708941251325; Mon, 26 Feb 2024 01:54:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708941251; cv=pass; d=google.com; s=arc-20160816; b=iLRhVJ2qoMg0z1+MIwZMHgeIqHRc6XDgRVaIZhtPVgygtBWslOUcRzEyQhdA9syxjD /UamVDvLoDV4HCEor3YBc0SXwQxJYo4o6BEsjtZYSr75JAI9Af0nUAZY0XEHpifnAjke O3dhvAEKgZTZomf5e8X2wui44Q7khCIbbpS3pQPD9tzH0uHQoiurjxg+LHfLUSo6GQwR 9TA0ZYhPaz7uc44qa3TevRW0U3l1Ma1Ed4NNXvb5hLnVXRia8PwB9hfxzj4ZBJJWY56O VgwKKEdWrkYSwp0SlxjTDu+qebDFmcuqw7HUtQasnporbuDDYBgoLTX3PT3kS3pKgiE8 KvMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=j8XfaiFpFxA90a4LK42YXfNdmNz9AouX/NgcsYVPG08=; fh=B0/TmdzubqiUsbskXrTFVxg5UIPP3naaaxrOG+aNJjk=; b=NxyukUQ2rDYvsQg60vPXIHrxguHEmGbOdjvCx6tyXHuTjGi9bzSw5LrzPZ1uLPb/e3 QgEuCHDowyeUYU4u/5Q+8vMW5ru3FofdnSdBF68z4fiPEKbf/0m2IJGs3O13l51bK78b FdOuwV0kWevgx5v/t3JTWfBSLS3Ko1Uoa8QbLcAeRFhZ48+6resq8SW9qisImK1jetwb Tol/kVW5MYVHKYj3rHRTGjfCKybyZZP1TN5JsAishB/dohIEAaKRBga3CgVm23yio+9/ RljALlq0lKS3xNBd/cBdazPcwiSyIOFEvkHQXWt48RKNeYeWZvQRYUGjDxRjnGnTeoKa csdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=1hX8+4ka; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-81039-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81039-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t1-20020a170906a10100b00a4301d0de14si1626496ejy.901.2024.02.26.01.54.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 01:54:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81039-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=1hX8+4ka; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-81039-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81039-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0EA4A1F266CD for ; Mon, 26 Feb 2024 09:54:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4611F4C63F; Mon, 26 Feb 2024 09:22:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b="1hX8+4ka" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C74A81D69E for ; Mon, 26 Feb 2024 09:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708939344; cv=none; b=I1dp8Q6zJ0vSkgF6A+GEIUZVe4GqSFPjdvsl6B+OHIHMRw55OzgltnovGT6AFwAPU6yBG5b7HlhfHgBsPpelBWlppgOL6RMRSudohuIuE4exh86lp3J4ISX6AMGYEPd21v7hNstLijyQd/WevQeoiGc2hZ+HGigQ35kTyTUOxNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708939344; c=relaxed/simple; bh=j8XfaiFpFxA90a4LK42YXfNdmNz9AouX/NgcsYVPG08=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bDPW+qRw0M09PgduXStMd1Oq4GS5OqqzsCg+xq24vM81C7HYmhwo6ruE1jucZ1MMxmFbvViNbB+xWl1p0/kOJji/663jdEGj6uOVFC0DLzIpS2cph99D1cpqJC/gqu/uLlJGC+rDq+q/QWl3/Gj4kLBHCBrmUgXHic2JMK2Nb94= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us; spf=none smtp.mailfrom=resnulli.us; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b=1hX8+4ka; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=resnulli.us Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-33d066f8239so2083044f8f.1 for ; Mon, 26 Feb 2024 01:22:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1708939341; x=1709544141; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=j8XfaiFpFxA90a4LK42YXfNdmNz9AouX/NgcsYVPG08=; b=1hX8+4ka2IXadTkHka4Jpdk+G2QU4NO3kxWy6hOWpJfarp0bgruourRNnGQ9SZ6UuM 00TY/PhF1f3X5yi5oDsC/Xk6ARAV6WKqtvTATOM89CJeZfN0DpGCNBMzHpxMBkDE/dWV UOg6zfckMBw4FoGBY2eM1B7FE3MAxBKnFICjV2aqMlzt4ZZ2QUk5JNAYgNwdB5tYBoO4 6x6yrPg3puiAo0QKR14OEEIfSAZrzhu4wt+Wc2DnmR9MCl4e213MnIG4zlzOS+S9s59y oKI0ua4TFTeRVxh7RVLTd3nmXcNPMI4dJvJp9IGVzAQFX9iwauzoII3lep/5gt9I8Mch O99g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708939341; x=1709544141; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=j8XfaiFpFxA90a4LK42YXfNdmNz9AouX/NgcsYVPG08=; b=wSGpGQ73Am53QEpuGSCL+0M0tvAdgJkbqfNfdq4F6BwImLrld5lGrOakM+dMXjkbkI /CpFigedjBchlcu9644w68nmTbYGPcTrYvv/yeRDzgDLd8MYgk3AN0QjOYvRUnSET0qB tMkpCkxRR9HmU2dxsgLERe3W0cAGPUzYpW4Zpt7wNNwZ9SRH+mIhYS4wCbGyVbt8DXfX fPNTsFWArW+Jowi30JC3uZw9VevcgGEG8tYDNHJyQ0Y3yJjvvzW5J4nRXDheVuNUkx33 +OikB2gr+v4TVeLC7BD/TSxhddjjDkupAWDXmVptaELE7Sx0yVuW81AuX39LdAD3PRJC FNqg== X-Forwarded-Encrypted: i=1; AJvYcCUh/i/pyo5I6reCz6nu05AmQczwbxO9tmgcKnpo/lfW+T4R60Ml4u/yYnmr6eM9BECniaE1tZfIqsOBlD2g4u9sZvAmbT7XiIHDtKUw X-Gm-Message-State: AOJu0YzpJq5nr2X5L7rNytMXy+BWM/2JOg3yHPp2tztLnFEDovyI7pTt wX/4cR2ZeQVf3h1l0QCZnHRevHLoe+MXBfYNkEL4bh+I1KW6Q1ZqajZ1/Wdmavg= X-Received: by 2002:adf:e40f:0:b0:33d:a185:17ec with SMTP id g15-20020adfe40f000000b0033da18517ecmr4122739wrm.4.1708939341017; Mon, 26 Feb 2024 01:22:21 -0800 (PST) Received: from localhost ([86.61.181.4]) by smtp.gmail.com with ESMTPSA id e11-20020adfe7cb000000b0033d071c0477sm7605769wrn.59.2024.02.26.01.22.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 01:22:20 -0800 (PST) Date: Mon, 26 Feb 2024 10:22:19 +0100 From: Jiri Pirko To: Jesper Nilsson Cc: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@axis.com, Serge Semin Subject: Re: [PATCH net-next v3] net: stmmac: mmc_core: Drop interrupt registers from stats Message-ID: References: <20240223-stmmac_stats-v3-1-5d483c2a071a@axis.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: <20240223-stmmac_stats-v3-1-5d483c2a071a@axis.com> Fri, Feb 23, 2024 at 09:37:01PM CET, jesper.nilsson@axis.com 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. > >Reviewed-by: Serge Semin >Signed-off-by: Jesper Nilsson Reviewed-by: Jiri Pirko [...] >--- >base-commit: a08689109c5989acdc5c320de8e45324f6cfa791 >change-id: 20240216-stmmac_stats-e3561d460d0e Not sure what this is good for...