Received: by 10.213.65.68 with SMTP id h4csp1994226imn; Thu, 29 Mar 2018 15:17:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx49iHNj29W+Nq4+Um1J1JnwJVYnWK/4voZc4F/I4/caDVhDvBBMSRZBVGAEiOx3XnUggVh4E X-Received: by 2002:a17:902:e81:: with SMTP id 1-v6mr10560096plx.158.1522361853540; Thu, 29 Mar 2018 15:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522361853; cv=none; d=google.com; s=arc-20160816; b=scvktjM9watGeZ92mfHdIoE8o57gXOsKsV/Z9K5SoMN2vRAgSKwF/j2AmuBkTbbdoZ e2J9Qqho1f2WIrFkHwrCO67YEmbjDYDSCKjkBTljXkGOm46HNlEOE30iDw6pTvM0/U/F OVt7qtE9qsMkCLk3qiyhpNCmhOFg9gZO9s+N2SjnCfip6Axaa6fAcBZF7lfi60uyf/H/ F6+7oi8fsxuNfseak0ID7osZINEfx2onQCmSIhRCaVfszN5yuD55hLyedAUml7875B2T ppumITPc18JINNf8GS5pS8rZUrB30dRrfRDm0QX74LpCmt85vQrZRBfvAuSTeWXekKv7 nROA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=+KAPGkvy8Q8CePT9Y6ul34b5zrHg1D7BFcw5uC141Q8=; b=cdeDf9YRG612arcAyUMiyG0yJi+h4s9Lra3Y6acx+KeC3sRjqZX5t5ljybnTy1sbjr GdTrTXjbnjirIyEsFAlIUcCQCZDD1X9VV6SpztmcIIOGbJt0FUrU7oV7KR5dsmR2QuwQ 5wKmECOSDHPpRkJgra/T+4YG0PLJxhyPVI7YNjQirFQcq1yQITdkx6KXEHv8xbk4UK+q 5Fo0Ka1IFPV0tOosXm0UxUlWrCmEOkwBG6JijWfnPtgPiiMB85bmhPvVvDeEVNrB2wpO 5TG2DFJ1qSE4egHf+DDsWJiubdrN9whz5BxbrwLiF3lIWQGwU1+Cm8KOfAKeS6CQzqv+ BQFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TiQZLnLO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m32-v6si6686990pld.174.2018.03.29.15.17.19; Thu, 29 Mar 2018 15:17:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TiQZLnLO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752638AbeC2WQR (ORCPT + 99 others); Thu, 29 Mar 2018 18:16:17 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38220 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751896AbeC2WQP (ORCPT ); Thu, 29 Mar 2018 18:16:15 -0400 Received: by mail-wm0-f67.google.com with SMTP id l16so14132011wmh.3; Thu, 29 Mar 2018 15:16:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+KAPGkvy8Q8CePT9Y6ul34b5zrHg1D7BFcw5uC141Q8=; b=TiQZLnLOoag/vqCEycpwMGJrI8V2CNLEOpdahAwTUSvoob7ZRIcmHxhkjkPYLQ5LtK SYDyr9BJ4t2K/GJog1Vdk9nRuC2EKILxKIur+SeeItbf15Ahdz2Cs4gqueLhVAIMgmXF X7udCEIytPvM04sJpJ1gUdVIKF/GLNIcAzCIHtjuHypiSCk8UTex3/AlWgv0Xa2BJig0 a3vVuZZRxrRP0b48rzTCzK6rMxQIb1/iMPpSe4nLZiEdoYkkWJIry6enkXzO4ZCcVzO8 WMW9/jKdfsPyp5pbx9tNyB3k272MVyqEVuhTagPYljrtMmLVnimUxixlTujNL/MxItzk OSEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+KAPGkvy8Q8CePT9Y6ul34b5zrHg1D7BFcw5uC141Q8=; b=rxdih6Z9jozZ6WjczwKtzTHH7IO2Vh4hOf9/9DxPtIivtJxKNVEVDM/4Mx3zA16WAs Oeo9M0xY5Cb94eijSlJVAdNTJBaV8P0L+lhhae+de3sa0nGhwGlXtil8vARCqp921s2T F+mc45IndKRbw3K0Q+FLRuZEDgRbnwxb0qKqPI3WsdKDLy+0UxdksQYPAaJ6uQj8NQBy IZPHS5yAEnlI8Qp11W6eW+eBXFNWgvJC6qJ2e7idi/z9OfCc/77JDkHSAiShihnVPqGB YXTDRISixdA4n6wkGnH+JDcjIYwxmiztuvW6SbPWLAg2NSkROP1TAs2UJjfLP64DUdq4 CHdA== X-Gm-Message-State: AElRT7FZEVIzV5ngVppwcuLNntf5DE0Dy4Daz18K5Ek+NvNivfpJRA38 gvx3Y3dG+DUfcN0cXgP4k9gvnbKmgJqFCOx6gtM= X-Received: by 10.28.224.67 with SMTP id x64mr478876wmg.91.1522361773570; Thu, 29 Mar 2018 15:16:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.172.48 with HTTP; Thu, 29 Mar 2018 15:16:12 -0700 (PDT) In-Reply-To: <20180309220530.nz2qkuipjqabus5h@osboxes> References: <1489590033-4946-1-git-send-email-npcomplete13@gmail.com> <20180302194155.50808-1-npcomplete13@gmail.com> <88e9d209-c45e-0e8f-53ce-4705d0b7e3c2@gmail.com> <20180309220530.nz2qkuipjqabus5h@osboxes> From: Vivek Unune Date: Thu, 29 Mar 2018 18:16:12 -0400 Message-ID: Subject: Re: [PATCH v2] ARM: dts: BCM5301X: Add support for Linksys EA9500 To: Florian Fainelli Cc: Hauke Mehrtens , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Jon Mason , bcm-kernel-feedback-list , Rob Herring , Mark Rutland , Russell King , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , Jon Mason Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Florian, On Fri, Mar 9, 2018 at 5:05 PM, Vivek Unune wrote: >> > + >> > + port@5 { >> > + reg = <5>; >> > + ethernet = <&gmac0>; >> > + label = "cpu"; >> > + >> > + fixed-link { >> > + speed = <1000>; >> > + full-duplex; >> > + }; >> > + }; >> > + >> > + port@7 { >> > + reg = <7>; >> > + ethernet = <&gmac1>; >> > + label = "cpu"; >> > + >> > + fixed-link { >> > + speed = <1000>; >> > + full-duplex; >> > + }; >> > + }; >> > + >> > + port@8 { >> > + reg = <8>; >> > + ethernet = <&gmac2>; >> > + label = "cpu"; >> > + >> > + fixed-link { >> > + speed = <1000>; >> > + full-duplex; >> > + }; >> > + }; >> >> None of this is wrong, but DSA effectively will take the first port >> specified with a "cpu" label and declare it as the one and only CPU port >> it supports. If the architecture on Northstar is similar to what is done >> on Northstar Plus, port 5 can be either internal or external PHY, port 7 >> is indeed gmac1, and port 8 is connected to the flow accelerator, which >> should be in "bypass" mode by default. We can always change that later >> on if we have to anyway. > > From what I understand from the source is that gmac0 and gmac1 in NorthStar > are connected to FA while gmac2 is connected to port8 > Although I could be completely wrong :) > > Snippet from GPL source [1]: > > * A typical GMAC configuration is: > * GMAC#0 - port#5 - fwd0 <---> wl0 (radio 0) on CPU core0 > * GMAC#1 - port#7 - fwd1 <---> wl1 (radio 1) on CPU core1 > * > * GMAC#2 - port#8 - eth0 <--- vlan1 ---> br0 > > Note: EA9500 has three radios, fwd0 is connected to even numbered radios > While odd numbered radios are connected to fwd1. Also, fw0,fw1 and eth0 > listed above are devices created by the factory firmware. Correction: Port 5 and port 7 act as forwarders and are not connected to flow accelerator. And you are right, port 8 is connected to flow accelerator. Although, it seems it is not enabled in Linksys factory firmware. Some more excerpt from GPL source: * Northstar router includes 3 GMAC ports from the integrated switch to the Host * (single or dual core) CPU. The integrated switch provides advanced ethernet * hardware switching functions, similar to that of a Linux software bridge. * In Northstar, this integrated HW switch is responsible for bridging packets * between the 4 LAN ports. All LAN ports are seen by the ethernet network * device driver as a single "vlan1" interface. This single vlan1 interface * represents the collection of physical LAN ports on the switch, without * having to create a seperate interface per LAN port and adding each one of * these LAN interfaces to the default Linux software LAN bridge "br0". * The hardware switch allows the LAN ports to be segregated into multiple * bridges using VLAN (Independent VLAN Learning Mode). Again, each subset of * physical LAN ports are represented by a single interface, namely "vlanX". * * The 3 GMAC configuration treats the primary WLAN interface as just another * LAN interface (albeit with a WLAN 802.11 MAC as opposed to an Ethernet 802.3 * MAC). Two of the three GMACs are dedicated for binding the primary WLAN * interfaces to the HW switch which performs the LAN to WLAN bridging function. * These two GMACs are referred to as Forwarding GMACs. * The third GMAC is used to connect the switch to the Linux router network * stack, by making all LAN and WLAN ports appear as a single vlan1 interface * that is added to the software Linux bridge "br0". This GMAC is referred to * as the Networking GMAC. * * Similar to LAN to WAN routing, where LAN originated packets would be flooded * to the WAN port via the br0, likewise, WLAN originated packets would re-enter * Linux network stack via the 3rd GMAC. Software Cut-Through-Forwarding CTF * will accelerate WLAN <-> WAN traffic. When the hardware Flow Accelerator is * enabled, WLAN <-> WAN traffic need not re-enter the host CPU, other than the * first few packets that are needed to establish the flows in the FA, post * DPI or Security related flow classification functions.