Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp397123rdb; Thu, 5 Oct 2023 09:00:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGn/IHbgh+e9865PDQs4rcBE4vdjv+DhiPjm475Z+gwfPJTrQHG8WUyOiLa/gLUniG+OfBm X-Received: by 2002:a05:6a20:1442:b0:161:9d3b:dc0e with SMTP id a2-20020a056a20144200b001619d3bdc0emr5712134pzi.22.1696521617492; Thu, 05 Oct 2023 09:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696521617; cv=none; d=google.com; s=arc-20160816; b=AESQcXT36/WOpdAwiQBbebvXphD3zgm8tqqn5ZdxztxCpyyPknv8fNmrVSCccckKjn i/BfeeWW9YV4qK5p3eDKLke/sMHjLljhydNEZ7CwZDSBGiTlsKvoZhkW1bNvG0KlclXz v/S1hbNo16gWhA7NheYVwL9vtcal/1YgEzdTx/sjL5VQg4hrfVOd3ZpcvrC5I7cGjp95 tQv+aGz2xYvNs2hjeliVpO+fYSx8chV16lNUDSA18nRFXbGkHT4AQkE/W3nOnHHhHEj3 rZ5fXqfxWX7G1uIsW8+W2hIgQ/qxLLEVzQm/BAMpLl1y4acXFqjn3dWB4dAf4iUjBiXV H9Jg== 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=Hq/j394c4hPeKuXtJFYwqWiYP4gG+PlCqkkdOvaBX1s=; fh=9WXDi6Vh/KuCrhE3qYl5nAD/ANzCQdSxBKMFjiJPKzg=; b=YnGDn4gri7ZzYZjqN+Z/DFQGd8+H1ds+hjDOBPz78pRR9EnavY0L/m0x7puz9rvo8v nuY1w5Y4yNobjyXjQZdPCpFaI3ND58niIT9mQ4NAOpb2bSVVAlwaYmM6TgPyDl62lMev 3SfNHXhxkvWVeqXxy/ITdWAHvq/kLlW7a0LD3K0umxjQHVX3RqXAtZU+n4GiWsx7eJfs JTg8UpTPBmTFpcZ8ajN5E3NFXOee1x+ugiXCxsZ4/ryzkzkm0Ws54vrRPTRHJQmhLjMS TRRe/775RHzdnC1kTMJBGcVvFIm9hk67DrDLL70lOg5D1K4za9aFEpCPhuqeTYiRxbV5 iFUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HikMK4ts; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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. [23.128.96.37]) by mx.google.com with ESMTPS id d8-20020a170902654800b001c3e9b0baeasi1734989pln.430.2023.10.05.09.00.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:00:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HikMK4ts; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 9CD0582F9245; Thu, 5 Oct 2023 09:00:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239564AbjJEP7f (ORCPT + 99 others); Thu, 5 Oct 2023 11:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235183AbjJEP5A (ORCPT ); Thu, 5 Oct 2023 11:57:00 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC455273C; Thu, 5 Oct 2023 06:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696514066; x=1728050066; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WT2vF2g6ySQ88OnBsaROozLS1/K+Uk2umLsgnTugo4g=; b=HikMK4ts2LgVHHpFAoKBy/afRCgUWTyNkt7XIvTxTbctujN9aqgBhYvJ N0XR6P8DPcUyG1fwfyBLudGQkcEJbwQ+mKXBQc0BREv+dxdsc5tn5FucB SDX3D2JjjTxV/VhMASL9QRuDe4wzQkkIQvitylHdvyC8wAmloYmhGsiA5 1obxGhvooAhmjZzlaSjWAOMfyMP01PRHaD9NsyKBPPAPgJa/qaCZ7+gNY N4HgYAwb5tdqldphW8xYfoXBkJUppzkxc42/LT77z3WSiyuzNTwXu8bAx AqMxOBNyQFO7hIyWWc5gLGH9ZfFXip/MTE0hkz94pezNeBeMx1mfGLZLa A==; X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="414443730" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="414443730" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 05:15:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="728425237" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="728425237" Received: from ppglcf2090.png.intel.com ([10.126.160.96]) by orsmga006.jf.intel.com with ESMTP; 05 Oct 2023 05:14:59 -0700 From: Rohan G Thomas To: kuba@kernel.org Cc: alexandre.torgue@foss.st.com, andriy.shevchenko@linux.intel.com, davem@davemloft.net, devicetree@vger.kernel.org, edumazet@google.com, fancer.lancer@gmail.com, joabreu@synopsys.com, 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: Thu, 5 Oct 2023 20:14:41 +0800 Message-Id: <20231005121441.22916-1-rohan.g.thomas@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20231004092613.07cb393f@kernel.org> References: <20231004092613.07cb393f@kernel.org> 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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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, 05 Oct 2023 09:00:13 -0700 (PDT) On Wed, 4 Oct 2023 09:26:13 -0700 Jakub Kicinski wrote: > On Tue, 3 Oct 2023 14:12:15 +0300 Serge Semin wrote: > > If I didn't miss some details after that we'll have a common EST > > module utilized for both DW QoS Eth and DW XGMAC IP-cores. > > So the question now is whether we want Rohan to do this conversion _first_, > in DW QoS 5, and then add xgmac part. Or the patch should go in as is and > you'll follow up with the conversion? Hi Jakub, Serge, If agreed, this commit can go in. I can submit another patch with the refactoring suggested by Serge. Again, thanks Serge for the prompt response. Regarding the below point in your earlier response, > > 2. PTP time offset setup performed by means of the > > MTL_EST_CONTROL.PTOV field. DW QoS Eth v5.x HW manual claims it's "The > > value of PTP Clock period multiplied by 6 in nanoseconds." So either Jose got > > mistaken by using _9_ for DW XGMAC v3.x or the DW XGMAC indeed is > > different in that aspect. This is a little confusing... I referred databooks for DW QoS Eth v5.30a and DW XGMAC v3.10a. In both this is mentioned as "The value of PTP Clock period multiplied by 9 in nanoseconds". Best Regards, Rohan