From owner-freebsd-arm@freebsd.org Tue Jun 30 10:20:37 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 49CB13653B4 for ; Tue, 30 Jun 2020 10:20:37 +0000 (UTC) (envelope-from charlesr@scd-systems.net) Received: from mail.scd-systems.net (warbird.scd-systems.net [37.120.173.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.scd-systems.net", Issuer "mail.scd-systems.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49x0jw24p0z4DMD for ; Tue, 30 Jun 2020 10:20:35 +0000 (UTC) (envelope-from charlesr@scd-systems.net) Received: from mail.scd-systems.net (127.0.1.80 [127.0.1.80]) by mail.scd-systems.net (OpenSMTPD) with ESMTP id e6d54ce8 for ; Tue, 30 Jun 2020 10:20:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=scd-systems.net; h= reply-to:subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=default; bh=81mfZLEw7kRTLOLppXjQwKo1PuW2JMeww+AWKP1kKhY=; b=ZwtJMbfFmjg9 62EuNo4QCk4vFJV2yTzENMk+iGIypM0S7tQMFVINRlTfEM8UtgTdA4VIowagdmyX 4huGhhWLh8rFFVKtCVKcHnYAOCSmVLylNJW5Xk3dewwN6Q8LoOHD3As6Ie9qgy6m HEGnxluH+nCXwBYzVoQXBtlSxVzh94M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=scd-systems.net; h=reply-to :subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; q=dns; s= default; b=kTYvC5QWsAffeuIWF8AeL5eSuF9NWCOeBYCkeXOKDIYESoRtqlPja pIrkWeHHGiLUxTXJS1QM91U5LsXRhvoXWSW+Id6M0khsabqRdnDBIJ015+yy3WVM ZxGKroDWw6vA6bcIWP+iLCf1LzGQhmwbkoD6LP2WytxDmsfw+DHrh8= Received: from LT1006.fritz.box (127.0.1.254 [127.0.1.254]) by mail.scd-systems.net (OpenSMTPD) with ESMTPSA id e92a4781 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO for ; Tue, 30 Jun 2020 10:20:28 +0000 (UTC) Reply-To: charlesr@scd-systems.net Subject: Re: Rock64 dwc interface issues To: freebsd-arm@freebsd.org 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> <20200624145257.d0287e2df67db3597ee59412@bidouilliste.com> From: Charles Message-ID: Date: Tue, 30 Jun 2020 12:20:27 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200624145257.d0287e2df67db3597ee59412@bidouilliste.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49x0jw24p0z4DMD X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=scd-systems.net header.s=default header.b=ZwtJMbfF; dmarc=none; spf=pass (mx1.freebsd.org: domain of charlesr@scd-systems.net designates 37.120.173.96 as permitted sender) smtp.mailfrom=charlesr@scd-systems.net X-Spamd-Result: default: False [-2.40 / 15.00]; HAS_REPLYTO(0.00)[charlesr@scd-systems.net]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[scd-systems.net:s=default]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.02)[-1.018]; RCVD_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DKIM_TRACE(0.00)[scd-systems.net:+]; NEURAL_HAM_SHORT(-0.07)[-0.073]; DMARC_NA(0.00)[scd-systems.net: no valid DMARC record]; NEURAL_HAM_MEDIUM(-0.81)[-0.813]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197540, ipnet:37.120.160.0/19, country:DE]; MID_RHS_MATCH_FROM(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: Tue, 30 Jun 2020 10:20:37 -0000 Hi, Short update. I tried the patch from gonzo and the "IP truncated-ip - 16384 bytes missing" messages from tcpdump disappeard. But the packet lost did still exists until I changed the value: hw.usb.dwc_otg.phy_type to 4 (UTMI+). Before it was set to 1 (DWC OTG PHY TYPE - 0/1/2/3 - ULPI/HSIC/INTERNAL/UTMI+) I tried all types, only the UTMI+ type seems to work stable with my rock64 board. Is that expected for this board with FreeBSD? I did not compared linux right now. Maybe linux use also the UTMI+ type for OTG. Best, C. Am 24.06.20 um 14:52 schrieb Emmanuel Vadot: > 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, >