Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2019 11:49:45 +0100
From:      Per Hedeland <per@hedeland.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: kernel: drmn0: This code is obsolete abandonware. Install the graphics/drm-legacy-kmod pkg
Message-ID:  <49ac8c7e-31f7-251f-60c4-098b7269a52d@hedeland.org>
In-Reply-To: <20191230090855.GA37814@admin.sibptus.ru>
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>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 2019-12-30 10:08, 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?

The message is from the in-kernel drm version, not the one installed
by the package - from a 12.1-RELEASE +
drm-fbsd12.0-kmod-4.16.g20191120 (built from the port) install:

$ strings -f /boot/kernel/drm*.ko | grep obsolete
/boot/kernel/drm.ko: This code is obsolete abandonware. Install the graphics/drm-legacy-kmod pkg
/boot/kernel/drm2.ko: This code is obsolete abandonware. Install the graphics/drm-legacy-kmod pkg

$ strings -f /boot/modules/drm*.ko | grep obsolete

When you load one of the hardware-specific modules from the package
(as you do with the recommended kld_list setting in rc.conf), it will
in turn load /boot/modules/drm.ko (from the package) - at least that
happens with i915kms.ko that I'm using.

Are you loading a drm module explicitly somehow? E.g. 'kld_load drm'
or equivalent loads the in-kernel version by default, based on:

$ sysctl kern.module_path
kern.module_path: /boot/kernel;/boot/modules;/boot/dtb;/boot/dtb/overlays

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

Correct, see above.

>>>>
>>>> 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
>>>
>>> Which "this port", graphics/drm-legacy-kmod (which I don't have
>>> installed) or graphics/drm-kmod (which I have installed)?
>>
>> The graphics/drm-kmod (installed) = "old drivers" at the
>> moment;

No - as mentioned this is a meta-port, which will actually install the
current version of graphics/drm-fbsd12.0-kmod if you are running 12.x.

--Per Hedeland



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?49ac8c7e-31f7-251f-60c4-098b7269a52d>