From owner-freebsd-current@freebsd.org Fri Feb 22 06:04:14 2019 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 0B61B14DA254 for ; Fri, 22 Feb 2019 06:04:14 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9FD2883B6D for ; Fri, 22 Feb 2019 06:04:12 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id x1M64Ah9025825 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Thu, 21 Feb 2019 22:04:10 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id x1M64ASC025824 for freebsd-current@freebsd.org; Thu, 21 Feb 2019 22:04:10 -0800 (PST) (envelope-from sgk) Date: Thu, 21 Feb 2019 22:04:10 -0800 From: Steve Kargl To: freebsd-current@freebsd.org Subject: Re: r343567 aka PAE vs non-PAE merge breaks i386 freebsd Message-ID: <20190222060410.GA25817@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <20190222033924.GA25285@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190222033924.GA25285@troutmask.apl.washington.edu> User-Agent: Mutt/1.11.2 (2019-01-07) X-Rspamd-Queue-Id: 9FD2883B6D X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [2.10 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_MEDIUM(0.73)[0.734,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_SHORT(0.32)[0.322,0]; RCVD_IN_DNSWL_MED(-0.20)[21.76.95.128.list.dnswl.org : 127.0.11.2]; MX_GOOD(-0.01)[cached: troutmask.apl.washington.edu]; DMARC_NA(0.00)[washington.edu]; NEURAL_SPAM_LONG(0.29)[0.291,0]; R_SPF_NA(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.07)[ip: (0.12), ipnet: 128.95.0.0/16(0.18), asn: 73(0.09), country: US(-0.07)] 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: Fri, 22 Feb 2019 06:04:14 -0000 On Thu, Feb 21, 2019 at 07:39:25PM -0800, Steve Kargl wrote: > r343567 merges the PAE vs non-PAE pmap headers for i386 > freebsd. After bisection and dealing with the drm-legacy-kmod > fallout, I bisected /usr/src to r343567. Building world and > a GENERIC kernel and the minimum set of ports to start Xorg > on my Dell Latitude D530 laptop, results in a black screen > of death and a locked up laptop (no keyboard, mouse, or video). > > A comparison of /etc/log/Xorg.0.log for r343566 (Xorg loads > and functions) and r353467 (Xorg black screen of death) shows > that /boot/modules/i915kms.ko loads correctly as the log > files are identical. > > Comparing dmesg for r343566 to r343567 shows the following > > --- dmesg.343566 2019-02-20 08:13:07.727202000 -0800 > +++ dmesg.343567 2019-02-21 19:02:24.469562000 -0800 > @@ -3,11 +3,11 @@ > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > -FreeBSD 13.0-CURRENT r343566 GENERIC i386 > +FreeBSD 13.0-CURRENT r343567 GENERIC i386 > FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1) > WARNING: WITNESS option enabled, expect reduced performance. > VT(vga): resolution 640x480 > -CPU: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz (1995.05-MHz 686-class CPU) > +CPU: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz (1995.04-MHz 686-class CPU) > Origin="GenuineIntel" Id=0x6fd Family=0x6 Model=0xf Stepping=13 > Features=0xbfebfbff > Features2=0xe3bd > @@ -16,7 +16,7 @@ > VT-x: (disabled in BIOS) HLT,PAUSE > TSC: P-state invariant, performance statistics > real memory = 4294967296 (4096 MB) > -avail memory = 3639914496 (3471 MB) > +avail memory = 4154175488 (3961 MB) > > Somehow the r343567 kernel found an addition 490 MB of memory, > which leads me to believe the after loading i915kms.ko there > is some serious memory stomping issues. > > I willing to do whatever is necessary to fix this issue (shorter > of mailing the laptop to someone). Is it possible to revert > r343567 and move forward? > More info from sysctl. With the "good" r343566, I see vm.kmem_map_free: 1187033088 vm.kmem_map_size: 27234304 vm.kmem_size_scale: 3 vm.kmem_size_max: 1715470336 vm.kmem_size_min: 12582912 vm.kmem_zmax: 65536 vm.kmem_size: 1214267392 hw.physmem: 3714269184 hw.usermem: 3650867200 hw.realmem: 4294963200 With the problematic r343567, I see vm.kmem_map_free: 1683152896 vm.kmem_map_size: 28123136 vm.kmem_size_scale: 1 vm.kmem_size_max: 1711276032 vm.kmem_size_min: 12582912 vm.kmem_zmax: 65536 vm.kmem_size: 1711276032 hw.physmem: 4252360704 hw.usermem: 4146999296 hw.realmem: 4294963200 Ideas? -- Steve