From owner-freebsd-arm@freebsd.org Sun Feb 2 04:32:50 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 8E4E2238A6C for ; Sun, 2 Feb 2020 04:32:50 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 489J3Q1N4jz4TH5 for ; Sun, 2 Feb 2020 04:32:49 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-wr1-x442.google.com with SMTP id m16so13566452wrx.11 for ; Sat, 01 Feb 2020 20:32:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=rd/PxBn0T6QproWmhkFFLhp8MditMd3S5oFP1AWFfBo=; b=Yu5d/iWiD0ri0bXXITKwmfNnAs7dY2PT768MmoVj/DGPU5Tq5K9H0feDSgKoH+ra2W gip+4sIfG6I3suy3uf+C1TB5CmdfxEyMtNfwgY0lFa1OCOqrvFdiKrSFOlUmmS0nwnyf M1yIsyZueO98v8r0fxNK+XnKHM7MT0SFymfxtpPO6u53qZrPMJ9PBCDblPU8PzlSPcgk yYmzFYOmyOcgrSkFj5+oeEFSuKwrKPwRxZ9tweKv/aEH0Lxv2IYaZC/ROaOdCx7hVY5W ExBffQBu7zbYCWv/LyjKF6n49QgJbFCb9tSBo3QxViOQrsWQCCHVTa127CVepQneXpeC RKFw== X-Gm-Message-State: APjAAAXLHZXTN/zc2pVU76SQWd+yzC0MPrmf+ognAFcYLsWz2f+TqJd9 KpvqH6OhfYJ5xO/7Rs+v0/g= X-Google-Smtp-Source: APXvYqzIUhl/f/OOyKwXvlvQeI8o2cuhAxc0CAl25rkMrxPHXWFuxfj7OYpper++IXAKybfQqFqzOA== X-Received: by 2002:adf:e38f:: with SMTP id e15mr8318187wrm.271.1580617968738; Sat, 01 Feb 2020 20:32:48 -0800 (PST) Received: from [192.168.1.167] ([46.114.110.155]) by smtp.googlemail.com with ESMTPSA id g7sm19099783wrq.21.2020.02.01.20.32.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Feb 2020 20:32:48 -0800 (PST) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: head -r357356: fails to boot RPi4 but boots Rock64 (same media, moved between machines); -r356426 booted both Date: Sun, 2 Feb 2020 05:32:46 +0100 References: <63205335-8E8A-4CCB-BC80-E4EC767FBC09.ref@yahoo.com> <63205335-8E8A-4CCB-BC80-E4EC767FBC09@yahoo.com> <62250B30-E1F6-470D-BB84-F9565D063A06@yahoo.com> <78694513-66DE-4616-91C0-896D99C97B33@yahoo.com> To: Mark Millard , freebsd-arm@freebsd.org In-Reply-To: <78694513-66DE-4616-91C0-896D99C97B33@yahoo.com> Message-Id: X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 489J3Q1N4jz4TH5 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[googlemail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; FREEMAIL_TO(0.00)[yahoo.com]; RECEIVED_SPAMHAUS_PBL(0.00)[155.110.114.46.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (2.44), ipnet: 2a00:1450::/32(-2.50), asn: 15169(-1.76), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:32:50 -0000 > Am 02.02.2020 um 05:28 schrieb Mark Millard : >=20 > [head -r357392 made no difference in the failure sequence > for booting the RPi4B.] >=20 > On 2020-Feb-1, at 16:11, Mark Millard > wrote: >=20 >=20 >=20 >> 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. >=20 > I still get the above sort of thing from -r357392 > (non-debug kernel, as I usually run). >=20 > I also still get "APs not started" and the like. >=20 > The fix seems to have made no difference for this issue. > If -r356775 really works, then there is more to the > -r356776 story. >=20 >> 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 >=20 > I tried -r357392 for the RPi4B boot issue, but it > was not a solution. >=20 > The fix may well be a solution to some other > issue(s). >=20 > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) That was my guess because there=E2=80=99s nothing directly related to = mmc issue in the code =E2=80=A6 , Thanks for reporting ! Regards Klaus=