From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 BCEAA1CFA8 for ; Mon, 26 Feb 2024 09:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708939344; cv=none; b=Ul6ohwfeNVh5K5kv9LNVVQOBQqdkMeVX0vfmavu9MycEhGjjYxeXg7TZeHN9LMUi/9doQfNsJfhs7QMf/VxF/88ESV4lcCPlpXuegAVGd5qhigr4pws+twCcTEGOtflFpoRcsecbAWgLmBdmRjSSO+KI4GaQSLTBJq/dh/kHbAQ= 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.47 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 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: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-3392b12dd21so2403783f8f.0 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=jb0mGDHs9fnKfMEEYfqp/bmE1+O8n/F4VPQD8OWiHNikIK/Unc4HqCM0ooM3nYGvqG M6no11+syEw2KD+i5EsNd1gLjNi1wovltp9SqYAHFs7HdTBQZrGJFZrICOdZLop4J8n4 O8TEqMQeemY4j0UAJdejXQAatCe5+C85SPykjFY9TePPEedOMwNu1GgP4v52YPWSUT7S eTU7/ENSB2mrHroyED3ZVAlxisLQcO3edvpj5nUuXCP2mWNU93BiznhDuk/m58AYHmRi r+Gwrmo5WoR7tdBiJIEhFueTA6oralz0lqtSNZDpv1HZ30WKLRS7iidYcjOUpCex1pKB /0UA== X-Forwarded-Encrypted: i=1; AJvYcCWiYVNGJL+o8cmj8q9Iez/z282dXwIcVU9WPZT9xbYzopUVU0aRRaOd8A/a21ChddCPN9dWdd48dGLeHTKBz7daMYPeQbmO X-Gm-Message-State: AOJu0Yz4Zo5+q7EO5Em8GZvWGmcgI3izRTyH3IyfajHRIbstvDvrviqZ HLdnNdFj9hEPjLIfZgfydvW9+aHlQ3B6jGUFwqw5q5KonY7Zmg+95NTCzKh9088= X-Google-Smtp-Source: AGHT+IFhByc7Z/s+hrcaeMhRiOLNXEQPUqLbBOTkrI67qidhCeOFDFWtzdBsTN1m+Ij8d6SU/mQ3XA== 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: netdev@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...