Article View: linux.kernel.netdev
Article #10050Re: [PATCH net] net: pcs: xpcs-rk: limit advertised interfaces
From: Andrew Lunn
Date: Tue, 03 Nov 2026 02:54
Date: Tue, 03 Nov 2026 02:54
24 lines
9440 bytes
9440 bytes
> Hi Maxime, > > You're right that for modes the PCS does implement, the limit belongs > on the MAC side. The complication is that the compat table describes > the whole Synopsys IP set, while a given XPCS instance only implements > a subset of it. That is a historical design issue in pcs-xpcs: the > table mixes C73, C37, 2500BASE-X and 10GBASE-X entries, but different > integrations implement different subsets. > > On RK3568 the XPCS instance is wired up for the C37 SGMII path only. > 1000BASE-X is part of the same C37 core, but I don't have a PHY to test > it against. QSGMII is not implemented in this core. 2500BASE-X and > 10GBASE-X are separate modes the shared table carries, and neither is > implemented on this SoC. C73 is not wired up either. > > Trimming the mask is not limiting the PCS, it is cutting the shared > table down to what this instance actually implements. A > platform-specific glue is the right place to do that. Are there any registers which describe how the PCS was configured at syntheses time? Andrew
Technical Details
Message-ID:
<48cb8a9d-622f-497c-a13e-bc679c764ce0@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-355191-linux-kernel-netdev=dewy.ruReferences:
<20261029094916.3127193-2-coiaprant@gmail.com> <c5fc86f9-3c43-4aee-8d88-92e8f88c6d5d@bootlin.com> <1B8D463D-1295-4BF0-972D-859C342E49F5@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-355191-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 03:54:57 +0100 Organization: Usenet Network Message-ID: <48cb8a9d-622f-497c-a13e-bc679c764ce0@lunn.ch> References: <20261029094916.3127193-2-coiaprant@gmail.com> <c5fc86f9-3c43-4aee-8d88-92e8f88c6d5d@bootlin.com> <1B8D463D-1295-4BF0-972D-859C342E49F5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3085338"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:uLdIR5Hn9aG59LxR+NKUT0OAxYE= sha256:w2DTcozA0+KQRD5QS+asFPTRzhZaeTKyrBTRDBlbtmw= sha1:lyeJfz3cPWaaqtlJ+/TmIxODnIY= sha256:/88fMV94pEzh/WXcj/m+SuAnzP2Bp18hQyYFfwTLcew= 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 9DD14112724; Tue, 3 Nov 2026 05:56:54 +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 XHTLt624r18G; Tue, 3 Nov 2026 05:56:52 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-355191-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 29B71112708; Tue, 3 Nov 2026 05:56:43 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 1AD792AB30; Tue, 3 Nov 2026 02:55:31 +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=1793674531; b=YMEz/BZcT6aZXmrIiljaOGP880ePrrui5KHxxzUTV7xH6RcrmbO0GdjQRFv458J5h/lv jktQYYOAPTQ68CUj+HksraqdGxfv98ZJIB9042dG2ntBhSs2haaz4cx0eCwG6gnLVyetk QulEM63d8CSEWFth6e+rdVhky/svWJ8tIFzjtfXApH6I/xn/m/b2ElztSY2epSi8FUl37 Hh9AYlMvw6tti2p2Q50fUGNVYhhPxrcINRo6I0Kcmw5K9AsEv4hJK+fvGu7SJmaBitZYi b6kosEavtnD+dfFWibYCNDSmoNYX+uJ6kLq4WdJtdmwIDKSuhUJdKoYAHKySM9lVxxQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793674531; 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=M4IsPAVHTXvNhsayZrPE1EGmAc2003EPnpM+czZUcl4=; b=dOldjxpmCNa99Zb9b1T/32gphqEl1rybEZOwqUtjXmV9TamCWh3oia1H0turGTwFzPBo Jim4QblJzWZwBEsjOZop/s50wT1WMeBu5jRnVJPYphn+6Az3iWo+LbPLRQGVwubmV23d/ /1wmvHdC6LWKxzdQgzuAEw+tjMTZGmj59ss0IeQQeL7iih9HpH4ImmqCZj9RDDhESzHcD aXZPwOpLXoa0NMafdpgp7b+IbNxNuEGYdY5VLyNLF1MTVZiylXPqUaPJH75I9Jx7n4W5H raD/wi3Gr9JZX7H8SbwtI3J7RbC+cEWEL5XmnNxBaozEyhkAFEfJWMa5CTQbPNLiImw== 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=FYu2Qtdz; 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 E66D2606A331; Tue, 3 Nov 2026 02:55:30 +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=FYu2Qtdz 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=1793674518; b=X2AeA5wAW4/5UOE/mRlNI6da8wpc6c7cttqP+qQEgFzqwYLdQujFL61YfMdpfxnlVgqK o1T7AEWktA6/rPnoexfEZLQdEGA8tto0gLc1H8DRU33aAnN71PwDrHxtevDAtgvzbYiUJ Ye32W7z4AiMnLcKJyU/BFJ1wrkHmHBj301PttSEM0zsu+pF3qGNcNrDEd1ZgSEu8Yh1kE cztIkSkfmsBbHibVFRBELw9TGOnPSmxUZLIJJO3UkNuBtIcbfdt7+EVx/+lk7Z5zdgycW QCpOji5cnlEsynBgsA05Pg8FIKAcMDq0+rjGvuTOQ+dRwSIe7uKbB6uFHMU5faP4duw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793674518; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=M4IsPAVHTXvNhsayZrPE1EGmAc2003EPnpM+czZUcl4=; b=UOgF38gopW2FIiruis7ahzwTmkJzo7TP2wI/jNvP3BScPUvlQQqDtfXVr8FIRq38HBCi 1Bjoyb/pzfQYfWRlxR/iGgSwTzQNLCFL+e5yMSHg0CTetQqMqKW4qfktJ6uyCVZ4hO65B YH5VDOen27tma6PmZMgwQM5Bg4zqqaeMyM1VAekE3kaP5tAET9bXL0JVkwpS04fWVykK+ hTeBUxNOoSgOY7gylIBkQx02mht/ciRARWsIFlH4DBHjhO/L6TEPKRTZ5lgV2ew0DAozY fbiWUzkVxk1lJtGplcsVD0RznpAoGtvGZiihB6u9MVBjUFCiIPZ+FTYeFR5M2+yNSnw== 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=FYu2Qtdz; 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 60F7C606A327; Tue, 3 Nov 2026 02:55:17 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 60F7C606A327 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=M4IsPAVHTXvNhsayZrPE1EGmAc2003EPnpM+czZUcl4=; b=FYu2QtdzFEaA+ec/ojb84UyEp+ WS6yJQohOv0GfKGDl/6dDbX6yHLTk3aSt0BJAL6gfK0O9wg6uV4bTbPosNceYft1tzzDHPJIzGLcr ZMjCKcYKDjBryxvFFUAR4AnxVZMHoHNXsdA3HoNKWHps+fdTqtPfffwWXqvJC+gVMkmM=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xO4fp-00DwWH-71; Tue, 03 Nov 2026 03:54:57 +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: <1B8D463D-1295-4BF0-972D-859C342E49F5@gmail.com>