From owner-freebsd-ppc@freebsd.org Sun Mar 7 03:58:08 2021 Return-Path: Delivered-To: freebsd-ppc@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 7F0AF558270 for ; Sun, 7 Mar 2021 03:58:08 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-33.consmr.mail.ne1.yahoo.com (sonic317-33.consmr.mail.ne1.yahoo.com [66.163.184.44]) (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 4DtSPD1WdXz3pBc for ; Sun, 7 Mar 2021 03:58:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1615089486; bh=QDbQhwnjS4zOOYGCey/sS7Sh10Igenw+UbZOHMAwIt5=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=dxsTquYveosLcrv90DItj0CsDGtMsKCTMYzjvHzvIN0ZMHr+h6H3f3QNY+y4dtV6/kB+XMPDgotO27EhtJN67t8VE9kHCE081e7G/65lxcGatMtNOmH2Lx4UDhHhgd1dRXsq2jBC+rHKLtXzHC0Uwv+vU4/Yw+5N/eFNDWzPF7iwQUD4kk233pAdnVLf3rKYbJM6wW535JNi3E2JXtVl67uxtMwOgZ0v2hKiEC2nSqyI82Yk5+d8b3DLnBXIaebAf3YKrPsbQa2QKvipgTgkU+ycO4iFHxT53AhC2ullsH8kZj2/hNq78uVdTlscrv8yuKJTyz8/mRpXnW9QVs61aQ== X-YMail-OSG: m81S2egVM1mPLm9iwPabMwAbPgCLgWY_riNsDQIqLBburDds0m09utWXOfaL_aV aD6fATEy0nmhzBPncqVFu7XZwP6SmHXM1JkMjsUjUxgQkVYYT8OA036vB3izZQnZ1xuxoCOFfaKs bB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jLyX82S37C_46U4k6nVBNSg4qRhnhqYjdtKuBqDv3XT YetuHrKU5_A543E2aIp_hhDg1xQhfHUB3ojpZkHGP9MnLR0wv0Hfcq7bXURDy8xmPJ72bX2Vo7Sj nzpb8dc9OsmfpBM29WHfzycmTezPn8qLk2tDDrbciH4IdeDumnxK25pMCck75Q6m5ryM8GzbvjMD yPqbBPsFaur8DAxfCHrntAkek_gX8ZI2CmvdLCAInfGq9I5VZZrSDwW2aR3az00wRLI77wY85xEx us4K0R3ShjgbHGQodPUpthiDCdtrS16zAEYCUMwANefwykZHL5MGVp0qXOA-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Sun, 7 Mar 2021 03:58:06 +0000 Received: by kubenode579.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID cce9de5b13c19b478559148d221e4f2f; Sun, 07 Mar 2021 03:58:02 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: Note: Fix committed to main for PPC32 SMP From: Mark Millard In-Reply-To: <95e4ea92-128b-4765-bdb1-4726b2573b4c@www.fastmail.com> Date: Sat, 6 Mar 2021 19:58:01 -0800 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <7082DB3B-FA63-4D08-91CB-7B4A4FA1501A@yahoo.com> References: <95e4ea92-128b-4765-bdb1-4726b2573b4c@www.fastmail.com> To: Brandon Bergren X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Rspamd-Queue-Id: 4DtSPD1WdXz3pBc X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2021 03:58:08 -0000 On 2021-Mar-6, at 13:55, Brandon Bergren wrote: > I finally figured out what was going on with the APs on 32 bit SMP. >=20 > Turns out the APs didn't have r30 initialized, so PLT calls wouldn't = work. So when the pmap functions were converted to ifunc in r361544, the = APs were unable to call pmap_cpu_bootstrap() from the trap handler code. >=20 > See bad9fa56620eb82395c5ab66d300e91a0222dde2 for the fix. >=20 > Since my dual processor G4 is now working, I can finally make some = progress on the timebase handling code. I did my builds of that version and for the non-debug 32-bit powerpc FreeBSD : A) The 2-socket/1-core-each G4 boots, has both CPUs in use, and USB keyboard input and the like are working. Thanks for the update. B) The 2-socket/1-core-each G5 still hangs extremely early when I attempt booting with the 32-bit powerpc media that boots the G4 2-socket/1-core-each just fine. Both of those are probably the expected results at this point. I have not tested for the "kernel gradually zeros user-process memory" problem but I've seen no indication of any further attempt at improving that beyond the patches that I was previously given and I'm already running. (With these patches, a debug kernel notices some of what is not being done and panics. I'd have to unwind from having the patches to usefully run a debug kernel on the G4's.) If I am to test any attempted timebase handling, I'll have to unwind my code that only tries to get the timebases close enough to avoid the problem, using a technique that is not platform specific but not as accurate either. (If the 32-bit code ever does support booting and operating multi-cpu G5s again, it would get back into this issue, just like the powerpc64 code for PowerMacs needs to.) Thanks again. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)