From owner-freebsd-arm@freebsd.org Sun Jun 21 16:54:07 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 79183355015 for ; Sun, 21 Jun 2020 16:54:07 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49qdt56yM7z4Fjv for ; Sun, 21 Jun 2020 16:54:05 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1592758443; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6Eu6KBxF1LL5Q7EUkpL02hfNkH2+bAbnnkarqaZqXnw=; b=aiQ4pCSMM7T1yHsgCRLRv/eM2PA2eqRYXxH4EHWc7bEZEKlqQ5Glmqibt2keaTFdraA4Yx cexctf08w7bRIKbRYyqvzGPFuEAydzsFEWCs7r8CJ3UEMV6mrDBOg63lTqedlizvzVMpg9 CkFyOW99GX+VUhkQ6dIDd4OGjI5uzBc= Received: from amy.home (lfbn-idf2-1-900-181.w86-238.abo.wanadoo.fr [86.238.131.181]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 4f636ede (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 21 Jun 2020 16:54:02 +0000 (UTC) Date: Sun, 21 Jun 2020 18:54:02 +0200 From: Emmanuel Vadot To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Cc: charlesr@scd-systems.net, freebsd-arm@freebsd.org Subject: Re: Rock64 dwc interface issues Message-Id: <20200621185402.9d40f269cb07706242622af6@bidouilliste.com> In-Reply-To: <48C101F9-9C1F-46EB-A092-EE903D5070D1@gmail.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> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 49qdt56yM7z4Fjv X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=aiQ4pCSM; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.53 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.06)[-1.056]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-0.97)[-0.968]; NEURAL_HAM_MEDIUM(-1.01)[-1.008]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; 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: Sun, 21 Jun 2020 16:54:07 -0000 On Sun, 21 Jun 2020 11:38:38 +0200 S=F8ren Schmidt wrote: >=20 > On 19 Jun 2020, at 19.42, Emmanuel Vadot wrote: >=20 > >=20 > > I've just took the last image for rock64 and rockpro64 to test on my > > boards (I usually netboot but testing the image give a common reference > > between everyone). > > As a reference the image I've burned on the sd are : > > FreeBSD-13.0-CURRENT-arm64-aarch64-ROCK64-20200618-r362292.img.xz > > FreeBSD-13.0-CURRENT-arm64-aarch64-ROCKPRO64-20200618-r362292.img.xz > >=20 > > On Rock64 v2.0 (2017-0713) I see no issues, I got an IP from my dhcp > > server and could install packages properly. > > Using iperf3 I have ~275Mbits/sec which isn't great but we're aware of > > the bad perf of the dwc(4) driver. >=20 > I checked my build env, and the error was that I didn?t change the u-boot= used (got the pinebookpro version mixed in). > Using the correct u-boot makes the dwc net work. Cool, good to know that it's working now. > However, I did use the correct DTB for the kernel to use (static build in= to be sure), so it should have configured things correctly shouldn?t it ? = I guess we inherit lots of things from u-boot that does not get initialised= by the kernel even if the correct DTB is in place. > Funny thing is that it appeared to work, led?s and all, but no traffic wa= s coming through. Agreed that it should work, it's been a long time that I've check every driver using a u-boot recompiled to remove support for them to make sure that we didn't missed a thing, maybe it's time I do it again. > > On RockPro64 v2.1 I also see no issues, iperf3 give the same speed > > result for tx but rx is worse (~100Mbits/sec). >=20 > It the 2.1 version I?ve got btw. >=20 > > S=F8ren, what are your hack for R40 (which do not have support for in > > term of clock so I'm not surprise that you need "something" for it).=20 >=20 > I have implemented the clks etc that?s missing from our support, but inst= ead of mutilating the dwc driver, I?ve hacked up an older version (before s= yscon etc went in) and made it work with the R40 way of things as a new dri= ver. Ok. > All this is done on a 12-stable tree though, but I guess it could be move= d to -current rather easily. It does make the Bananapi M2 Berry work quite = nicely (except video which I have no use for. >=20 > -S=F8ren I'll happily review your patches if you port them to current at one point. --=20 Emmanuel Vadot