From nobody Wed Nov 16 10:33:53 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NBztJ17ylz4hWhs for ; Wed, 16 Nov 2022 10:34:00 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NBztH4Sbnz41gg for ; Wed, 16 Nov 2022 10:33:59 +0000 (UTC) (envelope-from manu@bidouilliste.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1668594837; 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=exIiiE3hpZX4nUoXX9DDCuhAtlT/yxWispuc9dT5NwE=; b=LmwA7rorfqNj9DkD8F6ty3nvxzqafPTKuiHNRZLbf38yuEsyZ0N09JW/fWsPYUUDEtN9+a IyTYUiNqw9VihlsZZNhlorv7nidAB9fpiHMqxVVc2V0zV38cLpbBS2+o3Ovog3DA4uE2ou aqkbODQtTH9ZWiRgW7SX7p+zeTs7MSU= Received: from skull.home.blih.net (lfbn-lyo-1-2174-135.w90-66.abo.wanadoo.fr [90.66.97.135]) by mx.blih.net (OpenSMTPD) with ESMTPSA id d95361a2 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 16 Nov 2022 10:33:57 +0000 (UTC) Date: Wed, 16 Nov 2022 11:33:53 +0100 From: Emmanuel Vadot To: Mark Millard Cc: freebsd-arm Subject: Re: FYI: Rock64 USB3 port no longer works for main [so: 14] (looks like dtb changes invalidating use of the old .dtbo and needing kernel changes) Message-Id: <20221116113353.247b6c024076a99c6e941588@bidouilliste.com> In-Reply-To: References: <8A639ABB-D8CC-47D6-A106-A5E2463E7AEE@yahoo.com> <665C125A-3E2B-408F-8F6E-B2D23237F06A@yahoo.com> <20221115140522.f94fa1cb62131b6591a073f0@bidouilliste.com> <041B0111-7D71-4FBF-B661-E03F2CCD7D9A@yahoo.com> <20221115221236.6c93f74861e2e58f3aa5a2e9@bidouilliste.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4NBztH4Sbnz41gg X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Tue, 15 Nov 2022 15:06:24 -0800 Mark Millard wrote: > On Nov 15, 2022, at 13:12, Emmanuel Vadot wrote: > > > On Tue, 15 Nov 2022 13:03:45 -0800 > > Mark Millard wrote: > > > >> On Nov 15, 2022, at 05:05, Emmanuel Vadot wrote: > >> > >>> On Fri, 4 Nov 2022 12:31:51 -0700 > >>> Mark Millard wrote: > >>> > >>>> On 2022-Oct-22, at 23:00, Mark Millard wrote: > >>>> > >>>>> Well, turns out that part of the "Import device-tree files > >>>>> from Linux 5.14" is: > >>>>> > >>>>> https://cgit.freebsd.org/src/commit/sys/contrib/device-tree/src/arm64/rockchip/rk3328-rock64.dts?id=5956d97f4b32 > >>>>> > >>>>> which has: > >>>>> . . . > >>>> > >>>> > >>> > >>> Hi Mark, > >>> > >>> See https://reviews.freebsd.org/D37392 (and child reviews) for a fix. > >>> This was indeed the import of the new DTS files that caused the first > >>> problem (there is no glue node in rk3328.dtsi like in other SoCs or > >>> like our overlay). The other commit responsible for breaking USB3 > >>> support was the addition to RK356x SoC, the check was bad for when to > >>> force USB2. > >> > >> Thanks. > >> > >> I applied the diff and the 2 child diff's and rebuilt and > >> installed, including updating the kernel on the e.MMC that > >> is historically used to mount the rootfs on USB3 when the > >> USB3 drive is plugged in there. (U-boot does not handle > >> the USB context I want.) > >> > >> . . . > >> > >> > > > > Looks like you're missing https://reviews.freebsd.org/D37394 > > Hopefully this time I have all the childern, grandchildern, etc. > Sorry for the screwup. > > But the behavior observed is unchanged in this attempt. > > A diff of the console output of booting via USB2 this time > vs. the prior report's USB3 failure log reveals no differences > between the latter part of the block of: > > clknode_link_recalc: Attempt to use unresolved linked clock: hdmi_phy > Cannot get frequency for clk: hdmi_phy, error: 9 That's not related. > and the later: > > Trying to mount root from ufs:/dev/gpt/Rock64root []... > uhub2: 1 port with 1 removable, self powered > uhub1: 1 port with 1 removable, self powered > uhub0: 1 port with 1 removable, self powered > > No DWC3, XHCI, etc. > > But a boot -v does report: > > ofwbus0: mem 0xff600000-0xff6fffff irq 50 compat rockchip,rk3328-xhci (no driver attached) > > Note the "xhci" instead of "dwc3". There is no such thing as rockchip,rk3328-xhci in our dts but there is one in the embbeded u-boot one, you likely don't have a correct DTB on the msdos partition. Cheers, -- Emmanuel Vadot