From owner-freebsd-ppc@freebsd.org Wed May 8 12:31:09 2019 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 509E91583606 for ; Wed, 8 May 2019 12:31:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-9.consmr.mail.bf2.yahoo.com (sonic304-9.consmr.mail.bf2.yahoo.com [74.6.128.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 DADD57105B for ; Wed, 8 May 2019 12:31:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: zck3cpQVM1nXAM5QsoOlcwXWYn1HTRFIchyYNwRG9LHBpwtQ6d9fi5uHin.5ayK qUaebiHiRUr8.5KtQIzjJAUAd1yi1ruRvFWw1tZukgIuBv9TesLlTgCkz7z7Nuh5wuUEa5Sc7XM6 EMrs0uEc_EciINKZgMulQ55iQpgCmbfDL3.7yNGcU7ZPI03yrvwTk9bKVEcGn_lgWlm1YQwLtVLy 4pXskRgCOVVf1mrUiICjCp2QxPqahHzNn7M8kdLUs1ppXz9W0wg9_a8dj8vbxOYynrjTiQh9qJ6v 6nskaS6qWbAhKdW1AfzOcTlrYaiKS0bUaSbdbjfSXpC4sDEB_zO.3GFwieE9TI8NqFOvzbSEO41M iMXznMgH.nRLz8TgVJ3LjkUudTsa6WbxaQy1XXtEBzynI1Kz9HO86sf.odfeShirjV_7PtXfNHez I91iFvYbqgaecSNIlgKTpxjBrog0MdxP0eqZDFgiLzcgz4SefMM3LvZs8FzxU1rMU6c.Ir3GJaK2 tzOqfCxkDqmLLzHq0_Hg0H7JNrsIrDPA2ap0znVwnjQ8bl05WLDxS5oIPyPHTkQde9iDXINpcGvg m4svIXf4r.c8hipPe7_CUsHYb..3WEpxEE8d6.3lShS7tWVawQly1MQW0WcN2hPlP_x_FNyPW6lU jCt7VV8zQNHQHfEPS5RLbj0H5TIZv4dqKDwaAhO7KUQvgkRmXNvTQ3Mf3FRH_2HSltJGDxPvJdxx a02GAcc6snI5xKvTzqv37iF37kSZ.zCthwXXyMSg4UhPKrr5XyVaEQF.Fjd9DkAXs5GC7LhZxdo2 bhK18aSSUPYaoLSxW7sLD8hlrSJGauPz2Of0SCWHWizIkHtAkFVZtqQVzGQq_Fmph9rBY0s8f9Rh tn9WEw294ubOzFlppFAJQ0R8QF3T61fzLr0nPid9UeUgxBwFYjuJod1JV5Bo558zRyoMXMkwnfOH h.4oq6lMeHYSMOp9R3Grc8r4eORBTG5esYXK83QPTAJAreqEv4.fynKzulnAb5KeLmpLlNvFa5iS QmoamZ.JY7gSZfCgi3OPVyjwWqPuqRZQ4Mbig3mdcu_qu8OIMBgnPK6xGQiqc4QtL5oaiwFM0R3z g1E5whYlhCXBb8qcfOQ44hXjIT2Hi5UwS7.9avanA79Sff6dQnT98LGmsk6E.USv4sojbh0CCFRe 55Gpuxw-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Wed, 8 May 2019 12:30:59 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.103]) ([76.115.7.162]) by smtp424.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 05107df409d3ae2b48e7bcd514056fc4; Wed, 08 May 2019 12:30:55 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: head -r347003 on 2-socket/2-cores-each G5 PowerMac11,2's: one type of boot-blocking context found (CPU 1 evidence) From: Mark Millard In-Reply-To: Date: Wed, 8 May 2019 05:30:52 -0700 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: 7bit Message-Id: <21AF1C2A-ABCF-4057-8DEF-00B079624A73@yahoo.com> References: <20190507130654.20a269f6@titan.knownspace> To: Justin Hibbits X-Mailer: Apple Mail (2.3445.104.8) X-Rspamd-Queue-Id: DADD57105B X-Spamd-Bar: + X-Spamd-Result: default: False [1.80 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FREEMAIL_TO(0.00)[gmail.com]; 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:26101, ipnet:74.6.128.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)[]; NEURAL_SPAM_SHORT(0.96)[0.959,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.16)[ip: (3.07), ipnet: 74.6.128.0/21(1.54), asn: 26101(1.23), country: US(-0.06)]; NEURAL_SPAM_MEDIUM(0.18)[0.182,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.02)[0.016,0]; RCVD_IN_DNSWL_NONE(0.00)[32.128.6.74.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 May 2019 12:31:09 -0000 This note deals with the "CPU 1" hangup evidence, CPU 2 related will be later sometime. They do not behave the same. (These are what has been failing recently but need not be long term stable CPU numbers.) CPU 1 is the one that gets as far as trying: sp = pcpup->pc_curpcb->pcb_sp; in cpudep_ap_bootstrap but sometimes hangs-up attempting the pc_curpcb-> part and cpudep_ap_bootstrap never finishes. (I added code at the end that does not produce its result in memory. The bsp times-out waiting for CPU 1 to become awake --and so skips CPU 1.) I'll note that slb index 0 is not assigned a V=1 status on CPU 1 at this stage. Indexes 1-63 are. (These were extracted live values, not from FreeBSD data structures.) When it works, CPU 1 sees (showing where the values come from --and it is a specific example boot): pcpup_value =0x197c380 pc_idlethread_value=0xc00000000224f580 td_pcb_value =0xe000000064beca90 pcb_sp_value =0xe000000064bec8f0 When it fails it can not get that last value via the td_pcb_value: pcpup_value =0x197c380 pc_idlethread_value=0xc00000000224f580 td_pcb_value =0xe000000064beca90 Note: pcpup values are not from the DMAP space or the KVA space. In the working case, the CPU 1 slbs already had: (These were extracted live values, not from FreeBSD data structures.) 39: esid_part= 0x8000000 vsid_part=0x1000000000000 17: esid_part=0xc000000008000000 vsid_part=0x10000ecc40100 61: esid_part=0xe000000068000000 vsid_part=0x100087a5a0000 (So no need for handle_kernel_slb_spill.) In a failing case: (These were extracted live values, not from FreeBSD data structures.) 30: esid_part= 0x8000000 vsid_part=0x1000000000000 15: esid_part=0xc000000008000000 vsid_part=0x10000ecc40100 (no esid_part=0xe000000068000000) (Others are similar.) In the failing case, code I put in handle_kernel_slb_spill to record to extra global variables does not happen. As far as I can tell CPU 1 never gets to handle_kernel_slb_spill at all. (Not that I've figured out how to find where CPU 1 does get to.) Side note for below DMAP_START based esid's: 39: esid_part= 0x8000000 vsid_part=0x1000000000000 53: esid_part=0x98000000 vsid_part=0x1000b19300000 54: esid_part=0xa8000000 vsid_part=0x1000c54e00000 51: esid_part=0xf8000000 vsid_part=0x100127f500000 and (different example): 30: esid_part= 0x8000000 vsid_part=0x1000000000000 52: esid_part=0x88000000 vsid_part=0x10009dd800000 38: esid_part=0x98000000 vsid_part=0x1000b19300000 54: esid_part=0xa8000000 vsid_part=0x1000c54e00000 and (different example): 50: esid_part=0x78000000 vsid_part=0x10008a1d00000 53: esid_part=0x98000000 vsid_part=0x1000b19300000 54: esid_part=0xa8000000 vsid_part=0x1000c54e00000 49: esid_part=0xf8000000 vsid_part=0x100127f500000 === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)