From owner-freebsd-current@freebsd.org Fri Jan 15 18:36:33 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5F7F0A8333E for ; Fri, 15 Jan 2016 18:36:33 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from mail.auburn.protected-networks.net (mail.auburn.protected-networks.net [IPv6:2001:470:1f07:4e1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.auburn.protected-networks.net", Issuer "Protected Networks Root CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 335171F7B for ; Fri, 15 Jan 2016 18:36:33 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [192.168.1.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "Iain Michael Butler", Issuer "Protected Networks CA" (verified OK)) (Authenticated sender: imb@mail.auburn.protected-networks.net) by mail.auburn.protected-networks.net (Postfix) with ESMTPSA id 6D27EB917; Fri, 15 Jan 2016 13:35:03 -0500 (EST) Subject: Re: r294070: KLD nvidia-modeset.ko: depends on kernel - not available or version mismatch linker_load_file: Unsupported file type To: David Wolfskill , "O. Hartmann" , FreeBSD CURRENT References: <20160115191943.5bf06310@hermann> <20160115182416.GD46213@albert.catwhisker.org> From: Michael Butler Openpgp: id=6F63E6399DCC8E3E94D60F0642FF6BAE0442D492 Message-ID: <56993BD5.1000106@protected-networks.net> Date: Fri, 15 Jan 2016 13:35:01 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160115182416.GD46213@albert.catwhisker.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jan 2016 18:36:33 -0000 On 01/15/16 13:24, David Wolfskill wrote: > On Fri, Jan 15, 2016 at 07:19:43PM +0100, O. Hartmann wrote: >> On FreeBSD 11.0-CURRENT #1 r294070: Fri Jan 15 06:21:20 CET 2016 amd64, >> loading nvidia kernel module results in the error: >> >> KLD nvidia-modeset.ko: depends on kernel - not available or version >> mismatch linker_load_file: Unsupported file type >> >> This worked prior to r294070 >> .... > > My most recent build of head was at r294086; I didn't see a problem with > nvidia -- but I have 'PORTS_MODULES=x11/nvidia-driver' in /etc/src.conf, > so it's rebuilt every time I rebuild the kernel. > > Have you rebuilt nvidia-driver recently? This is as a consequence of the following change. You need to rebuild all modules to match the kernel: ------------------------------------------------------------------------ r294086 | hselasky | 2016-01-15 06:18:58 -0500 (Fri, 15 Jan 2016) | 7 lines Changed paths: M /head/sys/compat/linuxkpi/common/include/linux/pci.h M /head/sys/compat/linuxkpi/common/src/linux_pci.c M /head/sys/sys/param.h Implement support for PCI suspend, resume and shutdown events in the LinuxKPI. Fix a few spaces to tabs. Bump the FreeBSD version to force recompilation of existing KMODs. imb