From owner-svn-src-all@freebsd.org Sun Aug 25 07:29:09 2019 Return-Path: Delivered-To: svn-src-all@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 1E681D817E; Sun, 25 Aug 2019 07:29:09 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vtr.rulingia.com (vtr.rulingia.com [IPv6:2001:19f0:5801:ebe:5400:1ff:fe53:30fd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vtr.rulingia.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46GRb74b5gz4fHG; Sun, 25 Aug 2019 07:29:07 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (ppp239-208.static.internode.on.net [59.167.239.208]) by vtr.rulingia.com (8.15.2/8.15.2) with ESMTPS id x7P7SoEb088355 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 25 Aug 2019 17:28:56 +1000 (AEST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id x7P7Sju4005334 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 25 Aug 2019 17:28:45 +1000 (AEST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id x7P7Sis4005333; Sun, 25 Aug 2019 17:28:44 +1000 (AEST) (envelope-from peter) Date: Sun, 25 Aug 2019 17:28:44 +1000 From: Peter Jeremy To: Michal Meloun Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r351187 - head/sys/arm64/rockchip Message-ID: <20190825072844.GA4799@server.rulingia.com> References: <201908180919.x7I9JXGj021325@repo.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: <201908180919.x7I9JXGj021325@repo.freebsd.org> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.12.1 (2019-06-15) X-Rspamd-Queue-Id: 46GRb74b5gz4fHG X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of peter@rulingia.com designates 2001:19f0:5801:ebe:5400:1ff:fe53:30fd as permitted sender) smtp.mailfrom=peter@rulingia.com X-Spamd-Result: default: False [-4.84 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[rulingia.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-0.11)[asn: 20473(-0.50), country: US(-0.05)]; NEURAL_HAM_SHORT(-0.33)[-0.334,0]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5800::/38, country:US]; RCVD_TLS_ALL(0.00)[] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Aug 2019 07:29:09 -0000 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-Aug-18 09:19:33 +0000, Michal Meloun wrote: > Improve rk_pinctrl driver: Sorry for the late notice but this breaks my Rock64 (RK3328). I'm using: U-Boot 2017.09-rockchip-ayufan-1035-gd646df03ac (Oct 26 2018 - 08:36:01 +00= 00) At r351452, the kernel boot looks like: =2E.. gic0: mem 0xff811000-0xff811fff,0xff8120= 00-0xff813fff,0xff814000-0xff815fff,0xff816000-0xff817fff irq 48 on ofwbus0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 160 rk_pinctrl0: on ofwbus0 rk_pinctrl0: Cannot attach GPIO subdevice: gpio0@ff210000 rk_pinctrl0: Cannot attach GPIO subdevice: gpio1@ff220000 rk_pinctrl0: Cannot attach GPIO subdevice: gpio2@ff230000 rk_pinctrl0: Cannot attach GPIO subdevice: gpio3@ff240000 panic: acquiring blockable sleep lock with spinlock or critical section hel= d (sleep mutex) pmap @ /usr/src/sys/arm64/arm64/pmap.c:5819 cpuid =3D 0 time =3D 1 KDB: stack backtrace: db_trace_self() at db_trace_self_wrapper+0x28 pc =3D 0xffff00000054c9ac lr =3D 0xffff0000000e2908 sp =3D 0xffff000000010100 fp =3D 0xffff000000010310 db_trace_self_wrapper() at vpanic+0x18c pc =3D 0xffff0000000e2908 lr =3D 0xffff00000027e848 sp =3D 0xffff000000010320 fp =3D 0xffff0000000103c0 vpanic() at panic+0x44 pc =3D 0xffff00000027e848 lr =3D 0xffff00000027e5f8 sp =3D 0xffff0000000103d0 fp =3D 0xffff000000010450 panic() at witness_checkorder+0xa80 pc =3D 0xffff00000027e5f8 lr =3D 0xffff0000002e5348 sp =3D 0xffff000000010460 fp =3D 0xffff0000000104d0 witness_checkorder() at __mtx_lock_flags+0xb0 pc =3D 0xffff0000002e5348 lr =3D 0xffff00000025e574 sp =3D 0xffff0000000104e0 fp =3D 0xffff000000010520 __mtx_lock_flags() at pmap_fault+0x1bc pc =3D 0xffff00000025e574 lr =3D 0xffff000000566c00 sp =3D 0xffff000000010530 fp =3D 0xffff000000010550 pmap_fault() at data_abort+0xc0 pc =3D 0xffff000000566c00 lr =3D 0xffff000000568a68 sp =3D 0xffff000000010560 fp =3D 0xffff000000010610 data_abort() at do_el1h_sync+0x128 pc =3D 0xffff000000568a68 lr =3D 0xffff0000005688a4 sp =3D 0xffff000000010620 fp =3D 0xffff000000010650 do_el1h_sync() at handle_el1h_sync+0x74 pc =3D 0xffff0000005688a4 lr =3D 0xffff00000054f074 sp =3D 0xffff000000010660 fp =3D 0xffff000000010770 handle_el1h_sync() at simple_mfd_syscon_modify_4+0x60 pc =3D 0xffff00000054f074 lr =3D 0xffff0000000fd334 sp =3D 0xffff000000010780 fp =3D 0xffff000000010830 simple_mfd_syscon_modify_4() at rk_pinctrl_configure_pins+0x1b4 pc =3D 0xffff0000000fd334 lr =3D 0xffff0000005795fc sp =3D 0xffff000000010840 fp =3D 0xffff0000000108c0 rk_pinctrl_configure_pins() at pinctrl_configure_children+0x120 pc =3D 0xffff0000005795fc lr =3D 0xffff0000000fc4dc sp =3D 0xffff0000000108d0 fp =3D 0xffff000000010950 pinctrl_configure_children() at fdt_pinctrl_configure_tree+0x20 pc =3D 0xffff0000000fc4dc lr =3D 0xffff0000000fc3a8 sp =3D 0xffff000000010960 fp =3D 0xffff000000010970 fdt_pinctrl_configure_tree() at rk_pinctrl_attach+0x310 pc =3D 0xffff0000000fc3a8 lr =3D 0xffff000000579414 sp =3D 0xffff000000010980 fp =3D 0xffff0000000109e0 rk_pinctrl_attach() at device_attach+0x3f4 pc =3D 0xffff000000579414 lr =3D 0xffff0000002b3f18 sp =3D 0xffff0000000109f0 fp =3D 0xffff000000010a40 device_attach() at bus_generic_new_pass+0x12c pc =3D 0xffff0000002b3f18 lr =3D 0xffff0000002b5ccc sp =3D 0xffff000000010a50 fp =3D 0xffff000000010a80 bus_generic_new_pass() at bus_generic_new_pass+0xe4 pc =3D 0xffff0000002b5ccc lr =3D 0xffff0000002b5c84 sp =3D 0xffff000000010a90 fp =3D 0xffff000000010ac0 bus_generic_new_pass() at bus_generic_new_pass+0xe4 pc =3D 0xffff0000002b5c84 lr =3D 0xffff0000002b5c84 sp =3D 0xffff000000010ad0 fp =3D 0xffff000000010b00 bus_generic_new_pass() at bus_set_pass+0x8c pc =3D 0xffff0000002b5c84 lr =3D 0xffff0000002b1674 sp =3D 0xffff000000010b10 fp =3D 0xffff000000010b40 bus_set_pass() at mi_startup+0x238 pc =3D 0xffff0000002b1674 lr =3D 0xffff000000217b50 sp =3D 0xffff000000010b50 fp =3D 0xffff000000010bb0 mi_startup() at virtdone+0x54 pc =3D 0xffff000000217b50 lr =3D 0xffff000000001084 sp =3D 0xffff000000010bc0 fp =3D 0x0000000000000000 ---- When I revert r351187, I get: =2E.. gic0: mem 0xff811000-0xff811fff,0xff8120= 00-0xff813fff,0xff814000-0xff815fff,0xff816000-0xff817fff irq 48 on ofwbus0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 160 rk_pinctrl0: on ofwbus0 rk_i2c0: mem 0xff160000-0xff160fff irq 16 on ofwbus0 iicbus0: on rk_i2c0 gpio0: mem 0xff210000-0xff2100ff irq 51 on = rk_pinctrl0 gpiobus0: on gpio0 gpio1: mem 0xff220000-0xff2200ff irq 52 on = rk_pinctrl0 gpiobus1: on gpio1 gpio2: mem 0xff230000-0xff2300ff irq 53 on = rk_pinctrl0 gpiobus2: on gpio2 gpio3: mem 0xff240000-0xff2400ff irq 54 on = rk_pinctrl0 gpiobus3: on gpio3 rk805_pmu0: at addr 0x30 irq 55 on iicbus0 =2E.. I haven't dug into this further yet. --=20 Peter Jeremy --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAl1iOKFfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzRllA/+N3jpXxqKYRejpt1aa+uEoOiAxFeC+HnX0GUD9tte7td30wBtrDhM+jEH fLKT9DdXEM9YFYB2NVOS3E5xVYYxBuOS6e7wG2m8aGCVowgKbtuC6s19PxzML0QQ 03PhxTNZQzO5e1hBSj7+JPRunFC0zIzYwSLhhxt9148epttGSumNGAzGrAYBh2JR Ufd3aSqr0KCdtNP/FwK9dNYZvhr5oStTNVHlegUQyk8KIwuy57XwVPaBk9I23/vT cbjd2IbTlSQq5XTPTQ/XYgMy1tj1RIs8wWVcc+MYCHRQyY2B7pwQWJS2ZY7GSrxI M/nAhKcffzCDjpgl0gCYHeVAYB/07PVgDkQeLE6uy0fvRo82OiW4hmF68pkdKzTe N/zgJTc+mPeyUi3H9+Fv98w8cB+NiOgEsUr7+mS2BFGl8dfjlaEMzql1938Yp4Gw DyYGVrXEPRw471GfnqYALgMVHsRlYb3JtBsFexS4aNo4Aptr6z80jI7Cd3DxM/2B 6kqZllF33ZDXv/CymV9WGGP6smzz8AF3fen07f98MxjOs17pgw/LRgXt4V6Y3PHw GGmLLQ5Ga00pQLmG/+ppbvzWHgPx3KBftjD+NKBjoESsR90htqAdpRWTNjI525hM Hcr203t30GbJokuMLPFEKD6p5VIh3c2ENVCYmdJeumeiSUmj8yA= =N+9R -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk--