From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796448150; b=kyWVf952xQ03YlXGw9s21twrBpDJEvPJQldgZ95mwuivwfUPmZEpe/qCsgTk6StlnmXg g4Qxd9B11OSkeXUiW0+DuOvz9H84dexLGPy4hMY174eZsrv98HzsH7wJ2oyzrme0Bf38/ Kv2mFzeRZdEYGf9QIRz/TXdY24/Fs6f1Isr+y5vJuES2Pb48+Kvi8U41bBsswICa80sU6 5IOhUzJy3+UfB7u/yPe7KbT/QWvYGMbqO9MtQo1wtH5BnllilywW6KYEwEEQsU9ZYkeiX WzNsPDyW6NBDE+Aiv/VRILu7IzqIsBHaf+Z+x4TfD7yDSZ1pbR8W8WcMbOfxQAmcavA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796448150; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=F/G8DaOZ4NKuJ/WHzhf9xKSKAZqu/tYA3MAenBMXMuU=; b=HZdWatFf8RpG0f53Thq2OFZiSsRF+RaajpI9QeGzCzvKNAKlWyLeTUDrRpjb+N3dIhPf HW95tfMqsKmeXWM03RWIkKEBt/q5WwlyVqjxt6S1VJMptc5hKFBtAACfnLB7UNKDXvB9u Q/z/n66eoG3Y6JpkV/i4e7VZS1NjFQRRwodkBBzANGxTXVyCMHAFHx5oRmHc/BAXXitGv t3o5A3doKhvHsPUjvI18eD83e5SqvLtpGAkpoLipI7VAb0gprEOy2jE0a7Vnl0mvXdWRK D9TQhQnnKcJvGF7ckJx92Wj7F7h0r9cPr1EocQgmahIIMuMmp/mMsfRoalhqpBmovdA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ovlwq+6J; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43960606A322 for ; Sat, 5 Dec 2026 05:22:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ovlwq+6J Received: by smtp.kernel.org (Postfix) with ESMTPSA id A153B1F00936; Sat, 5 Dec 2026 05:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796448149; bh=F/G8DaOZ4NKuJ/WHzhf9xKSKAZqu/tYA3MAenBMXMuU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=ovlwq+6JVzz/5U9+E7LUpGrtmPU/8iRVd84Z0n70ueugFBPi+LlkVBB3WkEmV5FTt zxNN66LoIaa6ybM9IZi49R5u4ZZG6hW+yQ4ZpwOnkta49JxyTSvmsm2FciGiLTMSNG mOM7rOVXd+Xwr/rDGG/1GjlEeWeue5Z8TPo8T7yWzwjWVSahzBNUSsS4HYWLlJuk+N KG919QOlUyqR+IGu9wYFmP+vnuDZLzUsjG7jDvLqf1k79bPfNKVbbXIrGiw/6jAz5E x3DbNHqMQGf7yrQf7Jjo43Sxr4+5X60+B6TM3qvQW7kofLrLJnQwqrM6qE9xTpP5XZ 0peawlsjQj74Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/2] ARM: dts: marvell: armada-385-linksys: add switch port 6 node Reply-To: sashiko-reviews@lists.linux.dev To: "Rosen Penev" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261205050417.61345-2-rosenp@gmail.com> References: <20261205050417.61345-1-rosenp@gmail.com> <20261205050417.61345-2-rosenp@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 05:22:29 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [High] ARM: dts: marvell: port 6 overwrites mv88e6xxx CPUDest register - [Medium] ARM: dts: marvell: port 6 causes duplicate bridged floods in mv88e6xxx -- commit 1b3971c987afa66e2e2ce1fae1d3f6e610fa8eba Author: Rosen Penev ARM: dts: marvell: armada-385-linksys: add switch port 6 node This commit adds switch port 6 as a second DSA CPU port connected to eth0 over RGMII with internal delays on Linksys Armada 385 boards. > diff --git a/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi b/arch/arm= /boot/dts/marvell/armada-385-linksys.dtsi > index 4116ed60f7092..58ee283735e0b 100644 > --- a/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi > +++ b/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi > @@ -201,6 +201,18 @@ fixed-link { > full-duplex; > }; > }; > + > + /* RGMII, delays strapped on the switch */ > + ethernet-port@6 { > + reg =3D <6>; > + phy-mode =3D "rgmii-id"; > + ethernet =3D <ð0>; > + > + fixed-link { > + speed =3D <1000>; > + full-duplex; > + }; > + }; [Severity: High] Does adding port 6 as a second CPU port overwrite the switch-wide CPUDest register from port 5 (eth2) to port 6 (eth0)? dsa_tree_setup_cpu_ports() assigns all user ports to the first local CPU port, port 5 (eth2), so dsa_user_open() leaves eth0 administratively down. During mv88e6xxx_setup(), mv88e6xxx_setup_upstream_port() runs in ascending port order and dsa_upstream_port() returns port itself for every CPU port. Iteration 6 therefore overwrites the global CPUDest and monitor destination registers from port 5 to port 6. Trapped control frames such as IGMP, MLD, and STP BPDUs then egress port 6 toward the down eth0 interface and are silently dropped. Because mv88e6xxx_switch_ops lacks port_change_conduit, userspace cannot move user ports to eth0 or bond eth2 and eth0 into a conduit LAG. [Severity: Medium] Can bridged user ports duplicate flooded frames when eth0 is brought up alongside eth2? When user ports join a bridge, mv88e6xxx_port_vlan() adds every local DSA_PORT_TYPE_CPU port to each bridged port's Port Based VLAN Map without restricting it to dp->cpu_dp: drivers/net/dsa/mv88e6xxx/chip.c:mv88e6xxx_port_vlan() { ... dsa_switch_for_each_port(other_dp, ds) if (other_dp->type =3D=3D DSA_PORT_TYPE_CPU || other_dp->type =3D=3D DSA_PORT_TYPE_DSA || dsa_port_bridge_same(dp, other_dp)) pvlan |=3D BIT(other_dp->index); ... } Because dsa_tree_setup_conduit() attaches DSA RX handling to both eth2 and eth0 and dsa_conduit_find_user() does not check dp->cpu_dp, every broadcast, multicast, and unknown-unicast frame on a bridged port is flooded to both conduits and delivered twice to the same user netdev. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205050417.6134= 5-1-rosenp@gmail.com?part=3D1