Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp954349lqj; Mon, 3 Jun 2024 06:13:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjtrAhJo0cDohCP/2Af3DSIOek389Sc/bm7mhj5dmeis/MEx50n+BMKifv4pf73nj44YLjUrjefQ19sIBjVPNPpwZLJVPQls7QKKkPmQ== X-Google-Smtp-Source: AGHT+IEQ0eUIDTsPQJE21dGS6HlnO8jbbL6+G8kIkqh49DS+UCogA3SYPaeHfmI2ML+ffW1s55ic X-Received: by 2002:a17:906:a0cc:b0:a5a:896e:d0b4 with SMTP id a640c23a62f3a-a6820516d07mr597691566b.26.1717420398533; Mon, 03 Jun 2024 06:13:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717420398; cv=pass; d=google.com; s=arc-20160816; b=UPgECBklo27zdHJYUJhOKYe+ROfp7VgMu6UfvbyUp1sG53f7C/rSbYPRSBrfIvdCj5 eJDLCpRSJxsVkty1XihoDSFpgLRIETz/9RCoAlNHUBanD6lGL85YVDDeq2ouw+6k8Fi4 g1XdY26f/BGJ32U2Ym58SyrhX9/i2FO2LxRS8WrMg2VW31OtqqIOaqX90Xf1RwUI5FO8 llV7TWbdB3Ip0iFE7dYtyU8SDPOgSyosjgBtmFaFcByU6n6g5NKCkWmguqbt7HZRemo4 393FEcyREp+QL1Zp0A7ndOKKGtpDR8IOdzNduKhzrHC3sAfwf7eWHaa6xeLQxjfo+htP iyPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=WhhGfCPkfrQU2JoEdJcZxodwFT3ecp3HOxHwD/uFSGM=; fh=N+WiF44Ac+spgS+sB3CZC+uDyw0vVWlgvAPsYg9mCUY=; b=Jz0NUFy/TclghjxsxWGbBgNPbloz5S/Y0PYbDieBZnL7lxl4FC4P5m3gd8oJLJWOob Qm99thiw9z9YqhZGEJCYa4T9UVHSYUSPdas9gd1LtbfnJueOtUa1kksS5tNfsrD6DCmb pJYBWCCEt7ug//eoo3teB3aFsatAgzJjPlLLcVvuK7FfXPHjzsrCvjxdyxvO8XFBw6dB CiESOYgb7XCKx0CwWqr8N8NYceRmf15YdvPURnYpSi6ONnqVa5ldOsqODo5Gr6tYVb5Q N9/jL95rULlewpBgYam6Acy541yrZWIhmeD0mBBlvrWLX4YKIJbYAED150dH/QN84Tyd YoFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=VZLilN10; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-199192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199192-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68cafed6e3si223224666b.183.2024.06.03.06.13.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 06:13:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=VZLilN10; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-199192-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199192-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A735D1F21D05 for ; Mon, 3 Jun 2024 13:13:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0373812CD98; Mon, 3 Jun 2024 13:12:53 +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="VZLilN10" 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 2DAFB12C552; Mon, 3 Jun 2024 13:12:49 +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=1717420372; cv=none; b=DwbnyEHn/Si7puYphvs8oPPwM+awhH/wxGSMThbSp2vXtLZcrEsVddVjs5q7h5Rt0Pb3C6+Jj5W9HBG/a/3aC8AGxzgg5TERoCAiy6Bb/kvsJaY3EdwRh1wHqpOOvJIsZo6lbmdJUr0KedDcDIU8dha8BWFmI1oCkqpxoaLlRR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717420372; c=relaxed/simple; bh=TPJLmt3ZrmFBEWUtmDZxOS+cU6lfWa/vurifkDD3zBI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mFBmvdX51xd8vxrkSQlDLf6q1XLc8Koux5sqSnmnCNYWxCtQBLSt9RIbmdn2FQ+M5ajphieyQw/Y6OJBEEbK1E0kSRVNY0Fw3J3M/DgJA0zbt7ponLlQoPnqmkFLZ0JGwoRviSe3M5kKtv0sf/Hgfo2ITlgx5di23CJEQcI9OVE= 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=VZLilN10; 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=WhhGfCPkfrQU2JoEdJcZxodwFT3ecp3HOxHwD/uFSGM=; b=VZLilN100eULAlRILI4fDmUatt gnST2qjGNUghl9VUfc4/1jsip4W5IzU9dCyX3LAAsluelL06MIRia+4e7YBlpd98Ogv4pNbtG3MR4 9mLtW6KfVjHiWinSCQy9pCX7/BXCGapxkz8LjNzvFjGozog+VQmfhcTXZt963k5zKwEDITkmY3MFn 4EWCWHSvIMMIiWNZA+C7JCH3uUI4aWGJqaDu6GGREJiAyxr3HAS6Wo2V9Hf2ojr3sfRLuxVs1nJca o/bWHkl3Khb3amJCxKRAAJ8DfJGQWsqtwxIkUsGv7ANoEPOBaudTyqV+u6FjZopVfl8caM3+RtnEz ImLgMosw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:36062) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sE7UE-0002lD-0z; Mon, 03 Jun 2024 14:12:30 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1sE7UC-0000Sh-Sn; Mon, 03 Jun 2024 14:12:28 +0100 Date: Mon, 3 Jun 2024 14:12:28 +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> <0ef00c92-b88f-48df-b9ba-2973c62285af@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: <0ef00c92-b88f-48df-b9ba-2973c62285af@quicinc.com> Sender: Russell King (Oracle) On Mon, Jun 03, 2024 at 04:57:15PM +0530, Sneh Shah wrote: > On 5/30/2024 1:39 AM, Russell King (Oracle) wrote: > > 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? > > we only have GMAC_AN_CTRL and GMAC_AN_STATUS register. > There is no separate IRQ line for PCS link or autoneg. > It is notified via MAC interrupt line only. From the sound of it, this is just the standard PCS that everyone else would use in DW ETHQoS, with the exception that you can run it at 2.5G without inband signalling. Thanks for clarifying that. I think we can just use the phylink PCS that I'm proposing for your case, with the exception of also adding support for 2.5G speeds, which I will need to sort out. So, I think I need to get my patch set that query the inband capabilities of the PCS and PHY into net-next before we can move forward with 2.5G speeds here. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!