Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp872313lqb; Wed, 29 May 2024 13:09:58 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWJiTOrbGE/5HwiubipW9u6gYO+e/MVUDf0JXByfSQrTawssityNHpknPkAk0RAsAkcw6zubJp0OT07HZsq+Enxq7U9x0/pRa1D3eCkyQ== X-Google-Smtp-Source: AGHT+IE5p5oJOfydCQ1UYE1Wx2hRhZCHOUySO4YU5Mm990MPNdm2WC3iIbxol5MwL2Ix0euDAxt1 X-Received: by 2002:a05:6359:4c16:b0:17e:89bb:e545 with SMTP id e5c5f4694b2df-197e5114110mr1940042755d.19.1717013398258; Wed, 29 May 2024 13:09:58 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-682278903cesi10578306a12.272.2024.05.29.13.09.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 13:09:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194641-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=UuJc4lM5; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-194641-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194641-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D2D4B28AB47 for ; Wed, 29 May 2024 20:09:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA1451C68A7; Wed, 29 May 2024 20:09:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="UuJc4lM5" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB97418E06; Wed, 29 May 2024 20:09:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717013386; cv=none; b=pDTXtDE6UK89+AmAF8aooTXvMkVXbd439gvOyznBcuKQ+ZSnOAZIIQ084VS05KsDtIuRckgyIx5gTyEpYXZvUTw2bnujSeqNPABx9xesRd5tb2Fs1fTkAzuSJl3mMQXihbWzU5Xms+GtBKg+HMfZMj02jLeEwOpaEU4+AtPR9VE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717013386; c=relaxed/simple; bh=VmTjocAj8CY1BjnBiFgQ0KHUqKpPYIGWoK1UGssEBmM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FpoHhinP4uX1E8uk4IAO+I5uh6uTXihqR59k67qmR+JXAust51nq5jVt+ML6LlwO5Xv20KWSU6DD6CAlCP+hW/PcCbpDEyacYAIxddDOMvH8DJJK5QDB72LnTiHj+9ZbIOj6jycqLGyXXu2oUbM7cvsEOTyMhKehM8jp9dXimno= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=UuJc4lM5; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EfQ/Q2iVyXpG7SyzUHxYwMhwGinL//RTWhWN7EORZ8U=; b=UuJc4lM5bz5/HnE+yz/N6peyBE RbGvl89sUErh0CP4XxfiqiUCcQTU3gZ9Kx3efB73d+UdhiBVnqizINl+sOftuzZGuOf+uOrA3fvLA GsoOVe49GXYJCj1VpEQm0yAxpqpEbICHtMOpSRsUGU0fVTh87ZE/MN5KFg3va92gNQY9uiFyjezLS Gx6ENPcFw09Qdba9l68BL06+GT5eK2k3DiCGAmzUSUBwJ8psekOelpcLEYpF30JGQlgOsCvB6njKi CpZ6jqpElpgZ0pWVl6m9wDH6V39bA9Hnidhg0Qa5AlsPSQMkRHoaJ0jlIRym7sQduqx2zXyk9+05B vU1gGLLA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:56960) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sCPbu-0006cJ-1q; Wed, 29 May 2024 21:09:22 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1sCPbr-0004UG-KU; Wed, 29 May 2024 21:09:19 +0100 Date: Wed, 29 May 2024 21:09:19 +0100 From: "Russell King (Oracle)" To: Sneh Shah Cc: Andrew Halaney , Vinod Koul , Bhupesh Sharma , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@quicinc.com Subject: Re: [PATCH net-next] net: stmmac: dwmac-qcom-ethqos: Add support for 2.5G SGMII Message-ID: References: <20231218071118.21879-1-quic_snehshah@quicinc.com> <4zbf5fmijxnajk7kygcjrcusf6tdnuzsqqboh23nr6f3rb3c4g@qkfofhq7jmv6> <8b80ab09-8444-4c3d-83b0-c7dbf5e58658@quicinc.com> <8f94489d-5f0e-4166-a14e-4959098a5c80@quicinc.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: Sender: Russell King (Oracle) On Wed, May 29, 2024 at 07:43:15PM +0530, Sneh Shah wrote: > In this version of qualcomm ethernet, PCS is not an independent HW > block. It is integrated to MAC block itself. It has very limited > configuration.Here PCS doesn't have it's own link speed/duplex > capabities. Hence we are bypassing all this PCS related functionalities. I want to concentrate on this part first - we'll address the 2.5G issues separately once I've got a picture of this hardware (and thus can work out what needs to change in my phylink_pcs implementation to support the standard Cisco SGMII speeds. From what I understand you're saying, your integrated PCS is different from the DesignWare integrated PCS? Which core does it use? dwmac4_core.c or dwmac1000_core.c, or some other? Not knowing which core makes asking the following questions harder, since I'm having to double them up to cover both cores with their different definitions. Does it only present its status via the GMAC_PHYIF_CONTROL_STATUS or GMAC_RGSMIIIS register? From what you're saying: - if using the dwmac1000 core, then for the registers at GMAC_PCS_BASE (0xc0 offset)... - if using the dwmac4 core, then for registers at GMAC_PCS_BASE (0xe0 offset)... .. is it true that only the GMAC_AN_CTRL() register is implemented and none of the other registers listed in stmmac_pcs.h? In terms of interrupts when the link status changes, how do they present? Are they through the GMAC_INT_RGSMIIS interrupt only? What about GMAC_INT_PCS_LINK or GMAC_INT_PCS_ANE? Or in the case of the other core, is it through the PCS_RGSMIIIS_IRQ interrupt only? Similarly, what about PCS_LINK_IRQ or PCS_ANE_IRQ? Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!