Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1684436rdb; Thu, 25 Jan 2024 03:10:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhW1HgSuYqCYCKhOrmLm5+nY+IIkxgOd3BdAWMz9ZgCjYrE/ZEqI5A5mu7MK2qc79bv2t2 X-Received: by 2002:aa7:d35a:0:b0:55a:5187:a6b8 with SMTP id m26-20020aa7d35a000000b0055a5187a6b8mr424961edr.81.1706181038037; Thu, 25 Jan 2024 03:10:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706181038; cv=pass; d=google.com; s=arc-20160816; b=d+is56SOUKiPRyeEkwlwk34AtquLLA/mVdLZ+QavpAM4lGaAl6Zmbd66SB4vJ1yBMA DgNQ5nLLJG4fYg2QJTYS5ApOYjn4SpnU7zzdbbgSTlLsoEfvUsAp6Kw+jn2LY/7VSH19 kRz1fC0Q0tkQoTLfgy5TUhCXsC/0Rw6pRNmgJ0x6wXHzAlGbbGnOdDCcqqQooZjWk6P6 Dxfwger9IBBtY4We7MzOQdx9m9tudXGOAycNnR5qnuu89Z0pOajtlS7X7xsbgvZtNF6J +U1BwnczZNdGTqb9/1aXnnp8pqOtbMFCg8DsAvHHcPiAz8s/nAgWIwmaF2DDIWh+O1Fp 03IQ== 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=miuHCVwgH0ReGM1PaYlhcfq7/djqKFtBuYNwdTBB2rs=; fh=lv/g0Hf3qEFDwax+SJRko0O9PXX68+qTEhowsppQrYU=; b=ynHTmeisLIJmx+BkZYXgjAVaxu2dBaUSOXNZYUD+jZyykGbSGxS/dfLZ7xtKt0y52h SCnEzVt0tCArAk6sORjkNQxgs7CDCOHJLXc48QUBKSaPIVik479Db2CXS2X+IxV2+nsG ew/kNrKdqCOpRT3+Niow/gd4ZiZmYeGzmgq4bvjQxlcgnj8ErxSf5q8Oe6FCjnYRZiet 39ukqN/lYpPRi1HfpCxcyvSiLN6QZjKcorPpqJ1cwUiSFvNYX3hZ/uCQxY/zHiFgye2W wC6U2vECtQQPl/89Tg6nLP2LXBK127PONZEQr9VZnp2O1iVPJfIF1BALQSZQrlN8W8w1 fw3g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=O7WF2Ibo; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-38469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38469-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f3-20020a056402194300b0055cf5439a0asi677040edz.391.2024.01.25.03.10.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 03:10:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=O7WF2Ibo; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-38469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38469-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id C93181F2475E for ; Thu, 25 Jan 2024 11:10:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3D8B5A0FD; Thu, 25 Jan 2024 11:01:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="O7WF2Ibo" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 484591C16; Thu, 25 Jan 2024 11:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706180513; cv=none; b=in5w3c6T9tDRzQ6XinlIUOCZfz5hG0f/teTfOlcmqSQ/y7vLUUXZGoBpPUR4LTjAjfkBh+POGLd1EhRbmH1wOTXJD8eetl559kkTe4rjtvwW37dwCiuSnCB/8lTZFttjoUvKGObgiNsMEqkH5wWJLDtfI5Op5lJNG2sxkFrhfyw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706180513; c=relaxed/simple; bh=CZvtojiC0XEHWqTBwc7RTmZP9uSs74MPCzz4IDlB2Xw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iAZxMiJhCdxNj82cRWnSk/5yIqAA+gMG2Nxxd1uhFKLDy+hq63ZvZAoklSsxsHm4GhWY1KV/j4MEkDis3JZZxVg34Hk48jwGb4a1Ie6NwIdrQfxEEVlxAXPH8Yg47HY4TEEvSdCVO68ZHvynHdEwx7M5YmtllmO/HS49xQ+6/vo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=O7WF2Ibo; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5100fd7f71dso2386956e87.1; Thu, 25 Jan 2024 03:01:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706180510; x=1706785310; 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=miuHCVwgH0ReGM1PaYlhcfq7/djqKFtBuYNwdTBB2rs=; b=O7WF2IboPkiL62qQinMC6InYGnmFuC7YfXkbagmlOav0nOg571nO+d0/d/Z7nfJMvB pS+o8WKF4z/IM5RqQIQ7vY+bmSPxVkwnsgiP7g3C+HrxfPxChb92EErygT3wswTFANSc Kf9NDTHOMnbiN2u3PKhwxm/No1/BGVx/ycFfTu+yqAX+1kOp9eifjUoszlVaS+SAIOyS CUx9+ZfDFIxeHiuzNL659i5CfS8KXh9+44rOA8V9RTsUPOHJSYJmSyjFhcg6V8gImZM7 JRQ87+BY9cpDErYFW387suMC2yqN+YGD4r7xTLinj+V+I5UFeV1EaEDoEbVAwcxMhOLQ 4wpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706180510; x=1706785310; 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=miuHCVwgH0ReGM1PaYlhcfq7/djqKFtBuYNwdTBB2rs=; b=pHARuzsYnNdj3mSJVsfHjQhpIbLGwxkhD3as3NQ4K4dWteMQ6KNefd3bcqeYhECXCl 059KkhQSdQzuwmRFGzPLhgUmT8e9r0tdttcfG8fzZYE7uqhLMqG9gO7KTR+YmwCzQaxw PIe4lIg95TUwdtbwytX10rOd5mdi4MBXXlf9B/DsdnJbcj9rZLJ54l+cGUQE3PNOkjhm yJQB+fG2cGDcTSUqQW+xZ2pPJpI/zTZqCfITKfDSZ86ujIsuggJASFGfhZ0rrDPKeqCZ AexquqHThLqc9b2VZGC9kyKqSCGHT0ft+yA8ePY5xJPMamraRK0N9qs6hSWuIcYDdY2w zdDg== X-Gm-Message-State: AOJu0Yy/0MsjMs+2Xtsa0HFNRkkq+6cJS0Fu7hWIaS8FkgK6T4xy4DU/ dcTxhC0ry1ib0XBWBaqj6mlWeSvyAk9OFrglRyqwlX8coIQ7zTUs X-Received: by 2002:ac2:57c5:0:b0:50e:6317:54ab with SMTP id k5-20020ac257c5000000b0050e631754abmr324729lfo.42.1706180509935; Thu, 25 Jan 2024 03:01:49 -0800 (PST) Received: from mobilestation ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id d14-20020a194f0e000000b0051006813733sm766441lfb.86.2024.01.25.03.01.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 03:01:49 -0800 (PST) Date: Thu, 25 Jan 2024 14:01:46 +0300 From: Serge Semin To: Paolo Abeni Cc: Furong Xu <0x1207@gmail.com>, "David S. Miller" , Alexandre Torgue , Jose Abreu , Eric Dumazet , Jakub Kicinski , Maxime Coquelin , Joao Pinto , Simon Horman , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, xfr@outlook.com, rock.xu@nio.com Subject: Re: [PATCH net] net: stmmac: xgmac: fix safety error descriptions Message-ID: <3aagjpld4v7u4cfj3lge5rg6v6ro3ehnstjz3jfculx3vdpbvd@4y3hw7v4idhp> References: <20240123085037.939471-1-0x1207@gmail.com> <20240125103454.0000312a@gmail.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: On Thu, Jan 25, 2024 at 11:09:06AM +0100, Paolo Abeni wrote: > On Thu, 2024-01-25 at 10:34 +0800, Furong Xu wrote: > > On Wed, 24 Jan 2024 17:25:27 +0300 > > Serge Semin wrote: > > > > > On Tue, Jan 23, 2024 at 04:50:37PM +0800, Furong Xu wrote: > > > > Commit 56e58d6c8a56 ("net: stmmac: Implement Safety Features in > > > > XGMAC core") prints safety error descriptions when safety error assert, > > > > but missed some special errors, and mixed correctable errors and > > > > uncorrectable errors together. > > > > This patch complete the error code list and print the type of errors. > > > > > > The XGMAC ECC Safety code has likely been just copied from the DW GMAC > > > v5 (DW QoS Eth) part. So this change is partly relevant to that code too. I > > > can't confirm that the special errors support is relevant to the DW > > > QoS Eth too (it likely is though), so what about splitting this patch > > > up into two: > > > 1. Elaborate the errors description for DW GMAC v5 and DW XGMAC. > > > 2. Add new ECC safety errors support. > > > ? > > > > > > On the other hand if we were sure that both DW QoS Eth and XGMAC > > > safety features implementation match the ideal solution would be to > > > refactor out the common code into a dedicated module. > > > > > > -Serge(y) > > > > > > > Checked XGMAC Version 3.20a and DW QoS Eth Version 5.20a, the safety error > > code definitions are not identical at all, they do have some differences, > > about more than 20 bits of status register are different. > > I think we should just leave them in individual implementations. > > @Serge: given the above, would you still advice for splitting this > patch into 2? Preliminary I would still in insist on splitting up. I'll double check the patch and the Safety feature implementations in both devices and give more detailed response to Furong in an hour or so. -Serge(y) > > Thanks, > > Paolo >