From owner-freebsd-current@freebsd.org Sat Oct 20 09:09:14 2018 Return-Path: Delivered-To: freebsd-current@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 1AAE1FFF3ED for ; Sat, 20 Oct 2018 09:09:14 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-36.consmr.mail.ne1.yahoo.com (sonic317-36.consmr.mail.ne1.yahoo.com [66.163.184.47]) (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 AB23C85312 for ; Sat, 20 Oct 2018 09:09:13 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: XvMAaD0VM1kbHZtjzNPfE0gHF.QkVqI87M5a2.He6L3YQpOQ.y_FZFIMXh3PbPA WPf7c.HbpWhpTsiVj8ZiZJiyvfAtAj9wMhjJhUrAJ3cX3fjSigy6h1DEUHEantVD8Li3zdPRM8A2 0cql3nJfL_JW34wZaXlQFV8b8Xp9w9EIadBogdoTeqj0bfmRjBbjwvGwYBn08Wcen3mK.U7wT7xD TM3w034.15NjKFopgQBnMhrgw6VfhHdxyE8oO8QKENUzintu40BrOEVcu1.IEvX922sd1EyZX7Ja E10JXlPhCxMQbReK_2uwdlD3N6hxwPLCSCEMbCx1UHJyVuaceyO2EBjqHoehh8mPdD1.tHXWyNS_ IuevtB7m2z30PasV6c9Xoaf8JCTilsEXCQBYrthvuz9K4OEzSRRDtQmhGaOAyk.JUDC6NcB3V._t Z7b.64reIMAVpEJrSZAEfhD91eV4KlVo5uEk7PTZMiB7BfPkiy1D.4K5hFxMByMGLmnKPOIX2mB9 a48OkZhTcgKw_fnv.jknjUtHEdPPMw_K.yy9zbPO9PZeekY8OQ1SxSC9ozbdU1.Z6YqYHTxFDPzm zbXhbSA1vOJ5yA0WaMUaCGVZfepc0xIS_0QSoueqfTP_8QmDV33Ij5svu3yrXuFgsdFjletHfOjN 27HZr2lG8FFvF0SdDY4p.02d2xLSNrJj28GhlbzSuLJKiYG6A6ffhgGwN5mKQK2YGAKRBp3MyuTy xHzj7mh2WpyCq0L1DSdhhq4iIkTPviirwcKSUM9xr5Mb2M7Q.YjjSCj257wouPqFnBlvAfhbX29o SJ4wZQveGVZwoqdkM9uZhGkUIy1tWHOcsmHgcNfx0RrjlQitreQifxQ4nId0oq6AvYaRln3y2yal qDaVh1n4DMVx3gdAMWdLeu5bCTcUVFx2oUZt6TL9GNM36BJPc9Ac3UKzDUn0GhePvQEqdWAYCZMO XqxK2QDLsbCvqzs0CHJjL2IIK1eoA2673CbtRLd5v5o2gjrH9_DkEoibioqUbg8oZ5HcqFhyn0RE Npgb3o3zP9Cq_FuHu6sCLOosd3clKYn0W1EfEV.jl.Wa9XoVLBKjB9c_zMpC9vrAIXnjp5jeocY5 xPYHF0J26Ug-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Sat, 20 Oct 2018 09:09:06 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp422.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 2214fbec0c1f9e2e5deba3c8b404b47f; Sat, 20 Oct 2018 09:09:05 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: head -r338804 boots threadripper 1950X fine; head -r338810+ do not; -r338807 seems implicated Date: Sat, 20 Oct 2018 02:09:04 -0700 References: <79973E2B-F5C4-4E7C-B92B-1C8D4441C7D1@yahoo.com> To: Konstantin Belousov , FreeBSD Current , freebsd-stable@freebsd.org In-Reply-To: <79973E2B-F5C4-4E7C-B92B-1C8D4441C7D1@yahoo.com> Message-Id: X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2018 09:09:14 -0000 On 2018-Oct-20, at 1:39 AM, Mark Millard wrote: > I attempted to jump from head -r334014 to -r339076 > on a threadripper 1950X board and the boot fails. > This is both native booting and under Hyper-V, > same machine and root file system in both cases. I did my investigation under Hyper-V after seeing a boot failure native. Looks like the native failure is even earlier, before db> is even possible, possibly during early loader activity. So this report is really for running under Hyper-V: -r338804 boots and -r338810 does not. By contrast -r334804 does not boot native. (But I've little information for that context.) Sorry for the confusion. I rushed the report in hopes of getting to sleep. It was not to be. > It fails just after the FreeBSD/SMP lines, > reporting "kernel trap 9 with interrupts disabled". > > It fails in pmap_force_invaldiate_cache_range at > a clflusl (%rax) instruction that produces a > "Fatal trap 9: general protection fault while > in kernel mode". cpudid=0 apic id= 00 > > I used kernel.txz files from: > > https://artifact.ci.freebsd.org/snapshot/head/r*/amd64/amd64/ > > to narrow the range of kernel builds for working -> failing > and got: > > -r338804 boots fine > (no amd64 kernel builds between to try) > -r338810+ fails (any that I tried, anyway) > > In that range is -r338807 : > > QUOTE > Author: kib > Date: Wed Sep 19 19:35:02 2018 > New Revision: 338807 > URL: > https://svnweb.freebsd.org/changeset/base/338807 > > > Log: > Convert x86 cache invalidation functions to ifuncs. > > This simplifies the runtime logic and reduces the number of > runtime-constant branches. > > Reviewed by: alc, markj > Sponsored by: The FreeBSD Foundation > Approved by: re (gjb) > Differential revision: > https://reviews.freebsd.org/D16736 > > Modified: > head/sys/amd64/amd64/pmap.c > head/sys/amd64/include/pmap.h > head/sys/dev/drm2/drm_os_freebsd.c > head/sys/dev/drm2/i915/intel_ringbuffer.c > head/sys/i386/i386/pmap.c > head/sys/i386/i386/vm_machdep.c > head/sys/i386/include/pmap.h > head/sys/x86/iommu/intel_utils.c > END QUOTE > > There do seem to be changes associated with > clflush(...) use. Looking at: > > https://svnweb.freebsd.org/base/head/sys/amd64/amd64/pmap.c?annotate=339432 > > it appears that pmap_force_invalidate_cache_range has not > changed since -r338807. > > It seems that -r338806 and -r3388810 would be unlikely > contributors. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)