Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp837372rdb; Thu, 30 Nov 2023 22:50:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHEiJyblMrg8bVh3hSWwaZxiVMyOqZBy2XgSAb7HXqR+vuBW4JPVWnja9namoSrB7cMwNNp X-Received: by 2002:a05:6a00:93a5:b0:6cd:e101:9cb with SMTP id ka37-20020a056a0093a500b006cde10109cbmr7475404pfb.20.1701413407614; Thu, 30 Nov 2023 22:50:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701413407; cv=none; d=google.com; s=arc-20160816; b=W9zGFZt4O7xyZtNErQ1jrSPi71GU/HhSnV2So6hv/eDmagsljVVKsXvniUZfH833Lr IdHbInbZHhCMYWZY7KkuKfi8vHTkrxtblQM4yylD2QtnqIVjyrPPumO//G77jcfeiFyH KBSfsqzNgp3dI/OqXaH4cErEpQvb3EdXilTwyANwFK2CKoKe5A1AdodByyy0UhSk2W9L mCP0TlXTKWr7GMEYJPgVyvgMkR0rW7AkVs31uIRL5toaHgoJYUCiTXHip+yWtYiiB7cD EHd15P7VLdjF4BQ+Jobzllkrnj/mstEUwulr1+lbVYkljnf0VowLf1e/9JuZ3FsI6Kkv 6wIw== 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:date:subject:cc:to:from :dkim-signature; bh=YT1rdvDgz0D1yEEIeI1/+ZKCyM5NgLuuybzjb5fQjAU=; fh=fVKaM+s0hZkSTCsqxQl7HpIlwDOqvByf3OCQbM/OZn0=; b=vKMfVD63djhxYlHgJ59Z4oGQu9X85t2oRAlweDnsokTnX9AqCz2e7+Zl5sBEQecykx V3vrymuiKbcORUbM6+OI9937Ytnzicj7XaRkr/OZuQPPNS+AMdJKGYs6aX5TAiu3/64b bboYp/TiHfBBTbm+hfu/XxOeENJvERcg9Kc/2GKt5EyUEnBZcsA0LkKrGHKQZ7WEGaJv 6qFIL/MfEwNF6PsYD0omcQ833pLvK8CzGOs184vSalI0ipEpx4Bys1DFnXLNgmo644ul IxYqblMEJ54N2mBj3zad1C/YxVm5ZUq8xg3X6fk4X3lK1sBPAY1i27CWjA81cN6DGSuR 8iDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="oG4y/BOL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bd40-20020a056a0027a800b006cbb36b9060si2789549pfb.385.2023.11.30.22.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 22:50:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="oG4y/BOL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 19D5280E070C; Thu, 30 Nov 2023 22:50:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229825AbjLAGtN (ORCPT + 99 others); Fri, 1 Dec 2023 01:49:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230402AbjLAGtL (ORCPT ); Fri, 1 Dec 2023 01:49:11 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 123011728; Thu, 30 Nov 2023 22:49:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701413358; x=1732949358; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zgA9er2TieuKbZ/sO/TlArv1h+YGFZzAROMCbrfkuck=; b=oG4y/BOLVU5wnhhvV8vDksxpoKCcBpjUr/ufmHI06sf39Zhtq3DYi0FZ LghLrUhY0sZ8bmDIWMgwtix4A55V/xSBXUKHfeuhItlkPzm+IURM4v88J eY0SMUCec+RWLsOm76ltGSzT06oCdgEn4OO/PUcJmb0bfmDEmgdpQ32B5 WooP0qJt1Ud06f9fHmIZ3nVvc28JB2sLSoKw/pT6MQYmi05mI8cDOsGX3 RCRJJTT2ZvIHgX/cwBlv4I/SJ3AaVGtZfOS8K9yI2teqSllkBaWW6lwoI ojc5EOGSjH1aUmstjqVFjPZVR7ADYhKiBvvlhjzbQrpDQljhWfmWxdp6I g==; X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="372835334" X-IronPort-AV: E=Sophos;i="6.04,241,1695711600"; d="scan'208";a="372835334" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2023 22:49:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="835678296" X-IronPort-AV: E=Sophos;i="6.04,241,1695711600"; d="scan'208";a="835678296" Received: from ppgyli0104.png.intel.com ([10.126.160.64]) by fmsmga008.fm.intel.com with ESMTP; 30 Nov 2023 22:49:12 -0800 From: Rohan G Thomas To: fancer.lancer@gmail.com Cc: alexandre.torgue@foss.st.com, andriy.shevchenko@linux.intel.com, davem@davemloft.net, edumazet@google.com, joabreu@synopsys.com, kuba@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, mcoquelin.stm32@gmail.com, netdev@vger.kernel.org, pabeni@redhat.com, rohan.g.thomas@intel.com Subject: Re: [PATCH net-next 1/1] net: stmmac: xgmac: EST interrupts handling Date: Fri, 1 Dec 2023 14:49:09 +0800 Message-Id: <20231201064909.28399-1-rohan.g.thomas@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 30 Nov 2023 22:50:06 -0800 (PST) On Fri, 6 Oct 2023 13:08:33 +0300 Serge Semin wrote: > Hi Rohan, Jakub > ... > Interesting thing. My DW QoS Eth _v5.10a_ HW manual explicitly states that > it's multiplied by _6_ in nanoseconds (just rechecked). So either there is a > difference between the minor DW QoS Eth IP-core releases or the older HW- > manuals have had a typo in the MTL_EST_CONTROL.PTOV field description. > Synopsys normally describes such changes (whether it was a mistake or a > functional change) in the IP-core release notes. The release notes document > is supplied as a separate pdf file. Alas I don't have one.( Even if I had it it > would have been useless since the change was introduced in the newer QoS > IP-cores. Rohan, do you happen to have the release notes for DW QoS Eth IP- > core v5.30 at hands? > Something like DWC_ether_qos_rc_relnotes.pdf? Hi Serge, Sorry for the delay. Sends out another version with the suggested changes. 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. > > -Serge(y) > Best Regards, Rohan