From owner-freebsd-current@freebsd.org Wed Jan 20 19:16:28 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 B565E4FF64A for ; Wed, 20 Jan 2021 19:16:28 +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 4DLZy35gTnz3jys for ; Wed, 20 Jan 2021 19:16:27 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.160] (cpe-24-24-163-126.socal.res.rr.com [24.24.163.126]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 2e7c18cd (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 20 Jan 2021 19:16:26 +0000 (UTC) Subject: Re: DRM problem installing kernel on main-c561-gc3e75b6c1 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> <01b20079-1117-f51c-b78a-598d573403b9@nomadlogic.org> <20210119221801.d397abc940082f21bf93a42c@bidouilliste.com> <1922f880-1bd3-65d0-b816-73623fa62f33@nomadlogic.org> <20210120085535.d3b6ccb33f9c8b111922b422@bidouilliste.com> <20210120200923.40ed0107802b68f0c73dad28@bidouilliste.com> From: Pete Wright Message-ID: Date: Wed, 20 Jan 2021 11:16:25 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210120200923.40ed0107802b68f0c73dad28@bidouilliste.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 4DLZy35gTnz3jys X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(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]; 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_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current]; RCVD_COUNT_TWO(0.00)[2] 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: Wed, 20 Jan 2021 19:16:28 -0000 On 1/20/21 11:09 AM, Emmanuel Vadot wrote: > On Wed, 20 Jan 2021 09:47:28 -0800 > Pete Wright wrote: > >> >> On 1/19/21 11:55 PM, Emmanuel Vadot wrote: >>>> i'm happy now running the current-kmod but let me know if it'd be >>>> helpful to do any more tests or provide additional info. >>> So what did you change ? >> >> ok i think i spot the issue - in my checkout of the ports tree via the >> github mirror at git://github.com/freebsd/freebsd-ports.git it looks >> like the pkg-plist doesn't include the %%SOURCE%%KMODSRC%% statements: >> >> $ cat pkg-plist >> %%AMDGPU%%/%%KMODDIR%%/amdgpu.ko >> %%AMDKFD%%/%%KMODDIR%%/amdkfd.ko >> /%%KMODDIR%%/drm.ko >> %%I915%%/%%KMODDIR%%/i915kms.ko >> /%%KMODDIR%%/linuxkpi_gplv2.ko >> /%%KMODDIR%%/radeonkms.ko >> /%%KMODDIR%%/ttm.ko >> $ >> >> on the drm-current-kmod plist things look as we would expect them i believe: >> $ head pkg-plist >> %%AMDGPU%%/%%KMODDIR%%/amdgpu.ko >> /%%KMODDIR%%/drm.ko >> %%I915%%/%%KMODDIR%%/i915kms.ko >> /%%KMODDIR%%/linuxkpi_gplv2.ko >> /%%KMODDIR%%/radeonkms.ko >> /%%KMODDIR%%/ttm.ko >> %%SOURCE%%%%KMODSRC%%/Makefile >> %%SOURCE%%%%KMODSRC%%/kconfig.mk >> %%SOURCE%%%%KMODSRC%%/amd/Makefile >> %%SOURCE%%%%KMODSRC%%/amd/amdgpu/Makefile >> $ >> >> >> I can file a PR with a patch later today if that's helpful, if this >> isn't due to bad git workspace on my end. >> >> cheers, >> -pete >> >> -- >> Pete Wright >> pete@nomadlogic.org >> @nomadlogicLA > drm-devel-kmod doesn't install the sources on purpose. > It never had and never will. > > So, did you "solve" the problem by switching to drm-current-kmod or to > drm-devel-kmod ? ah i see, thanks for the clarification. so as of now i'm using the drm-current-kmod on my amdgpu system. using the drm-devel-kmod throws the previously reported error trying to load linuxkpi_gplv2.ko: 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 -p -- Pete Wright pete@nomadlogic.org @nomadlogicLA