From owner-freebsd-questions@freebsd.org Mon Dec 30 21:45:32 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3D7DF1EB240 for ; Mon, 30 Dec 2019 21:45:32 +0000 (UTC) (envelope-from per@hedeland.org) Received: from mailout.easydns.com (mailout.easydns.com [64.68.202.10]) (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 47mrZg2tfzz4WxX for ; Mon, 30 Dec 2019 21:45:31 +0000 (UTC) (envelope-from per@hedeland.org) Received: from localhost (localhost [127.0.0.1]) by mailout.easydns.com (Postfix) with ESMTP id 29D37A2763 for ; Mon, 30 Dec 2019 21:45:30 +0000 (UTC) Received: from mailout.easydns.com ([127.0.0.1]) by localhost (emo13-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wIUy8IlkN13O for ; Mon, 30 Dec 2019 21:45:30 +0000 (UTC) Received: from hedeland.org (81-228-157-209-no289.tbcn.telia.com [81.228.157.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easydns.com (Postfix) with ESMTPSA id E2AF49FF60 for ; Mon, 30 Dec 2019 21:45:29 +0000 (UTC) Received: from pluto.hedeland.org (pluto.hedeland.org [10.1.1.5]) by tellus.hedeland.org (8.15.2/8.15.2) with ESMTPS id xBULjRNM060302 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Mon, 30 Dec 2019 22:45:28 +0100 (CET) (envelope-from per@hedeland.org) Subject: Re: kernel: drmn0: This code is obsolete abandonware. Install the graphics/drm-legacy-kmod pkg To: freebsd-questions@freebsd.org References: <20191230045740.GA20668@admin.sibptus.ru> <20191230065405.eb83eb86.freebsd@edvax.de> <20191230060307.GA25721@admin.sibptus.ru> <20191230072754.0c7a8920.freebsd@edvax.de> <20191230064017.GA28510@admin.sibptus.ru> <20191230091749.b86d5622.freebsd@edvax.de> <20191230090855.GA37814@admin.sibptus.ru> <49ac8c7e-31f7-251f-60c4-098b7269a52d@hedeland.org> <98db4d09-9b9b-f612-e3b1-5768e171864d@panix.com> From: Per Hedeland Message-ID: Date: Mon, 30 Dec 2019 22:45:27 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <98db4d09-9b9b-f612-e3b1-5768e171864d@panix.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47mrZg2tfzz4WxX X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of per@hedeland.org has no SPF policy when checking 64.68.202.10) smtp.mailfrom=per@hedeland.org X-Spamd-Result: default: False [2.44 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; RECEIVED_SPAMHAUS_PBL(0.00)[209.157.228.81.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.48)[0.480,0]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(0.69)[0.688,0]; DMARC_NA(0.00)[hedeland.org]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[10.202.68.64.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16686, ipnet:64.68.200.0/22, country:CA]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.47)[ip: (0.62), ipnet: 64.68.200.0/22(0.12), asn: 16686(1.69), country: CA(-0.09)]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 21:45:32 -0000 On 2019-12-30 22:07, Kurt Hackenberg wrote: > On 2019-12-30 05:49, Per Hedeland wrote: > >> The message is from the in-kernel drm version, not the one installed >> by the package... > Right. > > And there's another complication: the release 12 package cannot be installed on a 12.1 system. Instead, you must compile that port, and use the port mechanism to install the compiled version. This is > because some internal kernel interface changed between 12.0 and 12.1. Yes, this has been brought up several times, I think both here and in x11@. > I think there's a version number, so the 12.1 kernel detects and refuses to load the package, which was compiled for 12.0. (Or > maybe loads it but refuses to run it.) That refusal may be why the obsolete DRM code included in the kernel runs, and puts out the "abandonware" message. Actually I believe there is no such check - the 12.1 kernel loads the compiled-for-12.0 module, and a variety of badness ensues, in most cases either a panic or a hang. I.e. I don't believe this is the reason for the obsolete in-kernel drm code being run. > This is documented in this DRM bug report: > https://github.com/FreeBSDDesktop/kms-drm/issues/183 > > If you think this is kind of a mess, then I agree with you. The problem is that these kernel modules are distributed as ports/packages, rather than with the kernel. That's policy, because the people > doing it decided that the DRM stuff changes too fast for the kernel release schedule to keep up with it. That is not expected to change. Agreed, but I think the problem is not restricted to the DRM stuff, but a general problem of having kernel modules in ports (for whatever reason), since the packages are built for a specific kernel version that may differ from the one where you install the package. I have been bitten several times by the virtualbox-ose-kmod package being out of sync with the kernel I'm running, and thus routinely build it from the port, even though I use the package for the "main" virtualbox-ose port. --Per