From owner-freebsd-arm@freebsd.org Mon Apr 17 12:28:30 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84D00D413E4 for ; Mon, 17 Apr 2017 12:28:30 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: from mail-ua0-x234.google.com (mail-ua0-x234.google.com [IPv6:2607:f8b0:400c:c08::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 320051257 for ; Mon, 17 Apr 2017 12:28:30 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: by mail-ua0-x234.google.com with SMTP id f10so51400398uaa.2 for ; Mon, 17 Apr 2017 05:28:30 -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=IiX0cKw2L2nfgcA+DJCbqkIS4KjTztw0sXQcPOuy08Y=; b=teJ4QOcDFk4dZ0r1o6A4CfdVcR8uo4veqSrmYVNELKx2gkC84l9wpOg3p8h6IySSCn 4VLI8Kxbuq/hr6RMwOeHMv+ZdbuKpWRp3HiU3GqoblPtaqdzDlhN4rafW+7VFHVkTqFU wmeOFnQ7N5ccgGVD72qhik3FkcMfPZQqDOAWKsK5VjYyMMT3w0wA6PYqS3gPUzToUAVa j2SuzrEGzggBIzfQyLZuGXOu7zu+rlyDi6bGwPx50TJTr7izpCPuoxzVANW9rQX/DijU LI/uQQYle9ad8TonwQcVczGOj3dPuk8qn2rx02rTzyw79oY2+Gl/KqRSj7gb6zdq7ZKC vDAA== 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=IiX0cKw2L2nfgcA+DJCbqkIS4KjTztw0sXQcPOuy08Y=; b=eHS4AIhvTQI+bPc+Dobth6nU6LFdbNTDe2yxk8XcWDh1apkTbhaw+Z13we35C6d8XW xVQ69vGoLGHCAoSiKNeCfzpdxCS/WCzfMBJSgJZoX0XnTIRDJaTmXgYNz3MLIzN11XVb PuQRISoz/Y8Eq4WJVYzoZ54Dc6ECBOc2uF587oXmYwQ7woSLWjWN9u5btv09FUE3ymmy VLb+kvo/xNTgDFs8EVK8D+yZaU+lWH+iB5wVvUrh63nZPd5xXuu9g2mO1d7hTgmr4aYU ZDTmMwsvAUt8VUZIx04/d1vr5qpFwCEp8hDuqF276tPsYmy+wcv3NiIGCrroZEYKnZld 1hMw== X-Gm-Message-State: AN3rC/65+gnmyIKBD6x+jJomk39OnjQiVpCRE+/sQei/pdz5SPXgGCZW +Tqc4iin5aiNqz4URi0a6cXJWnl7sQ== X-Received: by 10.176.80.148 with SMTP id c20mr10071833uaa.0.1492432109227; Mon, 17 Apr 2017 05:28:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.166.75 with HTTP; Mon, 17 Apr 2017 05:28:28 -0700 (PDT) In-Reply-To: References: <622336.93399.qm@web101714.mail.ssk.yahoo.co.jp> <107064.50750.qm@web101717.mail.ssk.yahoo.co.jp> From: Michael Zhilin Date: Mon, 17 Apr 2017 15:28:28 +0300 Message-ID: Subject: Re: Can't use mge on 88F5181 To: Adrian Chadd Cc: Mori Hiroki , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2017 12:28:30 -0000 Hi Adrian, Hiroki, Did you manage this issue? Actually I see similar issue with BCM53115/53125 and bgmac/dwc. What I have: - Asus RT-N53 with working bgmac driver and with embedded switch (BCM5758) - Asus RT-N16 (dead) and Netgear WNR3500: same bgmac driver and external switch BCM53115 and CPU BCM4718 and default configuration (unmanaged mode, all in one VLAN, port based VLAN is on, 1Q VLAN is on). Laptop sends packets and according to switch's MIB switch forwards it to CPU port and according to gmac's MIB packets are received by gmac (roughly same size, wireshark shows 42 send bytes, MIB shows 44 received bytes), there is no errors in MIB (like corrupted packets), but there is no interrupts/DMA transactions as well. I don't know what is actual problem, but it seems that DMA of bgmac doesn't work. Same code works with embedded switch. If you have any idea, please Thanks! On Fri, Apr 14, 2017 at 12:00 AM, Adrian Chadd wrote: > hi, > > I'd have to go dig through the datasheets of everything to see what > the deal is. :( it could be ethernet switch side, it could be > interface config mismatch (MII, RMII, RGMII, SGMII, PSGMII, etc.); it > could be clock configuration (if it's MII, the clock is changed based > on 10/100; later interfaces run at a constant speed and just > bitstuff), etc, etc. > > Can you get per-switch-port counters on the switch? Is the CPU port on > the switch seeing traffic? > > > -adrian > > > On 12 April 2017 at 22:26, Mori Hiroki wrote: > > Hi. > > > > No arp and unicast packet receive mge checked by tcpdump command > > on this target. Also no pacet trans checked by tcpdump command on > > other machine. netstat -i have trans packet count without error. > > But no receive other machine. MIDO switch control is work fine. > > Giga switch physical port to physical port is receive and trans > > is fine. But cpu port nothing. > > > > My e6060sw.c code have dot1q support by VTU access code. e6000sw > > don't have it. I want add dot1q code to e6000sw too. But It is > > very hard no data sheet. > > > > I found ml topics is this type target at 2011. That subject is > > "Embedded switch instead of stadard PHY". I seem this is origin > > of etherswitch. > > > > Thanks > > > > Hiroki Mori > > > > > > ----- Original Message ----- > >> From: Adrian Chadd > >> To: Mori Hiroki > >> Cc: "freebsd-arm@freebsd.org" > >> Date: 2017/4/12, Wed 09:55 > >> Subject: Re: Can't use mge on 88F5181 > >> > >> hiya, > >> > >> did you figure it out? > >> > >> Is there something like CRC, etc packet errors or something on RX? > >> > >> > >> > >> -adrian > >> > >> > >> On 4 April 2017 at 04:42, Mori Hiroki wrote: > >>> Hi. > >>> > >>> I try to use Buffalo WZR-AMPG300NH. This module have 88F5181 and > 88E6131. > >>> I modify dev/mge and dev/etherswitch/e600sw/e6000sw.c. > >>> > >>> Network interface mge is detect but not work. Switch port is work by > >>> port vlan. But CPU connected port3 is nothing trans and receive > packet. > >>> > >>> I check marvell code but not fix this problem. > >>> > >>> If you have advice, please let me know. > >>> > >>> > >>> This is dmesg. > >>> > >>> https://gist.github.com/yamori813/ecd5df1b314053a73f310c1122775540 > >>> > >>> > >>> Thanks. > >>> > >>> Hiroki Mori > >>> _______________________________________________ > >>> freebsd-arm@freebsd.org mailing list > >>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm > >>> To unsubscribe, send any mail to > >> "freebsd-arm-unsubscribe@freebsd.org" > >> > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >