From owner-freebsd-stable@freebsd.org Mon Oct 29 12:19:28 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5523010D66E4 for ; Mon, 29 Oct 2018 12:19:28 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from mail.daemonic.se (mail.daemonic.se [176.58.89.161]) (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 DD4206EB00 for ; Mon, 29 Oct 2018 12:19:27 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 42kDDS0mN4zDhxn; Mon, 29 Oct 2018 12:19:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([127.0.0.1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [127.0.0.1]) (amavisd-new, port 10587) with ESMTPS id A7GIzp8tzuao; Mon, 29 Oct 2018 12:19:19 +0000 (UTC) Received: from garnet.daemonic.se (host-95-192-226-92.mobileonline.telia.com [95.192.226.92]) by mail.daemonic.se (Postfix) with ESMTPSA id 42kDDR0PzFzDhFd; Mon, 29 Oct 2018 12:19:18 +0000 (UTC) Subject: Re: Kernel modules and updates (problems with graphics/drm-stable-kmod) To: Arrigo Marchiori , freebsd-stable@freebsd.org References: <20181029112355.GA3887@nuvolo> From: Niclas Zeising Message-ID: <47be1338-40fa-ec15-0c97-4655ee39ab12@freebsd.org> Date: Mon, 29 Oct 2018 13:19:18 +0100 User-Agent: Mutt/1.5.21 MIME-Version: 1.0 In-Reply-To: <20181029112355.GA3887@nuvolo> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2018 12:19:28 -0000 On 10/29/18 12:23 PM, Arrigo Marchiori via freebsd-stable wrote: > Dear All, > > I am encountering a strange problem with port graphics/drm-stable-kmod. > My system is a 11.2-STABLE amd64 with GENERIC kernel. > > I upgrade the base system every week or two from source. My > /etc/make.conf lists graphics/drm-stable-kmod in PORTS_MODULES, in > order to have it recompiled with every kernel. > > When I install the new kernel, run mergemaster and reboot, however, > Xorg is unable to drive the video card: something goes wrong with DRM > and he tty belonging to Xorg remains black. The other tty's work > well. > > I tracked down the problem to the file /boot/kernel/radeonkms.ko > ^^^^^^ > If I delete that file and reboot, Xorg works fine. > > My question is: why is that file there? The port > graphics/drm-stable-kmod installs its module in > /boot/modules/radeonkms.ko but the other version from /boot/kernel/ > ^^^^^^^ ^^^^^^ > seems to be loaded instead, and therefore Xorg does not work. > > Is this a bug of either installkernel, or the port? Or am I doing > anything wrong? > > Thank you in advance, > Hi! /boot/kernel/radeonkms.ko is part of the old drm driver that is in base on 11.2 and 12. In order to load the module from drm-stable-kmod you need to specify the whole path, /boot/modules/radeonkms.ko when loading the module. Regards -- Niclas Zeising