From owner-freebsd-arm@freebsd.org Thu Apr 2 03:03:46 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 ACB432AE61B for ; Thu, 2 Apr 2020 03:03:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-21.consmr.mail.gq1.yahoo.com (sonic317-21.consmr.mail.gq1.yahoo.com [98.137.66.147]) (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 48t7Dl53WZz3KPN for ; Thu, 2 Apr 2020 03:03:35 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: aKFl1AEVM1mLv7G0PxAx4d5avpexRRD.4Y8tuNtqLorJTv5h_pyqPSW3Hx4x04P GXbwNGQQ8TtKnL8NGRyArAdzijEryE_eGLW2VZ_7EOfXMduzC7l0HsxijC7eYXwC9eKbhJ3jgE4_ MqHL8a7oS57Pmon8eO7jDEmPMJBMFYh7uYtr4_fTMvBOYgf1eoz4U.n5GVDBWlD.Kr3yScFG5D4L 8Geyn_xY4T2NnN1EEDGsRpUOxViOrdAAQq9JG_RootSyKSdGys3IUq_XCQJGDKcw2EGqGorqXOIY s0v7abzkQlkpAf9yf4ttQqUE_qeWZdvJCHTl.PNLcr75L6k750CHlLmOYQqq5894zWCwuol2ke3S HTnDxxdWbTeYYtdIErU5Tml8tWrllyUKCgla3lMF83BVb6ilQdfKtOMprGcPSl6whmz0bigt27cz mkgB1UoYntQIcqMBLz.696GhEeYjmJpMHd72My.ae3hsUWQbV6VpQuFNtgJzBwfxq7PLzWcTUvhT JAgvUu2bn1EGBqWyoqPETMmyXphepRVOVoyG8Vs5pENxq0.CSWpzNbDlpkBh0.Ak79Qu7wdDFS7D WMc4QwFwN8vwr4vGh8l6B7rn8CNCV7ibtLa6sDDpZ_QucecTZwp3IAc4duXiShXuktlX62vhtFbe sMRJC_VRlHSW9lMqNxuVfmqr2ugxXSqycu9lmYbB3RezE6zRJEsn7RrU91TdUvVDmrHCrM1qFp5N A6emdElhqdptRHhBzau3Wfygm3t_5cvO_RZOYR7u6Cii2H.Qg_fFTUavBWZCtoKYeFKqwxpUnDjR HfnZe59kiK0AWq8mgyLTp3qaXw3fyKtgRpJXWINvMiCcV1_3h0aEfFpsUTUXiTjOOW4apG13l54p LkiEUriSluxVlZHHuBbHiosNJGTfvQzAwrh51I6FsFYcnERklqRD5wY1YAII4BBwliCxFgd1CK5p kR0eu7qS6eIVDou5qRazml9Tr4f8xva_8U2ROtnztUZNAZ5ExQEkfmWp9fyHKtDAQROrRnPvr40H _O2YyW4dXQ1vjm7bbqA2wB5MZf3XNe5LlmJlTU26LXhrqwhrkQzYHrfEqCZhYikckPDuJJ8m1uVN YB25k7EOKhhiEoMDuNyxyfx3O7R_b099gPZq3XZtFJsdoYqt8j9rHXA7IoZaGJbcO0khzC4Nm9yL 3Vdxa8c3PX7tQABAQNxZowwSRd.J4dTC4Sk5yWwvsOFWoVYauerrd4kSx.w.e1IEvmOv904gtXAO gQGPP1s6rvvCGnIyvDvO6VekS.6NUBqqF9aQbSZ2sKim7oGfGPMnUJOrzarOn_lEKbEhmfKCfvgF 0kw4h_VofQiB8qilqyoN9vNCFhH2CzDsOHpUZgmkArAg4sfAL4r8jvU.WXzxQWAjIqDzIqoQqnN7 A1fEnVD726LI8oObL2ZNW.Q-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Thu, 2 Apr 2020 03:03:27 +0000 Received: by smtp422.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID f527517e8c662f49149958c26321af3e; Thu, 02 Apr 2020 03:03:26 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: FYI: artifact-based head bisect and OPi+2e (an armv7): -r359311 fails to boot but -r359309 boots (kernel substitutions) From: Mark Millard In-Reply-To: <85cab8fe92c87458be8e3c66d4071b3f6e3158ba.camel@freebsd.org> Date: Wed, 1 Apr 2020 20:03:25 -0700 Cc: freebsd-arm , FreeBSD Current , Conrad Meyer Content-Transfer-Encoding: 7bit Message-Id: References: <221A0E27-6A0F-4136-AB76-2D6664279363.ref@yahoo.com> <221A0E27-6A0F-4136-AB76-2D6664279363@yahoo.com> <20200329164422.GA68768@bentley> <85cab8fe92c87458be8e3c66d4071b3f6e3158ba.camel@freebsd.org> To: Ian Lepore , Thomas Skibo X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 48t7Dl53WZz3KPN X-Spamd-Bar: - X-Spamd-Result: default: False [-1.92 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.79)[-0.795,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; 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.62)[-0.624,0]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_FIVE(0.00)[5]; 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)[147.66.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.83), 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-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: Thu, 02 Apr 2020 03:03:46 -0000 On 2020-Mar-29, at 10:58, Ian Lepore wrote: > On Sun, 2020-03-29 at 09:44 -0700, Thomas Skibo wrote: >> On Sun, Mar 29, 2020 at 12:29:00AM -0700, Mark Millard via freebsd- >> arm wrote: >>> While trying to update the head version >>> in use I ran into boot hangups on the >>> OrangePi+ 2e and did an approximate >>> bisect of artificact.freebsd.org kernels >>> to find approximately which kernel >>> version the issue started at. >>> >>> I found that head -r359309 boots and >>> -r359311 fails (shown later below). >>> The original update attempt was from >>> -r359966 to -r359376 and -r359376 >>> stopped there as well. (I kept world >>> there and varied the kernel version >>> for the approximate bisect activity.) >>> >>> It seems that at least one of the >>> "MI-namespace" atomics added do not work >>> in all its usage-contexts on the cortexA7 >>> (armv7) involved. >> >> It looks like my previous reply didn't go to the mailing lists. I'm >> new to >> mutt. >> >> Anyway, I looked at this problem yesterday and it seems r359311 >> enables >> using some atomic operations that were not being used until now. In >> particular, atomic_fcmpset_8() seems broken and hangs up >> in vm_page_bits_swap(). I think I have a fix but I want to run it >> by Ian. >> >> --Thomas >> >> Index: sys/arm/include/atomic-v6.h >> =================================================================== >> --- sys/arm/include/atomic-v6.h (revision 359412) >> +++ sys/arm/include/atomic-v6.h (working copy) >> @@ -196,7 +196,7 @@ >> \ >> __asm __volatile( \ >> "1: ldrex" SUF " %[tmp], [%[ptr]] \n" \ >> - " ldr %[ret], [%[oldv]] \n" \ >> + " ldr" SUF " %[ret], [%[oldv]] \n" \ >> " teq %[tmp], %[ret] \n" \ >> " ittee ne \n" \ >> " str" SUF "ne %[tmp], [%[oldv]] \n" \ >> > > > I've committed this fix as r359423, thanks! Thanks to both of you: the OPi+2e boots just fine now and has been operating like it used to (head -r359427 in use). === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)