From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5236942049C for ; Thu, 13 Aug 2026 19:08:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786648100; cv=none; b=Im5OpFzrhUV6GhxjS+5L4H2UdsCkwKAR3NYTSfskFF9pCP3ZOBVLD/uvUPdOGfCLFES6dZzeTHlUCXZgIAQ+xyJk8Fwag0GDEdsTbpGKeAuk6sPaQDfte/MFx5uaxUhficB377irTaX8chiDsVFEpCzhlm5p5X3WSIEhuBt7dtk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786648100; c=relaxed/simple; bh=HZj+weV/1/7EoxP5W0AYiX97vOirYnjuweQQFbFN+8Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YUgwIIg1WBGjG1BFkkOU/kj7F/4QVydP6ZwZ89+uPFdPfu6TcmeG1yavMk7YYoarVxVau6L01IrRhwxSCFsVqxgIuLhf9AisDTsWVO1Xr7FlscDF0yP/ayCEKPvrqg87rL7lFB+eiM8KMQygOlGVIPmeKL836MAjnkUrJL2/fEk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YuMW+aWr; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YuMW+aWr" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-47f611b3af9so10653f8f.3 for ; Thu, 13 Aug 2026 12:08:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786648097; x=1787252897; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding: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=kw7FoD+bzLFhraFxvPfr1StE5DODuuLr8Azjhw6HlYE=; b=YuMW+aWr8/2nl3/bvP/lixAjM9aiaTU4/ju/zvu5Z71Kyg8kfaOYkIZf6y/cP3OyvH cy7no6kzVcWZ/DSIEZmcwwysOrHdh2yfuKwYBb5V8tNgfzgQpy7+hqVJSrrawRUlRuky gUNG8atuukMLxFdowCudWmiM/x/HpkbZnYw1tJD8gYw5J46eWJp4aidlUJaXgK1lvV6S BP/xUrL1Zu8p2PkkDqjVrnaA2oz3Kf+fP/Ye+DHpbnjjK6aLoAACww3qEftS2E7zaiCI yQqc2Al3mZKvGBXxGo/em0VPL4K0ULaeJD7AJhgu1QiKk4hELN663jojPA1VrxsZCBpk C34w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786648097; x=1787252897; h=in-reply-to:content-transfer-encoding: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=kw7FoD+bzLFhraFxvPfr1StE5DODuuLr8Azjhw6HlYE=; b=OT9TN9soNZm13C4BlLZTKbC8PAOjmiy7jytk3H9ynPuW3mLoj/TIH9MgIQxME7iRfn puY5mjja0hOvU5U01kgeZj48f5W2UhbnCd2/mvPaIR/kzxqn9gjlhJGL1uMRG+h8P1u9 oOiLf93pdXjYt0HLs4oZByV1RcwuKTmEUKbiI7ILhUKr+SeIr9H/PdCu20wrnoz2hGk6 SkzOVEW5sVsrFFsD9EuIe4xUfyDARFsX+hUz5ZS2UCVds3/gtGXe27zTE1OZF8sSqiDi CVzxJBLMKnl6Ts16RAPGvRILxjnLh001IRwIXSmrHH0Ce7Pyk/msyBgJVevMK9hNJ4UG aH1Q== X-Forwarded-Encrypted: i=1; AHgh+RowsGZYQrYGjCc6FArLLYQVB68DuVdvpm9ACwZNavJIDUVkQdm0V2wmKEi3m7JRyhC8UJg1x84=@vger.kernel.org X-Gm-Message-State: AOJu0Yyym7N4l72MD8g8H3diU9iXoAS/m2BoV7ktisthmVb3nVUQnaPR eHgasYmi72RU0SesphjUC0ZiLo5lErpoPT8Vi4dM5UlQite6nNqW8bsR X-Gm-Gg: AR+sD11KhVRtL0/3GMXAmER2C556HwA+FDWRmcAinPFq3NvQqHVjQkfY5s2lrx5njVS 8urPAX2+fOnV/scqxqIKZpthnC1EK488RDaXmSr7eH0jlynEZhBQd4F7CQEuOPmbbUfqQeSx5I1 GzqZN99VdVtNbdP+zetWPPh+P49PDGRsHLGYv3I/BX0pGn4cjzY0l1I77oOCiOpRnqALyo91U1w G2tjKFFi/r+Bc1BoSwSGmoJahESytdXeYu8FYU4KfzkiOuP+QGJPVKxrXvCuqqwNSPCOLyTCnia jrbkh0jMqq5haaZmoU8LufR4wmy61ODLmYubtGtONt5dMV/bWqrbaLrbnD2BDeIWxERQW2uxtbo lFUICaLsVTRaxVO9xCwnEBe0mxxKpg5pYXhHH6nNafu/ITUhvhE4MWtrC5l7Vmw4LkxgA8O6Ahf EEFdpHjh9RdHXU4PJxFoCfC1HiGjteFXStT8vC6u/61JP5i9MO X-Received: by 2002:a05:6000:1446:b0:47f:959f:d5e with SMTP id ffacd0b85a97d-481606984d0mr345336f8f.0.1786648097563; Thu, 13 Aug 2026 12:08:17 -0700 (PDT) Received: from skbuf ([86.127.220.200]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4815f2cd7ecsm1427509f8f.36.2026.08.13.12.08.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Aug 2026 12:08:16 -0700 (PDT) Date: Thu, 13 Aug 2026 22:08:13 +0300 From: Vladimir Oltean To: Semih Baskan Cc: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Jonas Gorski , netdev@vger.kernel.org, Hauke Mehrtens , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH V3 1/4 net] net: dsa: b53: deal with Northstar devices using CPU port 5 or 7 Message-ID: <20260813190813.63fjmjmciry6ubaf@skbuf> References: <20260812132755.32585-1-zajec5@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Aug 13, 2026 at 01:53:56PM +0300, Semih Baskan wrote: > With all three CPU ports enabled, GMNGCFG ends up in dual IMP mode > (0xc2 read back). In that mode a tagged frame whose VID is missing > from the VLAN table is delivered to no CPU port at all: an 8021q > upper on a standalone port receives 0 of 7 tagged probes, whether > the port 5 conduit is up or down. With port 8 as the only enabled > CPU port in the DT, where GMNGCFG reads 0b10, the same frames were > delivered. So the preferred CPU port alone does not revive > standalone 8021q uppers on DTs that enable all three ports. > > The same effect touches 4/4: the R8000 today has ports 5 and 7 > disabled, the single IMP configuration, and enabling them lands the > switch in dual IMP mode through the same driver path. If its switch > behaves like this BCM53011, standalone 8021q uppers on the R8000 > stop receiving with 4/4 applied. Where is the code that configures this GMNGCFG register? > On the RT-N18U the boot firmware provisions a MAC only for gmac0, > so gmac2 comes up with a random MAC and the bridge inherits it, > changing per boot. In the previous version, RafaƂ included a patch so that gmac2 uses the same MAC address as gmac0. Is this better? https://lore.kernel.org/netdev/20260811193658.14304-2-zajec5@gmail.com/