Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2019 13:40:17 +0700
From:      Victor Sudakov <vas@sibptus.ru>
To:        freebsd-questions@freebsd.org
Subject:   Re: kernel: drmn0: This code is obsolete abandonware. Install the graphics/drm-legacy-kmod pkg
Message-ID:  <20191230064017.GA28510@admin.sibptus.ru>
In-Reply-To: <20191230072754.0c7a8920.freebsd@edvax.de>
References:  <20191230045740.GA20668@admin.sibptus.ru> <20191230065405.eb83eb86.freebsd@edvax.de> <20191230060307.GA25721@admin.sibptus.ru> <20191230072754.0c7a8920.freebsd@edvax.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

--+QahgC5+KEYLbs62
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 instal=
led
> > > > graphics/drm-kmod and loaded it via
> > > > kld_list=3D"/boot/modules/radeonkms.ko" in rc.conf. The X server ev=
en works OK.
> > > >=20
> > > > # pkg which "/boot/modules/radeonkms.ko"
> > > > /boot/modules/radeonkms.ko was installed by
> > > > package drm-fbsd12.0-kmod-4.16.g20191120
> > > >=20
> > > > However, the kernel complains:
> > > >=20
> > > > "kernel: drmn0: This code is obsolete abandonware.
> > > > Install the graphics/drm-legacy-kmod pkg"
> > > >=20
> > > > Is this some kind of bug?
> > >=20
> > > No, it's intended. You'll also see such warnings during
> > > the boot process and in the system message log file.
> > >=20
> >=20
> > 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.
>=20
> Not really. From the description:
>=20
> 	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.
>=20
> 	Metaport for different versions of Linux
> 	DRM based on the FreeBSD version in use.
>=20
> This port is a meta-port of the drivers previously contained

Which "this port", graphics/drm-legacy-kmod (which I don't have
installed) or graphics/drm-kmod (which I have installed)?

> 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.
>=20
> 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.
>=20

Well, in my case

# pkg which "/boot/modules/radeonkms.ko"=20
/boot/modules/radeonkms.ko was installed by package drm-fbsd12.0-kmod-4.16.=
g20191120

this is probably *the* OS specific version.

>=20
>=20
> > > > Why would graphics/drm-kmod be considered obsolete?
> > >=20
> > > No idea.=20
> >=20
> > Is this some kind of bug?
>=20
> No, just a strange naming method without proper communication
> on _why_ the naming appears.
>=20
> Summary:
>=20
> "Old drivers":
>=20
> DRM by OS -> graphics/drm-kmod pkg -> graphics/drm-legacy-kmod pkg
>=20
> "New drivers":
>=20
> graphics/drm-fbsd<VERSION>-kmod pkg

>=20
> 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...
Which do I have then, to begin with?

# pkg info | grep kmo
drm-fbsd12.0-kmod-4.16.g20191120 DRM modules for the linuxkpi-based KMS com=
ponents
drm-kmod-g20190710             Metaport of DRM modules for the linuxkpi-bas=
ed KMS components
gpu-firmware-kmod-g20190825    Firmware modules for the linuxkpi-based KMS =
components

>=20
>=20
>=20
> > > 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.
> > >=20
> > > >From the package description:
> > >=20
> > > 	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.
> >=20
> > 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.
>=20
> 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...
>=20
> Detailed information here:
>=20
> https://www.freshports.org/graphics/drm-fbsd12.0-kmod

This is what I seem to have:

# pkg which "/boot/modules/radeonkms.ko"=20
/boot/modules/radeonkms.ko was installed by package drm-fbsd12.0-kmod-4.16.=
g20191120

>=20
> > > So graphics/drm-kmod will be for newer graphics hardware,
> >=20
> > True. It's not "obsolete abandonware", it it?
>=20
> 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. ;-)

--=20
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/

--+QahgC5+KEYLbs62
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJeCZvRAAoJEA2k8lmbXsY0QnMH/jWezTXqW28nHwO878tlVR3w
vG6qRlvkA3QEQKDRWz27KOfOgMvGSK0LDmxMZWm6ivwGqGopd3lcnr49gt9zjURC
gijc+Kpno71dA2IiCGXmrfLf7fMpa6E8Ys1sPLyb8GHPEYdf9EwNYzd2crYcQeYV
v+S+OxmH8Q07rC9NQeyxRcXdDZ7N7tA0gjrH2oSKcDCrT0uzO948UZ4phjIk6lAI
XpUaMG4jVk06B41k4vQTDCHIEoZdppAWV9wo9r4hppIShRvS4cfgsArZsq9oFXZc
i4qet8sBNAM1ah7ZWjL0Ispuk0FLbfxsTBggWFhLdxSOjwJYDDeGeOH+taQjj5o=
=3S7H
-----END PGP SIGNATURE-----

--+QahgC5+KEYLbs62--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20191230064017.GA28510>