Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp48049rdb; Mon, 4 Dec 2023 20:02:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQQkIOSFoYDT4NqxgLsZZ78iRjtHTw27pR6j/1+KULYE+x1x4Le57mZLm45aiGvEaOQzo2 X-Received: by 2002:a05:6a20:6728:b0:18b:8b4:2dde with SMTP id q40-20020a056a20672800b0018b08b42ddemr28958080pzh.61.1701748963822; Mon, 04 Dec 2023 20:02:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701748963; cv=none; d=google.com; s=arc-20160816; b=C1Ux1iTcEhwRWc1iV2sg8b3814MtCucQGs8VZqF9W1D1ZSHl/2vF0PG7okPd9Qlzp1 57ELJZV0Kmm9UpLsfJZ9YjFO0e3eZMl6hoUbnOsfDiQFerajqsQSnE756fneazUgDRGm OwOvbqjeKLKLdNZv39n0DBxp8La4qbUkxoadyB/7rVgPA0qWVOYphy+3VSLb6DwFN5LQ JuZjPjLzN51YzDEkOKyLyG3DHzEjRE+62wj5OlHT6pVG5PtK0PPdnochsHkLta2wrnfS Bs9KhiD+XhIbH1l25h2QVvf2vSEN6qYaS+pls68NzEVnQeDbMKRYaNxs/gzNe6ry8vQ9 CHJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/4qYujN8YUPBa0JNq4UyKlX+K5Ufzv+oENh6Wntp8sY=; fh=7hy35k3HS91OcJZdwGmXfsNzpAJi3DKq65C4+6Ykf/Q=; b=MNE8iJgVancmvbPjlhpGc8SeFPsQe2RR9CMtzSVsnZkBCgLT0lofFZv0SJX1CvRLRy Asg7PGqkGNJikC227Ibfq5RBCWTxymExjl1j/gZPj9At2noa00v9HCm5GGOP9b8l9qbX gfhZb+YQb0CmKuMFn0NJQAO9PwtEkU/v6NadFyNc/yy3g8rOKiMpNqKjwu5MyWxawQ/s NLJpArD6FFc+SQ8iboHhmVhKxNayQ0Y8vxkN57JhM3oITWHQqmxvscZuZf0K8AgpKa62 F3Vuee9FI0HysnaLa2qGstIRn/kKxkMIfFFPsffiV9QTw8v91SAvP2nAI0sJ+wqC8LSq Mydw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bht1qm6e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id ju4-20020a170903428400b001d07908ab57si4468562plb.522.2023.12.04.20.02.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 20:02:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bht1qm6e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 413D18087C87; Mon, 4 Dec 2023 20:02:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231612AbjLEEC0 (ORCPT + 99 others); Mon, 4 Dec 2023 23:02:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjLEECZ (ORCPT ); Mon, 4 Dec 2023 23:02:25 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8463FD3; Mon, 4 Dec 2023 20:02:31 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c9f72176cfso28742961fa.2; Mon, 04 Dec 2023 20:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701748950; x=1702353750; 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=/4qYujN8YUPBa0JNq4UyKlX+K5Ufzv+oENh6Wntp8sY=; b=bht1qm6eBerJutEyflOG3GXNXxz+sYZR8/ArFmmHMsmQwSLI4HMgFYzD0toJWWt5hi IMAljHPyT2ua53eGnawGvOYMdaKG+joWmgTg8Fna+OuspJ+BE0/jLsRpGJrQyUp55lRY zaWv4CQiBKHbawfYXBE1zEoPUpLxKp2NtHiZRVt4rqnuzA3Iqwfdy5mN2//bOCaskWLb 3DlwglbHbozMMgpdQYYCVs2pMKjRCajajl512G4Ro/2ImlK+CVlA1bbDYqpXoXNxQnNb 4LUK8eIT3H6pH5GBpL+vUPygF808Vm7TEV8V9sgP8nxK/Uw8ui5mEnK/9WfSxJo7MS+s kU4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701748950; x=1702353750; 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=/4qYujN8YUPBa0JNq4UyKlX+K5Ufzv+oENh6Wntp8sY=; b=Q6wkk4hZDGOvxIW2GC1rNamxCMg5sUh0NCQ62e8f2pr9j4T+tCzQnRsUYxaNaFAKaw qzDYwY8VRkyVVCNttGltzsjqv+YHtHWuKPllQe/tROx7gLT0de3oB8bkKSstQtJEp37G 9ARtb0rcxhC4hsWDIr24D+pHSv7sIjf5A9UJe4BRu84o70z/KigfvsWrBmcXPkrmDd83 KaEc8Bzc/yfevMAiu4sh8piU27+iF6QjZTG6neqsGZL67Wo337TcaAtjqdHyg0wlA07V 9LFg0B8Py7IeFkT7sa/gwCSW0OLxqCBrsrjoqcywz0CSmGf5fN1CsqhG7M9Kgmel4N/n huIQ== X-Gm-Message-State: AOJu0YzRqs4xRcO+SZDRA4JpszHrY1KZriTRf2BW+TXCA0GjYKtlPIGO NyNW67TOiNB0k7xWc68eeUw= X-Received: by 2002:a2e:a1c5:0:b0:2c9:fde5:a359 with SMTP id c5-20020a2ea1c5000000b002c9fde5a359mr663370ljm.20.1701748949460; Mon, 04 Dec 2023 20:02:29 -0800 (PST) Received: from mobilestation ([95.79.203.166]) by smtp.gmail.com with ESMTPSA id q8-20020a2e8748000000b002ca0a1f489asm384152ljj.52.2023.12.04.20.02.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 20:02:28 -0800 (PST) Date: Tue, 5 Dec 2023 07:02:26 +0300 From: Serge Semin To: Rohan G Thomas Cc: "David S . Miller" , Alexandre Torgue , Jose Abreu , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Giuseppe Cavallaro , Richard Cochran , Russell King , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH net-next v2 0/3] net: stmmac: EST implementation Message-ID: References: <20231201055252.1302-1-rohan.g.thomas@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231201055252.1302-1-rohan.g.thomas@intel.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 04 Dec 2023 20:02:41 -0800 (PST) Hi Rohan On Fri, Dec 01, 2023 at 01:52:49PM +0800, Rohan G Thomas wrote: > Hi, > This patchset extends EST interrupt handling support to DWXGMAC IP > followed by refactoring of EST implementation. Added a separate > module for EST and moved all EST related functions to the new module. > > Also added support for EST cycle-time-extension. > > changelog v2: > * Refactor EST implementation as suggested by Serge and Jakub > * Added support for EST cycle-time-extension Thanks for the update and especially for keeping your promise in refactoring the EST code. The series has already been merged in, but anyway here is my tag: Reviewed-by: Serge Semin * which at least for Patch 1 you must have forgotten to add since v1 * seeing the patch hasn't changed. Regarding the multiplier and the MTL_EST_Status.BTRL field width info you submitted earlier: On Fri, Dec 01, 2023 at 14:49:09PM +0800, Rohan G Thomas wrote: > Managed to get DWC_ether_qos_relnotes.pdf for v5.20a and v5.30a. But I couldn't > find anything related to this. So for refactoring, I'm keeping the logic as in > the upstream code to avoid any regression. > >> >> Also please double check that your DW QoS Eth v5.30a for sure states that >> MTL_EST_CONTROL.PTOV contains value multiplied by _6_. So we wouldn't >> be wasting time trying to workaround a more complex problem than we >> already have. > > Yes, I checked this again. For DW QoS Eth v5.30a the multiplier for > MTL_EST_CONTROL.PTOV is _9_ as per the databook. > > Also noticed a similar difference for MTL_EST_Status.BTRL field length. As per > the upstream code and DW QoS Eth v5.10a databook this field covers bit 8 to bit > 11. But for the xgmac IP and DW QoS Eth v5.30a databook this field covers bit 8 > to bit 15. Again nothing mentioned in the release notes. Here also I'm keeping > the logic as in the upstream code to avoid any regression. Thank you for digging into the problem. It's strange that Synopsys hasn't mentioned about so many EST CSRs changes in the Release Notes. Anyway if nothing in there my next step would have been to reach somebody from Synopsys to clarify the situation and find out the reason of the change. But seeing it's an additional burden and vendors reply not that swiftly as we would wish I guess the best choice would be indeed keeping the semantics as is, at least until somebody finds that problem critical. -Serge(y) > > Rohan G Thomas (3): > net: stmmac: xgmac: EST interrupts handling > net: stmmac: Refactor EST implementation > net: stmmac: Add support for EST cycle-time-extension > > drivers/net/ethernet/stmicro/stmmac/Makefile | 2 +- > drivers/net/ethernet/stmicro/stmmac/common.h | 1 + > .../net/ethernet/stmicro/stmmac/dwmac4_core.c | 4 - > drivers/net/ethernet/stmicro/stmmac/dwmac5.c | 137 --------------- > drivers/net/ethernet/stmicro/stmmac/dwmac5.h | 51 ------ > .../net/ethernet/stmicro/stmmac/dwxgmac2.h | 16 -- > .../ethernet/stmicro/stmmac/dwxgmac2_core.c | 53 ------ > drivers/net/ethernet/stmicro/stmmac/hwif.c | 21 +++ > drivers/net/ethernet/stmicro/stmmac/hwif.h | 22 ++- > drivers/net/ethernet/stmicro/stmmac/stmmac.h | 1 + > .../net/ethernet/stmicro/stmmac/stmmac_est.c | 165 ++++++++++++++++++ > .../net/ethernet/stmicro/stmmac/stmmac_est.h | 64 +++++++ > .../net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- > .../net/ethernet/stmicro/stmmac/stmmac_ptp.c | 4 +- > .../net/ethernet/stmicro/stmmac/stmmac_tc.c | 8 +- > 15 files changed, 276 insertions(+), 275 deletions(-) > create mode 100644 drivers/net/ethernet/stmicro/stmmac/stmmac_est.c > create mode 100644 drivers/net/ethernet/stmicro/stmmac/stmmac_est.h > > -- > 2.26.2 >