From owner-freebsd-arm@freebsd.org Sun Feb 2 04:28:59 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 F0435238562 for ; Sun, 2 Feb 2020 04:28:59 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-21.consmr.mail.gq1.yahoo.com (sonic306-21.consmr.mail.gq1.yahoo.com [98.137.68.84]) (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 489Hyy4rJTz4Skm for ; Sun, 2 Feb 2020 04:28:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 2ZqpFWAVM1lwrT14PgPi0tbDi_Z7vhNzAhK2uycO1deKypqwxSSs0Dg6h8i8KbC t9v5qFyX..8OC5i8YjxJjXqJYnYvCdCLbxkAOQNQfI9utvT7blgnlEo4iqtush3qH2061buTE6Tz XrVH2aph15PBoA_aXoF9jK78jxSJnhBw5shNny.U6fAo01EhII0zzkz_vmtuzrHZYAAik2RUD3zV ZmKN1CfhvsGFqCrH1Fo6ixK2FoRtCOLPq0n0zec8aatLJbB3UQ6oY8j1ruNu9REAILXNcUJZ_CK8 vLQ2WjV4Iu3QSp8dzyO1LYCtj1FjMXO6ou8MT14AZ8bs5sdNnr4WV8i9FCcCOU72NGuR0H4t5zT1 GgLr_T.TensrSw2anOZ7cqcgTnHLbMjbKLMnFip6caIKx8IiQGIlthyacbcrEDCC8NVeI565DKGL bPG1MIxffoWCvdtaBaFztKVlooo6oZ0K.mqwHGSXxe4XlU5uCvSV5zzfRZgal7sqropWPq803U23 ZREfApXLhrswD_Y64.BoPMiLKLLXW.GRjKYqlSSuxq19OJPdo6iXRYCxWRhxgg.S91Yv8.NRTeeA c014UqtOc3Q4tcH4orMMzL0thGH4T4c9Vf38cTEbM3TaKQ03uNFEkjMA7lPN2F2U6I0or7y6AlZi jtUn7C_ltb.1yJtRsJjwQTmGHDh68ItvS.Z3wWTw5ewhmLndERBK_GD5JDYrC63zDWT1.vPQuKOk Z0OEyqwsZOjuRkdXxEJTcSRGagSODo.Ju8NfIhbEzhdgZGTCyqmxob42XL5ZTgaTfxPtbcJ3tEnj VdzWV0xHGEQbn8afiZoofgS3gXQOv7jS_1qXW7m.mu2HFU8IN97geVvGLk5MfVk89UBC6pMWHieW foIg3VgDaf8E8IEVxbFFpagwDzCztbI0WA_tIuAAGQ3UpPKBqWY5eY941NU32iXAxO9SZ5LCwIBw 5jmfIYIAIUYoFacXP0NUdb7__E_.DUvq6NX.k_lMzUeWWWCmCEWr0fVAmPIgU8yGoKSRvnXHb2B5 n7nmQmhQvAIZpfLCYir_L8WKmtmXAwjIA6eSibtm8V1rTXug1oalEUTdEgQYuTXymNMpvLaiNJ9d QaZNw9mzbk6q78oidg1LBRI.dr9FC31V6Y17KEDzf5DzM2N4DlAaJ9K9a7y_ko_6iwm7vzikNAJM x.L2hsfWvt61Mr3DYjyLawRc29KPeQdLx6xVWRng87gFuPM_qFLtOatJ86fUO2rT8VRbjzJVGF4b 24vrVSctgq794CCe2u3NTCuFJYbojsMsLtQqkf1qwa.pDkF5pJEdN3yG7wq3Nv3AzUxMlCADbDCE Lvt5fVZVvTTA0sw6uPhNuhFpimX89jXZgcpINKGGWjPuDwazsf8nhSXwsGsXE9vIhoDBYT7jJC3n iD8ATW7EepznzaaYouIs1BcdmkvVGqEGwCllX Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Sun, 2 Feb 2020 04:28:56 +0000 Received: by smtp410.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 50573ef1f9047bed64565312a8daff50; Sun, 02 Feb 2020 04:28:53 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: head -r357356: fails to boot RPi4 but boots Rock64 (same media, moved between machines); -r356426 booted both From: Mark Millard In-Reply-To: <62250B30-E1F6-470D-BB84-F9565D063A06@yahoo.com> Date: Sat, 1 Feb 2020 20:28:53 -0800 Cc: freebsd-arm , "jeff@freebsd.org" , Kyle Evans , =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Transfer-Encoding: quoted-printable Message-Id: <78694513-66DE-4616-91C0-896D99C97B33@yahoo.com> References: <63205335-8E8A-4CCB-BC80-E4EC767FBC09.ref@yahoo.com> <63205335-8E8A-4CCB-BC80-E4EC767FBC09@yahoo.com> <62250B30-E1F6-470D-BB84-F9565D063A06@yahoo.com> To: Andreas Tobler X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 489Hyy4rJTz4Skm X-Spamd-Bar: / X-Spamd-Result: default: False [-0.08 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; RCPT_COUNT_FIVE(0.00)[5]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(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)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (7.31), ipnet: 98.137.64.0/21(0.83), asn: 36647(0.66), country: US(-0.05)]; NEURAL_SPAM_MEDIUM(0.04)[0.044,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.38)[0.377,0]; RCVD_IN_DNSWL_NONE(0.00)[84.68.137.98.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Feb 2020 04:29:00 -0000 [head -r357392 made no difference in the failure sequence for booting the RPi4B.] On 2020-Feb-1, at 16:11, Mark Millard wrote: > On 2020-Feb-1, at 14:25, Andreas Tobler = wrote: >=20 >> On 01.02.20 12:58, Mark Millard via freebsd-arm wrote: >>> I had a working head -r356426 based microSD card that booted >>> both the Rock64 and the RPi4. >>> I upgraded it to be based on head -r357356 . >>> Now the RPi4B hangs up during boot and does not start its APs. >>> But the Rock64 boots fine via the same media. >>> Diffing RPi4B console logs for -r356426 vs. -r357356 shows >>> -r357356 shw the following as the only types of >>> textual differences: >>> psci0: PSCI version number mismatched with DT >>> device_attach: psci0 attach returned 6 >>> psci0: on ofwbus0 >>> psci0: PSCI version number mismatched with DT >>> device_attach: psci0 attach returned 6 >>> psci0: on ofwbus0 >>> psci0: PSCI version number mismatched with DT >>> device_attach: psci0 attach returned 6 >>> psci0: on ofwbus0 >>> psci0: PSCI version number mismatched with DT >>> device_attach: psci0 attach returned 6 >>> psci0: on ofwbus0 >>> psci0: PSCI version number mismatched with DT >>> device_attach: psci0 attach returned 6 >>> psci0: on ofwbus0 >>> psci0: PSCI version number mismatched with DT >>> device_attach: psci0 attach returned 6 >>> psci0: on ofwbus0 >>> psci0: PSCI version number mismatched with DT >>> device_attach: psci0 attach returned 6 >>> psci0: on ofwbus0 >>> psci0: PSCI version number mismatched with DT >>> (More blocks of 3 such lines at a time happen later as well.) >>=20 >> I see the same on a rpi3b+. Try r356775, r356776 is the breaking = commit for me. I still get the above sort of thing from -r357392 (non-debug kernel, as I usually run). I also still get "APs not started" and the like. The fix seems to have made no difference for this issue. If -r356775 really works, then there is more to the -r356776 story. > Looks like head -r357392 is an intended fix > to head -r356776 : >=20 > Author: jeff > Date: Sat Feb 1 23:46:30 2020 > New Revision: 357392 > URL:=20 > https://svnweb.freebsd.org/changeset/base/357392 >=20 >=20 > Log: > Fix a bug in r356776 where the page allocator was not properly = restored to > the percpu page allocator after it had been temporarily overridden by > startup_alloc. >=20 > Reported by: pho, bdragon >=20 > Modified: > head/sys/vm/uma_core.c >=20 > Modified: head/sys/vm/uma_core.c > = =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=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/sys/vm/uma_core.c Sat Feb 1 23:16:30 2020 = (r357391) > +++ head/sys/vm/uma_core.c Sat Feb 1 23:46:30 2020 = (r357392) > @@ -2101,7 +2101,9 @@ zone_kva_available(uma_zone_t zone, void = *unused) > if ((zone->uz_flags & UMA_ZFLAG_CACHE) !=3D 0) > return; > KEG_GET(zone, keg); > - if (keg->uk_allocf =3D=3D startup_alloc) > + if (keg->uk_flags & UMA_ZONE_PCPU) > + keg->uk_allocf =3D pcpu_page_alloc; > + else if (keg->uk_allocf =3D=3D startup_alloc) > keg->uk_allocf =3D page_alloc; > } >=20 >=20 > I'll probably try it later today sometime. >=20 I tried -r357392 for the RPi4B boot issue, but it was not a solution. The fix may well be a solution to some other issue(s). =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)