From owner-freebsd-current@freebsd.org Sat Oct 20 08:39:30 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 468BEFFE324 for ; Sat, 20 Oct 2018 08:39:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-21.consmr.mail.ne1.yahoo.com (sonic310-21.consmr.mail.ne1.yahoo.com [66.163.186.202]) (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 C2FAF84521 for ; Sat, 20 Oct 2018 08:39:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: oJ9GMtAVM1m0KrDSabacNexOoTmPyMEOBpa2VDmGkEIh5FCvrNpMJJlfgU4dlLs eXW0jtokvs0l4s_F1SJkJVE8kNQJlAkGft1doO0TVqvqsvNyuGQi3Dhr2fGe4TvY1iAEjnSa4AVv eBzZFbKrSagZBUph2heBMPaJyz15lzmt1tpef6Bvy3SSSwXYJ1qxmTkg35CyzYxeHjbdCEZkte3f XApH84l1xd7Seo0b5JSqphVKtUqIDPmCHM_7g2ZcJnKh27Dbhk_Wg.7aCMgrz5GmoanSReGkVD4r 2x_gBxMkMsPbRoeINOCn5GdjjhXCHfP7yGNgfbgCR5FLSqYWHga0BKxIjpAZmOL.f5LUD_1yJ6T7 T.guFc82zL6Kr7gId6VppbDBzUJVLFC2_HjcUVfakJSZgy9kAyukmIb.rotc_hOm5zVqqIgxKANx HwvcMHyJZ7IymaA7krcIjwah.Nn6NEZZRhRkmDQhpjE3TfGaLSA8kOoLnjglnmYqyaW6LeuUBLqv dEnfBP_nGk0LAE8TkatYoUGHWmzNdnbeSFclN0X9iR2t4KpYbcKhWYQV0nEqOz38jZUQPnQu7miv vQgy3cQiBrbaEMYx4UlQV.AdtxJbn5WDyZN_Q8RVHG2Z7DRIar0jswjdEwdbPH76SHC0H6WwC4yz AebJ1UJ_Vd7jqy9yc5GgvnfQXmCRprjwrRL21MUGChGmUAoUe6Ju0myANarDEbSgN5MjiniX87fa FPrdn0SHKRKQ7j9nUe2gJ8ZmBKZXmpxUwx3KkDLkt1W.8U66Vcg2DgCbSIvGAcG43NxZgVvwfPON sRaQu1SBXMggRG0qD1BXkosONbGjdiv2ynrHViUNZwWTdSzklQTXrCkiX.7lsS2MG8aZIq8PCPAe OATontlchoHbN696W_LPNJ3Pq4dAyHviTbWwLpTrKgtkCg_4DaOllCTSp0GD_oUqamOdQdWRZGip 85rPipEI1BX5bN9Sf7n0BvEFKDG4gAHx6W3ROJXFs6yZit_oBxTzz0hk9bGWn0CeviSU6FctE2Kr 50I2DNiopiPVMgv6lJuZXH_CsybBbhctF4QL1faA8I5ceqxVeCBqGkLDx7TgIfF1Xvq6PdxtqJTr dbPmQmqEvc30- Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Sat, 20 Oct 2018 08:39:23 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp427.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 927effc8c76828d79f4be3333879fd2a; Sat, 20 Oct 2018 08:39:21 +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: head -r338804 boots threadripper 1950X fine; head -r338810+ do not; -r338807 seems implicated Message-Id: <79973E2B-F5C4-4E7C-B92B-1C8D4441C7D1@yahoo.com> Date: Sat, 20 Oct 2018 01:39:19 -0700 To: Konstantin Belousov , FreeBSD Current , freebsd-stable@freebsd.org 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 08:39:30 -0000 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. 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)