From owner-freebsd-questions@freebsd.org Mon Dec 30 06:28:03 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 C40651D6E73 for ; Mon, 30 Dec 2019 06:28:03 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mSD15JfPz4dPr for ; Mon, 30 Dec 2019 06:28:01 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.12.37.236]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPA (Nemesis) id 1Mo6WJ-1jW9xv2BZb-00pgWE; Mon, 30 Dec 2019 07:27:56 +0100 Date: Mon, 30 Dec 2019 07:27:54 +0100 From: Polytropon To: Victor Sudakov Cc: freebsd-questions@freebsd.org Subject: Re: kernel: drmn0: This code is obsolete abandonware. Install the graphics/drm-legacy-kmod pkg Message-Id: <20191230072754.0c7a8920.freebsd@edvax.de> In-Reply-To: <20191230060307.GA25721@admin.sibptus.ru> References: <20191230045740.GA20668@admin.sibptus.ru> <20191230065405.eb83eb86.freebsd@edvax.de> <20191230060307.GA25721@admin.sibptus.ru> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:ajBQ/ntOEpkkumGKGTEDPhfQ10zpohVt2iuP9Cn1pRWq5f0jJ1U 92Wk1jugu5Oq5SYvrhlscOpPOQD9QJXEJNMWaZOnNWy6c1sMayr3cAyC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zw== X-Rspamd-Queue-Id: 47mSD15JfPz4dPr X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.131) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.55 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[236.37.12.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.67)[0.671,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.993,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[131.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.48)[ip: (1.38), ipnet: 212.227.0.0/16(-1.20), asn: 8560(2.25), country: DE(-0.02)] 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 06:28:03 -0000 On Mon, 30 Dec 2019 13:03:07 +0700, Victor Sudakov wrote: > Polytropon wrote: > > On Mon, 30 Dec 2019 11:57:40 +0700, Victor Sudakov wrote: > > > On an "HP ProBook 6560b" notebook running FreeBSD 12.1, I've installed > > > graphics/drm-kmod and loaded it via > > > kld_list="/boot/modules/radeonkms.ko" in rc.conf. The X server even works OK. > > > > > > # pkg which "/boot/modules/radeonkms.ko" > > > /boot/modules/radeonkms.ko was installed by > > > package drm-fbsd12.0-kmod-4.16.g20191120 > > > > > > However, the kernel complains: > > > > > > "kernel: drmn0: This code is obsolete abandonware. > > > Install the graphics/drm-legacy-kmod pkg" > > > > > > Is this some kind of bug? > > > > No, it's intended. You'll also see such warnings during > > the boot process and in the system message log file. > > > > It cannot be intended with graphics/drm-kmod installed which is by > definition not "legacy" or "obsolete". Quite the opposite, it should be > the newer driver. Not really. From the description: amdgpu, i915, and radeon DRM modules for the linuxkpi-based KMS components on amd64, i915 and radeonkms DRM modules from the former base DRM component on other architectures. Metaport for different versions of Linux DRM based on the FreeBSD version in use. This port is a meta-port of the drivers previously contained in the OS installation (course of migrating OS components to individual packages). So it contains the "old drivers", that's why it'll be replaced by the "legacy"-named package, and the corresponding stuff will be removed from the OS entirely. There will be packages specific to OS versions, to better match them, for example graphics/drm-fbsd12.0-kmod for FreeBSD 12, and graphics/drm-fbsd13.0-kmod for upcoming FreeBSD 13. This way, legacy stuff (for old hardware) can be separated from new development for more recent hardware. > > > Why would graphics/drm-kmod be considered obsolete? > > > > No idea. > > Is this some kind of bug? No, just a strange naming method without proper communication on _why_ the naming appears. Summary: "Old drivers": DRM by OS -> graphics/drm-kmod pkg -> graphics/drm-legacy-kmod pkg "New drivers": graphics/drm-fbsd-kmod pkg Of course, the loading methods (kld_list setting in /etc/rc.conf) will have to be adjusted accordingly. Also note that those are metaports, installing a collection of individual driver packages, if I read (and understood) the description correctly... > > There now is a "legacy" package that is to be used. > > I haven't tried this yet, but it should provide the same > > functionality. Sidenote: I see the same with Intel graphics > > in an older Lenovo Thinkpad. > > > > >From the package description: > > > > Legacy DRM driver that used to be in FreeBSD base > > before the removal in FreeBSD 13. For newer Intel > > and AMD hardware, please use graphics/drm-kmod > > which will pick an appropriate driver for your > > system. > > That is it! As I wrote before, I use graphics/drm-kmod, but still see > complaints about "obsolete abandonware." If it is intended, then it's a > very odd intention. Sorry I didn't explain it more clearly in my first reply. The graphics/drm-kmod package is the "old drivers", while graphics/drm-fbsd12.0-kmod is the one you should use if you want the "new drivers". However, I'm not sure in how far this will work with older hardware... Detailed information here: https://www.freshports.org/graphics/drm-fbsd12.0-kmod > > So graphics/drm-kmod will be for newer graphics hardware, > > True. It's not "obsolete abandonware", it it? No, sorry for causing confusion: it _is_ the "obsolete abandonware" and therefore will be renamed with the "legacy" qualifier; instead use graphics/drm-fbsd12.0-kmod for the not yet fully outdated abandon-prone obsoleteware of Linuxism. ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...