From nobody Tue Jun 15 21:04:02 2021 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 B9CB111E5CDC for ; Tue, 15 Jun 2021 21:04:05 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G4LQs4f0Rz3LRH; Tue, 15 Jun 2021 21:04:05 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro.local (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 302042CB47; Tue, 15 Jun 2021 21:04:05 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Subject: Re: drm-kmod kernel crash fatal trap 12 To: Bakul Shah Cc: lausts@acm.org, Current FreeBSD References: <01000179f13a6d3e-da7dd183-162b-4d1e-bf61-cfae3c584814-000000@email.amazonses.com> <4894bd36-92bd-596e-cc18-cd3e6aafe47f@selasky.org> <01000179f645c406-d38fbce4-d9d4-41c2-8c20-54a278d44196-000000@email.amazonses.com> <046B931E-899A-4643-B516-C1863E3D3EC3@iitbombay.org> <3b43e526-80af-abf7-bc78-1a59dbc35b8d@FreeBSD.org> From: John Baldwin Message-ID: <30bbdb21-9fd7-ac33-c688-05b8907fb8cb@FreeBSD.org> Date: Tue, 15 Jun 2021 14:04:02 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 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 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: N On 6/15/21 11:22 AM, Bakul Shah wrote: > On Jun 15, 2021, at 9:03 AM, John Baldwin wrote: >> >> On 6/10/21 8:13 AM, Bakul Shah wrote: >>> On Jun 10, 2021, at 7:13 AM, Thomas Laus wrote: >>>> The drm-kmod module is the latest from the pkg server. It all >>>> worked this past Monday after the recent drm-kmod update. >>> This is what I did: >>> git clone https://github.com/freebsd/drm-kmod >>> ln -s $PWD/drm-kmod /usr/local/sys/modules >>> Now it gets compiled every time you do make buildkernel. >>> If things break you can do a git pull in the drm-kmod dir >>> and rebuild. >> >> This is what I do now as well. I think this is probably the >> sanest approach to use on HEAD at least. > > IIRC I learned this from one of your posts. > > The PORTS_MODULES approach results in installing kernel modules > /boot/modules, which doesn't track /boot/kernel*/. Yes, PORTS_MODULES is not so great when you are building test kernels from branches that are different points in time and then go back to booting your "stock" kernel as the module is now built against the wrong ABI and breaks your "stock" kernel. This is why I added LOCAL_MODULES and the SRC knob to drm-kmod, but the source knob is a bit bumpy in practice as you sometimes need newer source than your current package. (For example, if your "stock" kernel only changes every few months, but you pull newer work trees for test kernels.) For that case, it has proven simpler to just do the direct checkout that I can git pull when needed. -- John Baldwin