From nobody Mon Aug 21 17:53:29 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RV0T75ryvz4r6ld for ; Mon, 21 Aug 2023 17:53:31 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RV0T75KRFz3f4W for ; Mon, 21 Aug 2023 17:53:31 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTP id Y87TqAuJyLAoIY95mqt2gv; Mon, 21 Aug 2023 17:53:30 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPA id Y95lqds913fOSY95mqAbk5; Mon, 21 Aug 2023 17:53:30 +0000 X-Authority-Analysis: v=2.4 cv=J8G5USrS c=1 sm=1 tr=0 ts=64e3a49a a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=kj9zAlcOel0A:10 a=UttIx32zK-AA:10 a=H2chl1sJAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=qq-yAt-NlqehHX3f-JsA:9 a=CjuIK1q_8ugA:10 a=1LKL4F7LEIE-fDNXaEJ9:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 30B9FE43; Mon, 21 Aug 2023 10:53:29 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 2211337D; Mon, 21 Aug 2023 10:53:29 -0700 (PDT) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Pete Wright cc: FreeBSD Current Subject: Re: kabylake + drm-515-kmod/drm-510-kmod hangs In-reply-to: <76275772-a9c3-ed59-5fb3-47a13d2a69e6@nomadlogic.org> References: <76275772-a9c3-ed59-5fb3-47a13d2a69e6@nomadlogic.org> Comments: In-reply-to Pete Wright message dated "Mon, 21 Aug 2023 10:44:28 -0700." List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 21 Aug 2023 10:53:29 -0700 Message-Id: <20230821175329.2211337D@slippy.cwsent.com> X-CMAE-Envelope: MS4xfLCjW8f6gbLARCv1h4fywJ3KEWOp/xKTO6TX/UShP/MfQBrx2c/CiIydvzm+lKRtzWsDl5MHXCa4rJ6PbXWnSTt8/NLtk5rpwZXDY8fEDeaa+dBsp5ho NRUgocgGNAxQ4DIatHq4Rg/82kIbxipUuyxNB7f8Maz82QcCR4vQSE03j9D6v1UQbqvE4m6ugFtxEbd6jmazgaWN2qRcxzrN4WSzQjC3UV6Tk9vSHChzlcd6 pdsvieTyPmMN/SjaR0gPHQ== X-Rspamd-Queue-Id: 4RV0T75KRFz3f4W X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] In message <76275772-a9c3-ed59-5fb3-47a13d2a69e6@nomadlogic.org>, Pete Wright w rites: > hey there, > i've got a kabylake laptop that i've been using with drm-kmod for > several years without much hassle. after upgrading to a new CURRENT > this weekend I've found that when loading either the 510 or 515 drm-kmod > kernel modules my system will hang. > > unfortunately i am not getting a panic or crash, the screen stops > updating and i am unable to ping or SSH into the system. interestingly > the capslock LED still toggles but doing a CTL+ALT+DEL does not seem to > do anything useful and i have to manually power cycle. > > any tips for finding out what's going on? i've booted the system with > verbose dmesg output, and loaded the module with "kldload -v" but do not > get any useful output. > > here's the uname: > FreeBSD colony 14.0-ALPHA2 FreeBSD 14.0-ALPHA2 amd64 1400096 #0 > main-n264924-e2340276fc73: Sun Aug 20 21:28:44 PDT 2023 > pete@colony:/usr/obj/usr/home/pete/git/freebsd/amd64.amd64/sys/GENERIC amd64 > > > these are the log messages i see before the system locks up: > Aug 21 10:40:34 colony kernel: iic0: on iicbus0 > Aug 21 10:40:35 colony kernel: drmn0: on vgapci0 > Aug 21 10:40:35 colony kernel: vgapci0: child drmn0 requested pci_enable_io > Aug 21 10:40:35 colony syslogd: last message repeated 1 times > Aug 21 10:40:35 colony kernel: [drm] Unable to create a private tmpfs > mount, hugepage support will be disabled(-19). > Aug 21 10:40:35 colony kernel: [drm] Got stolen memory base 0x4b800000, > size 0x4000000 > Aug 21 10:40:35 colony kernel: lkpi_iic0: on drmn0 > Aug 21 10:40:35 colony kernel: iicbus1: on lkpi_iic0 > Aug 21 10:40:35 colony kernel: iic1: on iicbus1 > Aug 21 10:40:35 colony kernel: lkpi_iic1: on drmn0 > Aug 21 10:40:35 colony kernel: iicbus2: on lkpi_iic1 > Aug 21 10:40:35 colony kernel: iic2: on iicbus2 > Aug 21 10:40:35 colony kernel: lkpi_iic2: on drmn0 > Aug 21 10:40:35 colony kernel: iicbus3: on lkpi_iic2 > Aug 21 10:40:35 colony kernel: iic3: on iicbus3 > Aug 21 10:40:35 colony kernel: lkpi_iic3: on drmn0 > Aug 21 10:40:35 colony kernel: iicbus4: on lkpi_iic3 > Aug 21 10:40:35 colony kernel: iic4: on iicbus4 > > > > cheers, > -pete > > -- > Pete Wright > pete@nomadlogic.org > @nomadlogicLA > Rebuilding drm-51[05]-kmod after an update to LinuxKPI affecting the ABI used by the drm modules is required. Typically I get a kernel panic on a page fault when this occurs. Depending on how memory is laid out on your system you may get a hang instead. You need to install thew new kernel and world first. Disable xdm, gdm, any other *dm, or simply not use startx. From a text console session rebuild the drm port and reinstall it. I use poudriere here. My procedure is to update the poudriere jail, rebuild the port (-C option) and pkg upgrade -f or pkg install -f. Use this approach if you use poudriere. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0