From owner-freebsd-arm@freebsd.org Mon Jun 22 07:16:09 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D3840342AAD for ; Mon, 22 Jun 2020 07:16:09 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [45.55.20.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49r10n0dWCz4HR5 for ; Mon, 22 Jun 2020 07:16:08 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from localhost ([127.0.0.1] helo=id.bluezbox.com) by id.bluezbox.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92 (FreeBSD)) (envelope-from ) id 1jnGgT-000Az1-2j; Mon, 22 Jun 2020 00:16:01 -0700 Received: (from gonzo@localhost) by id.bluezbox.com (8.15.2/8.15.2/Submit) id 05M7G0xj042222; Mon, 22 Jun 2020 00:16:00 -0700 (PDT) (envelope-from gonzo@bluezbox.com) X-Authentication-Warning: id.bluezbox.com: gonzo set sender to gonzo@bluezbox.com using -f Date: Mon, 22 Jun 2020 00:16:00 -0700 From: Oleksandr Tymoshenko To: Charles Cc: freebsd-arm@freebsd.org Subject: Re: Rock64 dwc interface issues Message-ID: <20200622071600.GA41924@bluezbox.com> References: <877d6e2d-6cd8-30f3-08c3-60a2bacb5873@scd-systems.net> <7B4746AD-A8B7-43F0-B5EC-F3812A91F344@gmail.com> <20200619194222.73bc7dd705f6d80e63757796@bidouilliste.com> <48C101F9-9C1F-46EB-A092-EE903D5070D1@gmail.com> <20200621185402.9d40f269cb07706242622af6@bidouilliste.com> <9ca8c4b2-232f-a23e-fd1c-f3d93567977e@scd-systems.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ca8c4b2-232f-a23e-fd1c-f3d93567977e@scd-systems.net> X-Operating-System: FreeBSD/11.2-RELEASE-p10 (amd64) User-Agent: Mutt/1.12.1 (2019-06-15) X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: Charles (charlesr@scd-systems.net) wrote: > Hi, > > > My rock64 dwc0 issues still appears. > > I tried the > FreeBSD-13.0-CURRENT-arm64-aarch64-ROCK64-20200618-r362292.img.xz Image > without success. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Rspamd-Queue-Id: 49r10n0dWCz4HR5 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of gonzo@bluezbox.com designates 45.55.20.155 as permitted sender) smtp.mailfrom=gonzo@bluezbox.com X-Spamd-Result: default: False [-2.73 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.01)[-1.009]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.02)[-1.023]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[bluezbox.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.39)[-0.394]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14061, ipnet:45.55.0.0/19, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2020 07:16:09 -0000 Charles (charlesr@scd-systems.net) wrote: > Hi, > > > My rock64 dwc0 issues still appears. > > I tried the > FreeBSD-13.0-CURRENT-arm64-aarch64-ROCK64-20200618-r362292.img.xz Image > without success. > > The bad CRC sum errors still occurs. > > To make sure that the hardware is not defect, I tried a Linux distro. > (armbian) and with Linux I did't had any network issues/errors with the > rock64 ethernet interface (was able to login via ssh). > > I also tried OpenBSD 6.7 and got interface issues like with FreeBSD. Hi Charles, Could you try 100MB connection? Either connect the Rock64 to 100Mb switch or connect it to the FreeBSD box directly and on the box's side run this command: ifconfig IFACENAME media 100baseT mediaopt full-duplex I wonder if link speed makes any difference. This looks suspiciously like a problem I had with RK339, where tx_delay/rx_delay was not set properly. And if I read the code correctly, our driver does not set those values yet. -- gonzo