From owner-freebsd-arm@freebsd.org Sun Jun 21 09:38:42 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 049163486E2 for ; Sun, 21 Jun 2020 09:38:42 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49qSCj1rMDz4dxG for ; Sun, 21 Jun 2020 09:38:40 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-wm1-x344.google.com with SMTP id g75so4140736wme.5 for ; Sun, 21 Jun 2020 02:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=gzs/spO3FZBrbvAxJujn0WKAu/zJtdarPJSnBZv1Dlg=; b=dfSvo6qd621SMNmpzaEs584ReNyzdm6vFuGAs++tFCfqZ0l9i/FF10UdGWsX5ebG/Z MksNk2gtt+r8Jd5tqPqfQxjCFF7jAa7IaltYp5qkyf7nBG/oEQyoPuOjaxEyfHJUgLE1 +Ahg4RuXz3sPxVoyRaXRItU0FOFCTwgmt1P9Tg2SuHRgpJqoJFj51xEU5Mn9PKrYs1AF Kt/+TJgPkYuLlTvIva//VoacHXdwAGXBRoyP0oyR9R1ZULbhWeIcQtYYh/3OQSLMGMmp Xd6uhmN8hRvrRLnOP0FLxrMwoKmJCb/j9wU8FN79rQcVu73uC7bek5VwKmJt7Zqgvits 7UeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=gzs/spO3FZBrbvAxJujn0WKAu/zJtdarPJSnBZv1Dlg=; b=LR1mkul5S1pZlZczmxGLK5YIdZAayEemAHLQkbMEkqHRf7QV2V95w5zdHt3Tx7QHGJ 5TFzJqg8Zu8vKjtJkvTA3Cc3HdmtuZwhEz2Ek6TM3pNxyhvl/aG+Web2J//FJan94b/s crJUlHic9+2BZPRH2pT+7P92wLcZQA6F81sp2JB+RK01XuCnrB525vwr6dX/o8faErzK Uq/uOL3kEulFc/9Tu8E5HqZ9oWL2v6EA2ZWJTXQjy4/VgcZFkuAVB15ft6263TdcYGZA iMklIjAbpNxXHuDPG5weKYOWuqF908QzxmUyT59qcADnxw59trW73VN8eLENWtSDF8pF GSJA== X-Gm-Message-State: AOAM531XeJ58JobePwZbBivqSwh9p4QRADbThkYFr2TaPuBiij93pVyo eQgzPgyed6+mnxuZrMTbdyG7Tk3DMjViDQ== X-Google-Smtp-Source: ABdhPJw2GY5ThctgN8gSlOF7BiHMMGESuz/Gi5H5NgFXwzWZS8FLaqo7JOMdBmSWQGbaT8g6f2uXIg== X-Received: by 2002:a1c:ed17:: with SMTP id l23mr12628255wmh.175.1592732319776; Sun, 21 Jun 2020 02:38:39 -0700 (PDT) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id c201sm8288481wmd.4.2020.06.21.02.38.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Jun 2020 02:38:39 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Rock64 dwc interface issues From: =?utf-8?Q?S=C3=B8ren_Schmidt?= In-Reply-To: <20200619194222.73bc7dd705f6d80e63757796@bidouilliste.com> Date: Sun, 21 Jun 2020 11:38:38 +0200 Cc: charlesr@scd-systems.net, freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <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> To: Emmanuel Vadot X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 49qSCj1rMDz4dxG X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=dfSvo6qd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::344 as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-3.02 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.13)[-1.131]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(0.71)[subject]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.05)[-1.049]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.06)[-1.059]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::344:from]; 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 09:38:42 -0000 On 19 Jun 2020, at 19.42, Emmanuel Vadot wrote: >=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. I checked my build env, and the error was that I didn=E2=80=99t change = the u-boot used (got the pinebookpro version mixed in). Using the correct u-boot makes the dwc net work. 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=E2=80=99t 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=E2=80=99s and all, but no = traffic was coming through. > On RockPro64 v2.1 I also see no issues, iperf3 give the same speed > result for tx but rx is worse (~100Mbits/sec). It the 2.1 version I=E2=80=99ve got btw. > S=C3=B8ren, 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= I have implemented the clks etc that=E2=80=99s missing from our support, = but instead of mutilating the dwc driver, I=E2=80=99ve hacked up an = older version (before syscon etc went in) and made it work with the R40 = way of things as a new driver. All this is done on a 12-stable tree though, but I guess it could be = moved to -current rather easily. It does make the Bananapi M2 Berry work = quite nicely (except video which I have no use for. -S=C3=B8ren=