Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1571270rdb; Mon, 2 Oct 2023 14:00:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9t5JGa3dbRv+hrPFx0HxI12sid9M8PHVje/9NQLf9nja9dwF3520u8ZK9SeAfQIm4bwFo X-Received: by 2002:a17:90a:ea92:b0:279:19b7:9be7 with SMTP id h18-20020a17090aea9200b0027919b79be7mr9639641pjz.5.1696280407066; Mon, 02 Oct 2023 14:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696280407; cv=none; d=google.com; s=arc-20160816; b=SV51+SlDTO+s+9J/Mnktl7m3uIlF/m8K/hoyG8cWx2ak0mHqSEntbruGjRoEBa5Xiz ErKqdDwjS/zJAwqO6gxi812KW4+Fe5bgqLSLZ4uL37Sze9QPq8EXdnP3AER2j8kiQIYc qyRKRRDOph6mEAeghNONrLSdUv2RqSjFcZCewwemcZ0HzsoV2fSh93Z6tbWTODPmOwSH qdGgFqiBTRI2X3FUQTG2EeEI8/Sb+vtc8gkDlQpNHw+mzXijEj9JBWGoKASpH5Dp7c3L to1kc7kRW8HapLIScTzvF+Sezxs4mLM+jHwLTHoZt8SCXpnwjClpMl5YmK+drgSXH2Jy +NMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=dtCp1l+1KoEZNQZ+M8cLBRRsfhh3jAQVwuyPCHJJcC4=; fh=NXtsBdeOLF5phv5ahaJoHHTUvk2V8OR39zif6iV+vTc=; b=Dgr5BP2kM7UIJxXwLXcuOxJWRF692kVGCVxwvDGfMuAi1FQ+zzV62Zte7Fi+c9+Go0 6nX1DH0eKy3lXSK6tjYB0wNCqBVSRtav/LCxXoFM584De7CfnE3HCmgR7bxy9Ij+1YtN ASfq5rx9O4uBd+X9jEh4BjlFFcOB2GDTgmmPPlXejAmqRkNW3Iryb+LoiGX7cfGN5guj z08d9BUN8mv0rtOWwaSwFA8IJ1a00H/jz7OcLyKWKn6qRlMpOJUMReyXa9Bp5MGzV4r1 iGTVt75p5xplvqFBE5MsaSjOvlKtOVu+4LnChns4NHsav4AjRuJVesepJYy7AMMyhj+h vUjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ts6e8OPA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ng12-20020a17090b1a8c00b002791cef6654si9489536pjb.1.2023.10.02.14.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 14:00:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ts6e8OPA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id EBB8B802FA35; Mon, 2 Oct 2023 13:56:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235909AbjJBU4D (ORCPT + 99 others); Mon, 2 Oct 2023 16:56:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbjJBU4C (ORCPT ); Mon, 2 Oct 2023 16:56:02 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBB7CCE for ; Mon, 2 Oct 2023 13:55:57 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E7B0C433C8; Mon, 2 Oct 2023 20:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696280157; bh=3SUjHS1R/+k33+41I8df1OAaO4gb+JCavb+GatMXfr8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Ts6e8OPAXbwJSqbHZh7OB/J5bL/OHFILZtb1yBVm7HXPB1PZk/XGQ7AuIW4n29dj+ ecoBTO+7hrPW8Q6xuPPASkVTEUpIET4SQ0Jsvd2gVlk1zyw1YTaRy14t4smDjHCbYx Ip/BJuo0W6EjA2rvCbaan0iEIW+cj78pq0AqAEptDJPl392/1LNQKv84du3Y6mEcD5 kLx5VdsMxdIHgNASSD2ZmOJqOflab/gjsH9hwidf2wGhMgu6x7m8pUtG4MO1ahLvP5 y4L8a3M2ByHooguBVfjxXHjB0K4VvDBx4MXBRBHPNchRHELaiLL3HcPvunO0YVRUT/ sMrIc2mpMLNtQ== Date: Mon, 2 Oct 2023 13:55:51 -0700 From: Jakub Kicinski To: Serge Semin Cc: Rohan G Thomas , "David S . Miller" , Alexandre Torgue , Jose Abreu , Eric Dumazet , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: Re: [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling Message-ID: <20231002135551.020f180c@kernel.org> In-Reply-To: References: <20230923031031.21434-1-rohan.g.thomas@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 02 Oct 2023 13:56:08 -0700 (PDT) On Tue, 26 Sep 2023 14:25:56 +0300 Serge Semin wrote: > On Sat, Sep 23, 2023 at 11:10:31AM +0800, Rohan G Thomas wrote: > > Enabled the following EST related interrupts: > > 1) Constant Gate Control Error (CGCE) > > 2) Head-of-Line Blocking due to Scheduling (HLBS) > > 3) Head-of-Line Blocking due to Frame Size (HLBF) > > 4) Base Time Register error (BTRE) > > 5) Switch to S/W owned list Complete (SWLC) > > Also, add EST errors into the ethtool statistic. > > > > The commit e49aa315cb01 ("net: stmmac: EST interrupts handling and > > error reporting") and commit 9f298959191b ("net: stmmac: Add EST > > errors into ethtool statistic") add EST interrupts handling and error > > reporting support to DWMAC4 core. This patch enables the same support > > for XGMAC. > > So, this is basically a copy of what was done for the DW QoS Eth > IP-core (DW GMAC v4.x/v5.x). IMO it would be better to factor it out > into a separate module together with the rest of the setup methods > like it's done for TC or PTP. But since it implies some much more work > I guess we can leave it as is for now... I think we can push back a little harder. At the very least we should get a clear explanation why this copy'n'paste is needed, i.e. what are the major differences. No?