From owner-freebsd-current@freebsd.org Tue Jan 19 21:06:40 2021 Return-Path: Delivered-To: freebsd-current@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 C0D814DF820 for ; Tue, 19 Jan 2021 21:06:40 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [174.136.98.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DL1Rg3B80z4jWJ for ; Tue, 19 Jan 2021 21:06:39 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.223] (cpe-24-24-163-126.socal.res.rr.com [24.24.163.126]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 877ce9f7 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 19 Jan 2021 21:06:37 +0000 (UTC) Subject: Re: DRM problem installing kernel on main-c561-gc3e75b6c1 From: Pete Wright To: Emmanuel Vadot Cc: freebsd-current@freebsd.org References: <010001771b0a2c68-7bb71129-e451-4d4c-a3b4-d022c375a36e-000000@email.amazonses.com> <301b529c-6953-0e72-8da4-2e1c289df54e@nomadlogic.org> <20210119211159.d6395f9ed3b6e038f5f40b15@bidouilliste.com> <629d42c7-da2e-8285-09d6-b952b6556562@nomadlogic.org> Message-ID: <01b20079-1117-f51c-b78a-598d573403b9@nomadlogic.org> Date: Tue, 19 Jan 2021 13:06:37 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <629d42c7-da2e-8285-09d6-b952b6556562@nomadlogic.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4DL1Rg3B80z4jWJ X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nomadlogic.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[174.136.98.114:from]; SPAMHAUS_ZRD(0.00)[174.136.98.114:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:25795, ipnet:174.136.96.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 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: Tue, 19 Jan 2021 21:06:40 -0000 On 1/19/21 12:18 PM, Pete Wright wrote: > > > On 1/19/21 12:11 PM, Emmanuel Vadot wrote: >> On Tue, 19 Jan 2021 11:40:04 -0800 >> Pete Wright wrote: >> >>> >>> On 1/19/21 11:33 AM, Pete Wright wrote: >>>> >>>> On 1/19/21 6:26 AM, Thomas Laus wrote: >>>>> I perform a CURRENT build weekly on a more powerful build machine and >>>>> then export /usr/src and /usr/obj via NFS to other slower PC's. The >>>>> 'installkernel' phase failed with 'linuxkpi_gplv2.ko' not found.  It >>>>> looks like this file is not installed before the rest of the >>>>> 'drm-current-kmod' files.  This causes the 'installkernel' over NFS >>>>> to fail. >>>>> >>>>> My fis was to un-install drm-current-kmod, install the kernel and >>>>> then >>>>> re-install drm-current-kmod. >>>> hrm, i'm not sure this is specifically an NFS issue.  I am >>>> building/installing locally on my workstation but am getting similar >>>> errors trying to load drm-devel-kmod's amdgpu mod.  at this point even >>>> uninstalling drm-devel-kmod, make installkernel, install >>>> drm-devel-kmod pkg results in the same problem. >>>> >>> forgot to include dmesg error: >>> KLD drm.ko: depends on linuxkpi_gplv2 - not available or version >>> mismatch >>> linker_load_file: /boot/modules/drm.ko - unsupported file type >>> KLD amdgpu.ko: depends on drmn - not available or version mismatch >>> linker_load_file: /boot/modules/amdgpu.ko - unsupported file type >>> >>> -pete >>> >>> -- >>> Pete Wright >>> pete@nomadlogic.org >>> @nomadlogicLA >>   Sound like you have an old linuxkpi_gplv2.ko in /boot/kernel/ >> > > Thanks Manu - so it looks like i don't have that file under > /boot/kernel/ but in /boot/modules instead: > $ find /boot/ -name '*linuxkpi*' -print > /boot/modules/linuxkpi_gplv2.ko > /boot/kernel/linuxkpi.ko > /boot/kernel.old/linuxkpi.ko > $ pkg which /boot/modules/linuxkpi_gplv2.ko > /boot/modules/linuxkpi_gplv2.ko was installed by package > drm-current-kmod-5.4.62.g20210118 > $ > > above is after installing the current kmod to see if it behaved > differently than the devel one. > > -pete > > interesting - so it seems like if i have drm-devel-kmod installed this will fail (missing or wrong linuxkpi_gplv2.ko).  this happens both if i install the pkg and rebuild the kernel, and if i build the kernel w/o the pkg installed. yet, if i have the drm-current-kmod pkg installed, then "make buildkernel" it looks like the i915/amdgpu modules get build and an "installkernel" drops the linuxkpi_gplv2.ko module under /boot/kernel.  at that point i am able to successfully load the amdgpu.ko. finally, i install the drm-current-pkg fresh (without doing the above buildkernel/installkernel) i get the linuxkpi_gplv2 error as above. -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA