From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 C3AD93C1D4D for ; Wed, 23 Sep 2026 12:57:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790168256; cv=none; b=Xjyh+hh+l/sp/AXhgt6iD74gM/U8ctVxSJAO5zfdZez7+q2u5FCcIAL4FERf9KqfNLUGgnD4sRp+1uVjhfcA03Arab4gDHWIdEiVChAXV+Forj7ElPeEe5nBJLniwVSPpaggdWU1V4Qu+QVOxoNgisFtHeYeN8ztngAjNohfHIw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790168256; c=relaxed/simple; bh=KzkJL9XecANA7DSkd5iLEuklmtZkLKM0ugeoY3qIemo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qzZ7OrZnvwejhC0SJJ7mH/k2sFBOQpL27W7vKzBbb2FLXNzGBj0TNd+u7AL5XSgu75wI3jg288Hp7Po23emh2qlyNDDlPa9yzICFG7qavuKDCJk+zwIstvo2Qtt87hPFA8+y4Pi4u2wC8yBJDhGhF7qHyPhE1Ue+8VV/w8KZ0Z8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=hGAYGIDP; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=bkjcPUEm; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="hGAYGIDP"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="bkjcPUEm" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68NBbUlC3295545 for ; Wed, 23 Sep 2026 12:57:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=wJmkchd5FFosOFCSNaAhYNUs 9kr6IgwsEZr7XcXzpQc=; b=hGAYGIDPQ4nJy7/DCaS5ax7FHJcRBp8dG0Rj1gpo tusgnm4lFb8uqIP93OQciFk1qwolRc/LNh9Ie83Jp45It/mfT4FMwvxkyIauhFlE mo5IrEaKYt3/BI/epa3kUe38Yb76SEViULYxu2pbUjH0WgrNAv9nxNYU9KQ/S+BX ywHeGGS6rxF+Gx1wzEgsPLTOYZu9UvvyBsM65TVoRLnyYwFFy//y4mKd4P514sfW a6TTFHLMPhog1Q0vUSudfzNZ2VVOux08lkAlfuF9Lgse5vThpxbrffktcMLDTOvI yKpYyFmN+o67oVUJ6aaKHk8IIwIhwEXYPQPOOpuEd1jlfA== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gvbwm8w34-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 23 Sep 2026 12:57:34 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3968bb86fb7so909613a91.2 for ; Wed, 23 Sep 2026 05:57:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790168253; x=1790773053; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=wJmkchd5FFosOFCSNaAhYNUs9kr6IgwsEZr7XcXzpQc=; b=bkjcPUEmfADCRA/EwwN8Fk+vIB8j9q8Ps+9kwv2rUFtWfUaIvlASQ/mqV45UIlj3Te KXgZI/hpYjijt9ZGp6UwNmTNn7Qvm5A7Ordw/4NJ2AOcxZayqxPA9+d9NRxHD80xgeew q9UPSbpufD9ueBm7wWIHHofMfNT3WA0qoekHQCHNdbg0A/Vo/42/64Zx6ZA+pBps7u9A keAJS8toizFIHjjqOXU7pyph7h476kfnnHHLalMszn8I5tcLS0o0jZ7BRV4w+egMTglX CmwMOTv0GvLQHDzts24ATWKyOQhIGTUizX2QEZQ8hBLAekZkmBs5mKhj9maOj1yVQJfi 8SfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790168253; x=1790773053; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=wJmkchd5FFosOFCSNaAhYNUs9kr6IgwsEZr7XcXzpQc=; b=r6WlrMXoFSQ89jHgbsc6WX7JJHLAFta6PmRaIVJGNH0obcaXmjdYDfFjnov89btqY3 U57FdQq9rkmg7CmKlgrZNa61HHOcLb0wFXa3CakDQFEu8NPchcAJdlx8FZSvbPyKI2W+ kJXMbB1n3+ur0usekZx+YqSOxcVrPTHZDXFhePWv7tZw1Xe03L0lQXwMXNBjyltGUgp8 OVrnp+PNLWgaKXwzubl0ht4HGXYupa8Jzfk5aDGwUL3UA+2qEGIXnbssEIvrX9Qc5aW8 0eTrJtMsqI2ya4npY4VezY6skf+Pr6NCtP7yJhj7efbeuemxccrNiY1E4eAOjpJehNDg ynMQ== X-Forwarded-Encrypted: i=1; AKwUvBwNmhrL8t8Na+RI0B3v+3mbz5fsE0Exxc6niH6qC09Pyo3awCbSI2Ksy6U8PRF0DE4eLer5qRAErZibkkE=@vger.kernel.org X-Gm-Message-State: AFuF++nBAJTwjxXQOl/YimrXOZ2DCXssRsZdvtrT8Ku1FJQtMuKnKI/p oyrNFXRAGbFzV0yYLyJ3SGPIaz+xvm92H6RftSDu1+fHSrklGTK7NGDVivRVhwv8ZIzzC7yE4UT WkIgkgkkME7o7sxUMvbtxYEdKUz0r4rG2xFNT6QsgNvahORAtw3WFgUAqonOSNuUJ0Ok= X-Gm-Gg: AYBFou19oJOU0qzWYomORukjgfmnRQ/YGGzZ8gql7uEpsGfyKj8UnNU+bhlaam5IxEd M4Rn81ScmOLHneL/qIbKH+rMArEmExFW4qiKaUMnwFLPiy2RUTIXS9CxNuAJBrGBqg1Z5i0lX9W 2V4vB3SYMOmSx6pk7vlrxTmJq/UPw7DFtErGQFVv0cSVE2Q9WdEDxyT8flY0EXrjEPXLiRznAKh 4+EMB+PHuTbxAvbOeq1uV8SwHOUMdtGbXCih8IEnnOChbRYJBh4Q1LwQTr0Kp/n5BYZ+FTNz7Xn vLxPYS/dy3EYIOu4vUs1va9sUNZcoJvzloJXqpYaISjiCrrU5+4Jkk735QhkQQIDcWzERPaL5rT 7suQbfv6SMAED X-Received: by 2002:a17:90b:33c9:b0:39e:6a81:f34a with SMTP id 98e67ed59e1d1-3a07e6be363mr1943546a91.36.1790168253033; Wed, 23 Sep 2026 05:57:33 -0700 (PDT) X-Received: by 2002:a17:90b:33c9:b0:39e:6a81:f34a with SMTP id 98e67ed59e1d1-3a07e6be363mr1943518a91.36.1790168252430; Wed, 23 Sep 2026 05:57:32 -0700 (PDT) Received: from oss.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a07dbc5451sm5788341a91.7.2026.09.23.05.57.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2026 05:57:32 -0700 (PDT) Date: Wed, 23 Sep 2026 18:27:22 +0530 From: Mohd Ayaan Anwar To: Andrew Lunn Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Serge Semin , Heiner Kallweit , Russell King , Richard Cochran , Bjorn Andersson , Konrad Dybcio , Alexandre Torgue , Giuseppe Cavallaro , Jose Abreu , Maxime Chevallier , Maxime Coquelin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Lorenzo Bianconi , Shawn Guo , Zhangfei Gao , Jitendra Vegiraju Subject: Re: [PATCH RFC net-next 4/9] net: pcs: xpcs: add Qualcomm Nord platform support Message-ID: References: <20260923-qcom_xpcs_nord_emac-v1-0-4b1c682af70f@oss.qualcomm.com> <20260923-qcom_xpcs_nord_emac-v1-4-4b1c682af70f@oss.qualcomm.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: X-Proofpoint-Spam-Info: AW1haW4tMjYwOTIzMDA1MSBTYWx0ZWRfXyop1D/H8mDiV D562U+JHhzcjubXXCZvSy6dgxJke2GFclRsg5hIiCNoioGip3no2/k9kYYbaH8tftyDtvgHI9N3 +EtxUTOpdou3JusKg/RgLIG84OK2L4o= X-Authority-Analysis: v=2.4 cv=R/6WitRX c=1 sm=1 tr=0 ts=6ab3ccbe cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=kj9zAlcOel0A:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=mHhYrMsX9GfO8_TZ82YA:9 a=CjuIK1q_8ugA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-GUID: ybYge08SJwoUZJcKNBvouIZpbGznZKyQ X-Proofpoint-ORIG-GUID: ybYge08SJwoUZJcKNBvouIZpbGznZKyQ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTIzMDA1MSBTYWx0ZWRfXw78TEcbYr4CJ YtsN84ShFwVVjXv35m1W61owJbFGBobQk4cb8SUDB6Z6tSiaI+QBLpqb+2oxWlsbUFwBgHpXgMC t1UfWBhvcJl9szq/8/aQS+i8Vhv83pnynm/ewYwDZ+EG0Ji+2Cmxv8OLJzhhxrOA0KXy3eAnzfl nsXkFtrDgbeJRxyfEfjAispoOcbFNd47uDR3HJ0niIjpjwJtp0JuYDS+LkpjaWc5GKgjQFlrYdK CPjbDHrVUerhDQbgoSxO786pg8QMrzMS+VUK2cac+PBHM1Ym8e8dI8w7F7FEkW5wTeJTm8ft3uc 27n+fc8QlIz/2l+jsSnxO84OnF+8VvPVB8piCTewFHLUbksUFEg6kIJ2yWTSstEvDrvnssisWER WdC2qUXALZ74NQxb9EameEWdntHNwZcBM2s0ZNwX2Bdtbgd/ZGGycELKZwPp2sCCkpgT4rnHNfa KKBBPMsxOd+GCs+8Y/g== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-23_04,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 clxscore=1015 malwarescore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609230051 On Wed, Sep 23, 2026 at 02:07:07PM +0200, Andrew Lunn wrote: > On Wed, Sep 23, 2026 at 06:37:30AM +0530, Mohd Ayaan Anwar wrote: > > Qualcomm Nord exposes the DesignWare XPCS register blocks through > > separate direct-MMIO windows instead of the standard contiguous > > MMD/register layout. Add accessors that translate MMD accesses to the > > Nord windows: > > > > MMD 3 (PCS), standard registers: SR_XS at 0x0000 > > What does standard mean? 802.3 C45.2.3 defines registers 3.0 - > 3.32767 as standardised. > > > MMD 3 (PCS), vendor registers: VR_XS at 0x2000 > > and 3.32768 - 3.65535 as vendor. > > However, with a length of 0x2000, there is only space for 8192 of the > standardised registers, and 0x1000 gives 4096 vendor registers. > > > MMD 1 (PMA/PMD): SR_PMA at 0x3000 > > MMD 31 (VEND2), standard regs: SR_MII at 0x4000 > > What do you mean by standard registers when talking about VEND2? This is incorrect, these are non-standard VEND2 registers. > > > MMD 31 (VEND2), vendor registers: VR_MII at 0x5000 > Overall, it's a mess, with some registers marked as reserved, and some not defined. I will go through the list once again and document them properly. Thank you for the pointers, this is the first time I am working with this IP and I have found the specific version of the databook to be confusing. Ayaan