From owner-freebsd-x11@freebsd.org Mon Feb 11 17:42:33 2019 Return-Path: Delivered-To: freebsd-x11@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 7A2BE14DE987; Mon, 11 Feb 2019 17:42:33 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2607:f740:d:20::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4644B816FE; Mon, 11 Feb 2019 17:42:32 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 43ytQt6LQpzDjMn; Mon, 11 Feb 2019 17:42:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=daemonic.se; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=20151023; t=1549906950; bh=t813ZDgyvCpITvFMwpOZqmNR gze7HW7STAZteNbSrqE=; b=sRHvqZUlTKLjulOxBxniEY0kL5qjXLS2raDJhWgc vWnoIRygFFWSt7Lvq5KV177yLsxado5bYqHM4TaFdcnMW5a9RM96q9OSnhPJ3J7U Kqcas8CKGBcJfTyv3kfJNAqYIhrMsGSvxGB8YOthivs9i/ik6aQfQOB+sfNhQ30y Y1g= X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([IPv6:::1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [IPv6:::1]) (amavisd-new, port 10587) with ESMTPS id xoVqAqmdc5C6; Mon, 11 Feb 2019 17:42:30 +0000 (UTC) Received: from garnet.daemonic.se (unknown [94.136.80.38]) by mail.daemonic.se (Postfix) with ESMTPSA id 43ytQs716mzDjCL; Mon, 11 Feb 2019 17:42:29 +0000 (UTC) Subject: Re: drm2 removed? To: sgk@troutmask.apl.washington.edu Cc: freebsd-current@freebsd.org, freebsd-ports@freebsd.org, freebsd-x11@freebsd.org References: <20190211161205.GB41262@troutmask.apl.washington.edu> <20190211162020.GA41438@troutmask.apl.washington.edu> <20190211173653.GA42437@troutmask.apl.washington.edu> From: Niclas Zeising Message-ID: <1a9ec129-84e8-0fd3-3768-9e40590347ff@daemonic.se> Date: Mon, 11 Feb 2019 18:42:29 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190211173653.GA42437@troutmask.apl.washington.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4644B816FE X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=daemonic.se header.s=20151023 header.b=sRHvqZUl; dmarc=pass (policy=none) header.from=daemonic.se; spf=pass (mx1.freebsd.org: domain of zeising@daemonic.se designates 2607:f740:d:20::25 as permitted sender) smtp.mailfrom=zeising@daemonic.se X-Spamd-Result: default: False [-6.69 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[daemonic.se:s=20151023]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+a]; IP_SCORE(-3.71)[ip: (-9.70), ipnet: 2607:f740:d::/48(-4.85), asn: 36236(-3.90), country: US(-0.07)]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mail.daemonic.se]; DKIM_TRACE(0.00)[daemonic.se:+]; DMARC_POLICY_ALLOW(-0.50)[daemonic.se,none]; NEURAL_HAM_SHORT(-0.97)[-0.971,0]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:36236, ipnet:2607:f740:d::/48, country:US]; TAGGED_FROM(0.00)[freebsd]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2019 17:42:33 -0000 On 2/11/19 6:36 PM, Steve Kargl wrote: > On Mon, Feb 11, 2019 at 06:05:03PM +0100, Niclas Zeising wrote: >> On 2/11/19 5:20 PM, Steve Kargl wrote: >>> On Mon, Feb 11, 2019 at 08:12:05AM -0800, Steve Kargl wrote: >>>> Anyone have any idea which recent change broke the >>>> drm-legacy-kmod port. This is why I raised an issue >>>> with removal of drm2 from src/sys. How is suppose >>>> to be fixed? >>>> >>> >>> It was r343567. The merging of PAE and NO PAE pmap.h >>> by kib removed all of the missing macros. :( >>> >> >> Can you give attached patch a spin? >> Thanks! >> Regards >> -- >> Niclas > > The patch allows the port to be built. > > kldloading the i915kms module causes a 'black screen > of death' > > I'll note that there seems to be a race condition in > booting a kernel (with or without the drm2 stuff). > During boot the kernel hangs (see below) : > > ---<>--- > Copyright (c) 1992-2019 The FreeBSD Project. > 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 r343477 MOBILE i386 > FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1) > VT(vga): resolution 640x480 > CPU: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz (1995.05-MHz 686-class CPU) > Origin="GenuineIntel" Id=0x6fd Family=0x6 Model=0xf Stepping=13 > Features=0xbfebfbff > Features2=0xe3bd > AMD Features=0x20100000 > AMD Features2=0x1 > VT-x: (disabled in BIOS) HLT,PAUSE > TSC: P-state invariant, performance statistics > real memory = 4294967296 (4096 MB) > avail memory = 3659202560 (3489 MB) > Event timer "LAPIC" quality 100 > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > FreeBSD/SMP: 1 package(s) x 2 core(s) > Firmware Warning (ACPI): Incorrect checksum in table [TCPA] - 0x80, should be 0x24 (20190108/tbprint-337) > ioapic0: Changing APIC ID to 2 > ioapic0 irqs 0-23 on motherboard > Launching APs: 1 > > *** kernel hangs here sometimes *** > > Timecounter "TSC" frequency 1995048460 Hz quality 1000 > random: entropy device external interface > kbd1 at kbdmux0 > > Hi! I assume you load the kernel module either manually with kldload or using kld_list in rc.conf, not by loading it from the loader? So there is two bugs? One bug is that the kernel hangs while booting, and the other is that you get a black screen when loading the drm module after the kernel is mostly done booting? Regards -- Niclas