From nobody Sun Oct 23 06:00:19 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 4Mw6xn26Q8z4gCcT for ; Sun, 23 Oct 2022 06:00:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic307-54.consmr.mail.gq1.yahoo.com (sonic307-54.consmr.mail.gq1.yahoo.com [98.137.64.30]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mw6xl4G5Tz3qPP for ; Sun, 23 Oct 2022 06:00:27 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666504825; bh=nM709V7PxCP95cLt4UNtoKhxZQEiNBrIpg7rhGCshA4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=RhXCUqOz6ly0C75fLCt1oOfU40hlSi0Ehh4FFN4Qw5t48WAXgQEf3xPXJMyGDFvEbsMhmkT8vqHYG4yLtexuPL/KmJ3bNg7mQmFYkKjblYeFohgNlBwUv318Nc/fN1GavesVLioXkszIiHR8V3u5UdzPxjpDBVUH6+XcZ85ru8YY+pb5SkWiUcZhrldtSOx0aQRVc9PAiY26iM9ckCtJd0Qfhk8b5gxCPjGAiXZiP7vX0OVOaYOesPjR2/HSAq3/07Q8lKAKuzc74enfdKV78fNjkw7vuKdWtN8t6KvOVwv+7iVUriasTj0BHVFha1LW6uKuQET6etRVgzLgA1TEGA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666504825; bh=6pFc6NFUA7fDlrmiuo/3agUZVyfvnsKpA36ljzVEcBc=; h=X-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TGFHH2OQnvGsrDLWj5kDGY5ZIy8B_e1Y2mCw OMetSRHA1Usr901cROPEoRbeFLCST1HSqgY.OKEc66WQnixy6NtmSj0kQgZrLS4zvRc8SPCklboP qY2W9dO9mlImha1Rij3NDmNS9rjo6SJyf64lQs9DONHpFK5R8jPpMR77y2glAvrLKY1JPrU3.Py8 gFTQpLSjKH1elp16bjHxJsX3WC6QupT6uR06OioiZst_GY_QY_GqNcSqXss35LMdvlJmvbvKmjuA wx.2MTtjndODZupO7NN.3xQysZ4BAfJTIOS28I1YOsCaew2CsvIpYy.V5snWPJSuoLnM3g4icX8R ysc.rxUfS_vsOy97DfpwdCnLSq9L_xWRtxaKHTN4HLtFIjTj36XrxmKR1asCewT.6KOpK44p0Anj 0X6OJ0fJQC7n74.ESqvQaaR1C.3VTbWMtpq0Tbf4uIFJrAXN8qPOTfw7X30IplTNNCVepi9D1893 25UevShNd4onVtpuMkPK0VcNlnUMMry_DxUuDr_sfxOvXUl.Krcp37PG9ai_TI1kgHATzLoDjZA- - X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Sun, 23 Oct 2022 06:00:25 +0000 Received: by hermes--production-ne1-c47ffd5f5-cr29n (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 40f47d1b3681537df2df62980dd32554; Sun, 23 Oct 2022 06:00:21 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) 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) From: Mark Millard In-Reply-To: <8A639ABB-D8CC-47D6-A106-A5E2463E7AEE@yahoo.com> Date: Sat, 22 Oct 2022 23:00:19 -0700 Cc: Emmanuel Vadot Content-Transfer-Encoding: quoted-printable Message-Id: <665C125A-3E2B-408F-8F6E-B2D23237F06A@yahoo.com> References: <8A639ABB-D8CC-47D6-A106-A5E2463E7AEE@yahoo.com> To: freebsd-arm X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4Mw6xl4G5Tz3qPP X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=RhXCUqOz; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.30 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.997]; NEURAL_HAM_LONG(-0.99)[-0.994]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.30:from]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N 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/rock= chip/rk3328-rock64.dts?id=3D5956d97f4b32 which has: diff --git = a/sys/contrib/device-tree/src/arm64/rockchip/rk3328-rock64.dts = b/sys/contrib/device-tree/src/arm64/rockchip/rk3328-rock64.dts index 3bef1f39bc6e..1b0f7e4551ea 100644 --- a/sys/contrib/device-tree/src/arm64/rockchip/rk3328-rock64.dts +++ b/sys/contrib/device-tree/src/arm64/rockchip/rk3328-rock64.dts @@ -381,6 +381,11 @@ status =3D "okay"; }; =20 +&usbdrd3 { + dr_mode =3D "host"; + status =3D "okay"; +}; + &usb_host0_ehci { status =3D "okay"; }; usbdrd3 is for USB3, so "host" now has a sort of dtb change in the interfacing for supporting host-mode USB3. The old: /usr/main-src/sys/dts/arm64/overlays/rk3328-dwc3.dtso has, in part: usbdrd3: usb@ff600000 { compatible =3D "rockchip,rk3328-dwc3"; clocks =3D <&cru SCLK_USB3OTG_REF>, <&cru = SCLK_USB3OTG_SUSPEND>, <&cru ACLK_USB3OTG>; clock-names =3D "ref_clk", "suspend_clk", "bus_clk"; #address-cells =3D <2>; #size-cells =3D <2>; ranges; status =3D "okay"; usbdrd_dwc3: dwc3@ff600000 { compatible =3D "snps,dwc3"; reg =3D <0x0 0xff600000 0x0 0x100000>; interrupts =3D ; dr_mode =3D "host"; phy_type =3D "utmi_wide"; snps,dis_enblslpm_quirk; snps,dis-u2-freeclk-exists-quirk; snps,dis_u2_susphy_quirk; snps,dis_u3_susphy_quirk; snps,dis-del-phy-power-chg-quirk; snps,dis-tx-ipgap-linecheck-quirk; status =3D "okay"; }; }; which looks to me to likely now conflict with the below --given the added "host" usage as of 5.14 reported above: /usr/main-src/sys/contrib/device-tree/src/arm64/rockchip/rk3328.dtsi that, as of the 5.13 import, has: usbdrd3: usb@ff600000 { compatible =3D "rockchip,rk3328-dwc3", "snps,dwc3"; reg =3D <0x0 0xff600000 0x0 0x100000>; interrupts =3D ; clocks =3D <&cru SCLK_USB3OTG_REF>, <&cru = SCLK_USB3OTG_SUSPEND>, <&cru ACLK_USB3OTG>; clock-names =3D "ref_clk", "suspend_clk", "bus_clk"; dr_mode =3D "otg"; phy_type =3D "utmi_wide"; snps,dis-del-phy-power-chg-quirk; snps,dis_enblslpm_quirk; snps,dis-tx-ipgap-linecheck-quirk; snps,dis-u2-freeclk-exists-quirk; snps,dis_u2_susphy_quirk; snps,dis_u3_susphy_quirk; status =3D "disabled"; }; My guess would be that some kernel changes are required in order to track this structural changes, not just avoiding the old .dtbo . Testing showed that disabling the load of the .dtbo was insufficient to fix things. =3D=3D=3D Mark Millard marklmi at yahoo.com