From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 B235710950 for ; Fri, 10 Nov 2023 09:18:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Sw97PmtN" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4946D2B7F7; Fri, 10 Nov 2023 01:18:18 -0800 (PST) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AA7ffkm031309; Fri, 10 Nov 2023 09:18:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=G+Zc568Gz0SZ9OiI5OVsUfmYySCMQqqPWyjqT7w2RyA=; b=Sw97PmtNok4qQCownr4UpQJ92SW3DjxoYPy2bGkRbTluWnhVMNJa+E6IZBUrM+gHKyw0 Umput+sHnHdrmtJveUAsMI48lo+Bl6cd6K/gnp8bIoFq16Oae5CCa8NdDZAtOzUyJuaU oh7pvCFYv7qvjHcJUw1Uy3BX9NXhaUMJazSxmP1zdVU7hBxazlBJJPXdmcw3kIvug+d6 86vJSTNGzLzn3fL6KsPZ72af2GirguPTcAn30qjLfyMYjiI8B5h0Af7iZoiUKi1PGEm3 f3SLBHHCXlKjB7c5/F6wu4fWq+Nwt7tkOfMVl3LkEoy7KYha5Rd0Pqws5N0Hw8mH9Mvq RA== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u9f3k0e2b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Nov 2023 09:18:03 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AA9I3o5019512 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Nov 2023 09:18:03 GMT Received: from [10.253.8.167] (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Fri, 10 Nov 2023 01:18:00 -0800 Message-ID: <46d61a29-96bf-868b-22b9-a31e48576803@quicinc.com> Date: Fri, 10 Nov 2023 17:17:58 +0800 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v2 1/3] net: phy: at803x: add QCA8084 ethernet phy support Content-Language: en-US From: Jie Luo To: Maxime Chevallier CC: , , , , , , , , References: <20231108113445.24825-1-quic_luoj@quicinc.com> <20231108113445.24825-2-quic_luoj@quicinc.com> <20231108131250.66d1c236@fedora> <423a3ee3-bed5-02f9-f872-7b5dba64f994@quicinc.com> <20231109101618.009efb45@fedora> <0898312d-4796-c142-6401-c9d802d19ff4@quicinc.com> In-Reply-To: <0898312d-4796-c142-6401-c9d802d19ff4@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: S-SObheDVJ-FTaJteoWKc8E6pU-F3R-6 X-Proofpoint-GUID: S-SObheDVJ-FTaJteoWKc8E6pU-F3R-6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-10_05,2023-11-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 impostorscore=0 adultscore=0 bulkscore=0 mlxscore=0 priorityscore=1501 phishscore=0 clxscore=1015 mlxlogscore=482 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311100075 On 11/10/2023 4:53 PM, Jie Luo wrote: > > > On 11/9/2023 5:16 PM, Maxime Chevallier wrote: >> Hello, >> >> On Thu, 9 Nov 2023 16:32:36 +0800 >> Jie Luo wrote: >> >> [...] >> >>>> What I understand from this is that this PHY can be used either as a >>>> switch, in which case port 4 would be connected to the host interface >>>> at up to 2.5G, or as a quad-phy, but since it uses QUSGMII the link >>>> speed would be limited to 1G per-port, is that correct ? >>> >>> When the PHY works on the interface mode QUSGMII for quad-phy, all 4 >>> PHYs can support to the max link speed 2.5G, actually the PHY can >>> support to max link speed 2.5G for all supported interface modes >>> including qusgmii and sgmii. >> >> I'm a bit confused then, as the USGMII spec says that Quad USGMII really >> is for quad 10/100/1000 speeds, using 10b/8b encoding. >> >> Aren't you using the USXGMII mode instead, which can convey 4 x 2.5Gbps >>   with 66b/64b encoding ? >> >> Thanks, >> >> Maxime > > Hi Maxime, > Yes, for quad PHY mode, it is using 66b/64 encoding. > > it seems that PHY_INTERFACE_MODE_USXGMII is for single port, > so i take the interface name PHY_INTERFACE_MODE_QUSGMII for > quad PHYs here. > > can we apply PHY_INTERFACE_MODE_USXGMII to quad PHYs in this > case(qca8084 quad PHY mode)? > > Thanks, > Jie. one more thing, if we use the PHY_INTERFACE_MODE_USXGMII for the quad PHY here, the MAC serdes can't distinguish the actual mode PHY_INTERFACE_MODE_USXGMII and 10G-QXGMII(qca8084 quad phy mode), the MAC serdes has the different configurations for usxgmii(10g single port) and qxsgmii(quad PHY).