From owner-freebsd-current@freebsd.org Mon Feb 17 03:23:50 2020 Return-Path: Delivered-To: freebsd-current@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 73DEE24B2A8 for ; Mon, 17 Feb 2020 03:23:50 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-8.consmr.mail.gq1.yahoo.com (sonic315-8.consmr.mail.gq1.yahoo.com [98.137.65.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48LTps1mfzz4VMC for ; Mon, 17 Feb 2020 03:23:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: sVAU00cVM1mfkEYfiZk4nV6dMLEG7h49fT1A1zmU_zg1xpeFKmsaHI4K1um66xc Hn_EDz9OtwrnwLSxAHSDXrtga5lZK8RT2c8s6n55UJzYVl_7bh5AICRjghQfh55C7ngP3g0uXQcM UUaKfsEPHBk0p3lG43CFPu1oaVGyycpwliW6pQ3Bm8GMZzv0IAo7kolwjHl.M0fJJc6PfXNLCo5g KL3xqNNDBycVvHOUkJXYQGQWmKA07K5JAM2Ut5QWJcbiwnIhe73YpTMCEV9A9DgRtTg8NPkMHYnJ O6DCcBDqFxTq4Xxd0iXNnpGB6F8u6fov7HnHVpF8l4fSIjcA0TuiyVR6FGiu0jT8tuhDiVp0YtM9 D5YLThIhTlJ2S1aZdFQzVfpjsXTeqAEm23MQ36wFZHGpxIhpuk_jQrHQgdFCR8uW0TAR5cUEL_4i rkjnWrzQYtOh3.2csngoNhnS2WXl7wPrOcOXWwoKhhd4f_PZ8KrWUOBtAipHxJ6MHiuwyKdtXRJ4 W5IwH4TWbw4iOQseEPeYAqGBaZHgsKXoin_zB2k881asq4zUXoQNzPmi5X0nOdPJrAFthCDy1foS TUXh53c5i2nZ4kGIc_ELBKafrCDlhGR7cZb58bRDG63TIhSlihjn0.fqS064iECrSXs5SiVhy0uN 7LSB9oH5bPhDXQC_4SsjcH9XooBaliwSNnhogdNtR2TpHQx5752mVOMZqcnQLftQw10bsv_gRr.z D2LqGEVCci2cOlkNL63Kzlc7nVIXWP8M3Vtp8akm02gnWY6RTAKz72aJB4j.eVa5geM_a2KjLSL8 LrKikAGMVFPIVpXbe5S.iHcjh0ER9xoUMUFMl1Lz1aN805JjcxQf8_gV.c5sXBbq7JUmj3E8rmdW W9B6Dhav5kGhe7SGTfexeVBJFTYkClL_wNqdGYLlE8v7Z6twKBl5FSxJk8WXe1gpaDu1L77PYyN9 3ghEIoVrHDVUkvIjypK2xSIzpoTBQNdHeJbOC3LOIiUJA4Mfo89It11ma7MCL_c2EUvhK876uYNt JuzBq8jqR_EeyB73qQsL_nykDsZGftcNg1x2KGlKhJ_xqO_WOcHF0PnmFY.SezzYyS1mfBH.jnjR 5a59VwAp_MPt.YlHlH8IyVv9DC5B7SEyUZbVvrTvPvomrGwOxFMWl08bvG.NAAhDFqEM7vJiLEVO nsdWGpfiHFTPbn4SeU_0kczxs7D06SJeLJ6kTuo0lHLfGNG_.xQt0rPiGH_SzHdil7wZg7vqLQzW 4taNof0la5UfoYgx.MNn.4_XrD2kbZwI.dDPqUDQRhbH.4qcciuuKGdDPENjN0B5_PKh911Mdup_ g9Hspxz3qdgalFNB8TSIaBJ.2SjzpTS4EKS57PUEx_6E2ru3PN7BawfdAofm6g8JSGlRcR1ci8uT LeQ8W5Gb4gU3qsVW9bLISGXvFsnpgkvzmsffQ6Fgh.2y1VgBZU1nniNWlfGWs5g-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Mon, 17 Feb 2020 03:23:46 +0000 Received: by smtp420.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 7ca0474ed86e044c4416d3cdce79fa33; Mon, 17 Feb 2020 03:23:41 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: FYI: head -r357979 and powerd on Orange Pi+ 2ed (armv7,CortextA7): unable to kill at shutdown; no problem on old PowerMac G5 Date: Sun, 16 Feb 2020 19:23:40 -0800 References: <8B626CA5-0E05-4BCE-9CB6-7EA9752E960A@yahoo.com> To: Emmanuel Vadot , FreeBSD Current , freebsd-arm In-Reply-To: <8B626CA5-0E05-4BCE-9CB6-7EA9752E960A@yahoo.com> Message-Id: X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48LTps1mfzz4VMC X-Spamd-Bar: - X-Spamd-Result: default: False [-1.49 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.30)[-0.304,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-0.69)[-0.688,0]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[32.65.137.98.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (4.96), ipnet: 98.137.64.0/21(0.82), asn: 36647(0.65), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Feb 2020 03:23:50 -0000 [artifact.ci kernel bisect result included.] On 2020-Feb-16, at 14:46, Mark Millard wrote: > [Also seen on prior head -r527529 context.] >=20 > I've got two contexts with powerd running > (both have non-debug kernels and worlds): >=20 > A) A system for old PowerMac G5's. It does not and did not > have the problem. >=20 > B) A system for an Orange Pi+ 2ed (armv7, specifically > CortexA7) that does. (No other armv7 context around to > test.) >=20 > Recently shutdown has been doing the following if > powerd has been running on the armv7 system: >=20 > . . . > Stopping powerd. > Waiting for PIDS: 815 > 90 second watchdog timeout expired. Shutdown terminated. > Sun Feb 16 00:25:59 PST 2020 > Feb 16 00:25:59 OPiP2E init[1]: /etc/rc.shutdown terminated = abnormally, going to single user mode > Feb 16 00:25:59 OPiP2E syslogd: exiting on signal 15 > 2020-02-16T00:26:19.061233-08:00 OPiP2E init 1 - - some processes = would not die; ps axl advised > Waiting (max 60 seconds) for system process `vnlru' to stop... done > Waiting (max 60 seconds) for system process `syncer' to stop...=20 > Syncing disks, vnodes remaining... 1 0 0 0 done > Waiting (max 60 seconds) for system thread `bufdaemon' to stop... done > Waiting (max 60 seconds) for system thread `bufspacedaemon-0' to = stop... done > All buffers synced. > Uptime: 6m17s >=20 > For reference, top previously listed: >=20 > PID USERNAME PRI NICE SIZE RES STATE C TIME CPU = COMMAND > . . . > 815 root -100 0 4424K 2000K twsi 0 0:00 0.01% = /usr/sbin/powerd > . . . >=20 > I do have for my build (whitespace details might > not be fully preserved): >=20 > # svnlite diff /usr/src/sys/gnu/dts/arm/sun8i-h3-orangepi-pc.dts=20 > Index: /usr/src/sys/gnu/dts/arm/sun8i-h3-orangepi-pc.dts > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- /usr/src/sys/gnu/dts/arm/sun8i-h3-orangepi-pc.dts (revision = 357979) > +++ /usr/src/sys/gnu/dts/arm/sun8i-h3-orangepi-pc.dts (working copy) > @@ -102,7 +102,7 @@ > "Line Out", "LINEOUT", > "MIC1", "Mic", > "Mic", "MBIAS"; > - status =3D "okay"; > + status =3D "disabled"; > }; >=20 >=20 >=20 > but it has been a fairly long time since I've checked > if "okay" prevents booting/operating. >=20 >=20 > Note: Until there is an official fix checked in, the PowerMac > G5 needs Ryan L.'s slb_zone_init patch from: >=20 > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244118 >=20 > to boot anything at or after head -r357549. I also use other > patches for PowerMacs, mostly personal, but they are unlikely > to matter for why killing powerd works in this context. >=20 artifact.ci's head -r356602 does not have the problem. artifact.ci's head -r356610 has the problem. There are no armv7 builds in artifact.ci between those. head -r356609 is a sys/dev/iicbux/twsi change and so looks the most likely given the top result: PID USERNAME PRI NICE SIZE RES STATE C TIME CPU = COMMAND . . . 815 root -100 0 4424K 2000K twsi 0 0:00 0.01% = /usr/sbin/powerd . . . with its -100 for PRI. (Previously 0 in the no-problem cases.) I've no clue if it is powerd that is doing something odd exposed by the -r356609 update vs. if it is the update that is doing something odd and powerd just happens to expose that it does. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)