🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10459

Re: [PATCH net] net: pcs: xpcs-rk: limit advertised interfaces

#10459
From: Andrew Lunn
Date: Tue, 03 Nov 2026 13:09
21 lines
9185 bytes
> >Are there any registers which describe how the PCS was configured at
> >syntheses time?
> >
> >	Andrew
> 
> Hi Andrew,
> 
> Yes, looking at the `xpcs_identity` code, the core does probe different
> MMDs to get the rough type: PMA/PMD MMD for C73 and VEND2 MMD for C37.
> 
> However, even if we determine it's a C37 or C73 block, that only gives
> us the rough family, not the exact feature set.

You might want to try reaching out to Synopsys. There are sometimes
feature bits in VEND1/2 which list the exact configuration
synthesised.  And since it is a core part of the licensed IP, it
should be safe to trust it, independent of the platform it has been
integrated into.

      Andrew
Technical Details
Message-ID: <f554dcc0-14ea-4721-9517-dc0337c47426@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355621-linux-kernel-netdev=dewy.ru
References: <20261029094916.3127193-2-coiaprant@gmail.com> <c5fc86f9-3c43-4aee-8d88-92e8f88c6d5d@bootlin.com> <1B8D463D-1295-4BF0-972D-859C342E49F5@gmail.com> <48cb8a9d-622f-497c-a13e-bc679c764ce0@lunn.ch> <27E466B0-72FD-47BA-B952-68BF4A817A04@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355621-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: pcs: xpcs-rk: limit advertised interfaces
Date: Tue, 3 Nov 2026 14:09:09 +0100
Organization: Usenet Network
Message-ID: <f554dcc0-14ea-4721-9517-dc0337c47426@lunn.ch>
References: <20261029094916.3127193-2-coiaprant@gmail.com>
 <c5fc86f9-3c43-4aee-8d88-92e8f88c6d5d@bootlin.com>
 <1B8D463D-1295-4BF0-972D-859C342E49F5@gmail.com>
 <48cb8a9d-622f-497c-a13e-bc679c764ce0@lunn.ch>
 <27E466B0-72FD-47BA-B952-68BF4A817A04@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3190511"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:q+2TJXrxZycqxGeJnnORag6do+w= sha256:2MnhfHYhaS3ffNFH9aqzcDFUwuNF5r6YzL36m2OTEMw=
	sha1:wAY1CRHYUiTpoam47B41LLe+gms= sha256:mRbG4uduz4EnKnMz+cjal7XzzGwtluyZdhWWxzP5w5w=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id D6FB7112904; Tue,  3 Nov 2026 17:49:18 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id kRnEUpmdcuzR;
	Tue,  3 Nov 2026 17:49:14 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-355621-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 7B46A1128FF; Tue,  3 Nov 2026 17:49:03 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id A98A5120DE1; Tue,  3 Nov 2026 13:11:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793711364;
	b=E1MaLAyQq8U/Ezjb9MZrPVr3dl4iXYHlbfol/I2c0HRm1bDz+Yj0altDQvCrW505e8fZ
	 Mc+rhO8/KIITdCQpDCKy6760MpkoDBgtNG4KGP7jvz5fYxPHxqLvrrGOUW3wemXV8YnlS
	 Bmmw0XYLqAx6EEUQQPLZvVHpqnIAmNgBlCRzS0OpWEE311U2Cp4+5zWWCEES+aHzB+R54
	 TIHUNxQs5ZwTl3xdzNQWLeQ5raYYQQerKUWmAezlzYUPGV55F/wOjjcr3t+iRMaAmregq
	 OWdNPfrR2r9MC7mbsDsauJHMEthSxZt3MrVVXt2zgsyngHfP1I0AuRt/fe8otPFWTWA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793711364;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=yZpf1H/k4whOqY1BVAHAnVNVl1rw8m1xEANoC6I5NO8=;
	b=g9IBIlYE4heMKRBVx/1MrSI4sYezpdxLbaLlasGqHZZy69UfH/FhZzFyJSVF54BPLObE
	 BIWjT1FBDn1MKl2a2bx5KfhQZnCljofsb2sWXpuY3czSRNhhLm/ShC6hfE9JBVIuFDWVv
	 Aqg5H5CL+s2yBaVXAj0n9O3Tvdl9u8IV4KVwe6IL4KkzU9Qxi+MLu/I/tFbQKzWxlYmJ/
	 mGUkR8MmRq+ayNGnyxK1/bm+n5UjDAdoMy/8+q/1udrcshoaFmO+/6pJA2Ctrdk5qPBVg
	 ZyUsB+zLkvuwWi3qOPPj1NW07oOBRslOQft8zwrz3mQNc/UC3vdVxJkMaatWadWLLSw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b="v+/GviCh";
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EC9F606EEA0;
	Tue,  3 Nov 2026 13:09:24 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=v+/GviCh
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793711363;
	b=NBKsYhQNGzMe3WxIGKCbjrSq0JVw6VsSNXgWmgOCRjOWEC0ynYEEMJgmiO9Cx93gGUnb
	 ZkLlzqbZfZBUxES32o8FjUCe0ifDAocE8UIoIyz/XqQL+uXc3uokiOCHOx49eoSSLltN1
	 W8eftfmM+FkJJuP1pIqXGBn2liCFXCx9iwwEo+4SBObXSmJvXkMjlTP9xUpPGgZwZcFYz
	 Vo/LOV1TUiUtOorNmZ2uIKqsJzPw9xNuJ1oAdpp54a2wAH2CWR2ot85jUF3X2n8o2kBug
	 0+xvYS3q0fkp3m8l09WE8MjuBNPUg4/+eDqRdff/O2ewGude/ozQ7th+FDFNW1keKVg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793711363;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=yZpf1H/k4whOqY1BVAHAnVNVl1rw8m1xEANoC6I5NO8=;
	b=dPAXSyynziYTZzxJKvTXR8BVXRKP3bg5exnnz6ryiIEaAESfNpWiTQIx7i83D0VV4l+g
	 TYgVJq+E1yDZ6vSoAw23s5BLqRsFkbOYEaIZ1o65pUvDJbD59qOp5cLOaEIWQM/9MMXi5
	 /uKWRpE4rbWru0G9Go4aaO4QAM5Yj1QLVC4BaZYvEIrrzX7blllhnIx6kXl1Q3fu2lvbF
	 Lb2YLx3gugJ+vxufOJ+DO2u5AO3wNxXUxvkogkLDxIC2UPSI7dFOT9GgPE9+4OwnyyysG
	 mQ37qCeoEfUW7IIdzjUmELHpYomfhXcmCftJad+yq5qj4PE1gs4m6Mk2ha+LVdaJRXw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b="v+/GviCh";
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30FD1606D82B;
	Tue,  3 Nov 2026 13:09:21 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 30FD1606D82B
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=yZpf1H/k4whOqY1BVAHAnVNVl1rw8m1xEANoC6I5NO8=; b=v+/GviChsC3nfnI/bGjE3OJRB/
	cuzwpZpEQEv8eCzynRfAm0aIjtEtxa+n8wb3qtQE6fnyXNjmXXQrwk5csDwQTTwAqBQ40X6dij1xY
	/Sq9uEWlvC65HITtW4gqx5E5fbCFKCyZwwXeP/Q3JV5bfasObqYNAgewI1HnGOOcq4Gs=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xOEGD-00E3QR-No; Tue, 03 Nov 2026 14:09:09 +0100
X-Cc: Maxime Chevallier <maxime.chevallier@bootlin.com>,
	Jakub Kicinski <kuba@kernel.org>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	netdev@vger.kernel.org, linux-rockchip@lists.infradead.org,
	linux-kernel@vger.kernel.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <27E466B0-72FD-47BA-B952-68BF4A817A04@gmail.com>