From owner-freebsd-arm@freebsd.org Wed Jun 24 12:53:01 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 E0C5534E58E for ; Wed, 24 Jun 2020 12:53:01 +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 49sNNX3nzRz46D6 for ; Wed, 24 Jun 2020 12:53:00 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1593003177; 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=UbZ27HpKsJ4QM5Q4wOZUJXqnFOW8+PCw5fdaIg+yQ1Q=; b=uSXE+a8CETPkq8cJjuPCx2e1Mq4sMbD7u94hkevzgPwftESEiKNIsHC7u+cHX9sWp2KDg/ KmJ6Lt1NjbjXPZiZCZ7g/bb3cgqRY1HxVM7dd7jbK4J9Gp5M4R0TKMS7+etNok1doKYhuF /Xoc3chXpua02QWW5Fdb1UJOyRp3rnM= Received: from skull.home.blih.net (lfbn-idf2-1-900-181.w86-238.abo.wanadoo.fr [86.238.131.181]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 2486e945 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 24 Jun 2020 12:52:57 +0000 (UTC) Date: Wed, 24 Jun 2020 14:52:57 +0200 From: Emmanuel Vadot To: Oleksandr Tymoshenko Cc: Charles , freebsd-arm@freebsd.org Subject: Re: Rock64 dwc interface issues Message-Id: <20200624145257.d0287e2df67db3597ee59412@bidouilliste.com> In-Reply-To: <20200622191015.GA55660@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> <20200622071600.GA41924@bluezbox.com> <20200622191015.GA55660@bluezbox.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49sNNX3nzRz46D6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=uSXE+a8C; 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 [-2.92 / 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]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-0.99)[-0.989]; 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.45)[-0.447]; NEURAL_HAM_MEDIUM(-0.98)[-0.980]; 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: Wed, 24 Jun 2020 12:53:01 -0000 On Mon, 22 Jun 2020 12:10:15 -0700 Oleksandr Tymoshenko wrote: > Charles (charlesr@scd-systems.net) wrote: > > Hi gonzo, > > > > > > In 100Mbit mode the interface does not respond to any arp who-is > > requests (tcpdump). So no icmp request are send nor received the rock64. > > Then I tried to connect the laptop directly to the rock64 (Interface to > > interface connection 1GBit) --> Same packet lost issue as before. > > > > The tcpdump on dwc0 interface reports: > > > > IP truncated-ip - 16384 bytes missing > > > > > > I also tried to replace the /boot/dtb/rockchip/rk3328-rock64.dtb against > > the Linux version (75kb size instead 54kb size FreeBSD Version) without > > success. > > Could you try this patch? > > https://people.freebsd.org/~gonzo/arm/patches/dwc-rk-delays.diff > > -- > gonzo Hi gonzo, Just tested this patch on rockpro64 and rock64 and this works for me. Whatever leads me to commit https://svnweb.freebsd.org/base?view=revision&revision=335445 seems fixed now ? In rk3399_set_delays you print rk3328 btw. And both printfs that shows the delay should be under bootverbose. With that you can commit with Reviewed by: manu :) I don't think that it will help Charles but the code make sense and matches the TRM. Thanks, -- Emmanuel Vadot