Date: Mon, 6 Apr 2020 08:37:33 +0100 From: Grzegorz Junka <list1@gjunka.com> To: freebsd-ports@freebsd.org Subject: Re: amdgpu panics Message-ID: <c5a5a71e-a1e2-2efd-b45d-d68daa893fa4@gjunka.com> In-Reply-To: <9bc766aa-b17f-e8bc-bea2-11431972cf5d@selasky.org> References: <be363a85-cf11-f0d9-b6ca-39f0013322c7@gjunka.com> <d9f2137e-8e23-b00f-fe82-a1f83a6fe778@selasky.org> <6b0092f3-8d90-f1bc-b2ae-cf2fa2f029e0@gjunka.com> <d037e4dd-75a1-dcab-74f6-0cbfde452b7d@selasky.org> <47774b7a-0a6d-8806-6dee-4f0036651ace@gjunka.com> <20200312163447.GB42880@phouka1.phouka.net> <e880d6b2-92a5-ed60-5ef8-21812f193aa3@gjunka.com> <8d8ae2c8-1ecd-5c8c-2437-4e47cf48bd60@gmx.de> <96c03c59-b28e-3af1-e98b-e95517c20010@gjunka.com> <83bfb6f7-0a84-2905-7849-e4e93d9f6fb1@selasky.org> <9426b9bb-4fe6-37ba-ecb4-13a1ade47f92@gjunka.com> <9bc766aa-b17f-e8bc-bea2-11431972cf5d@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06/04/2020 08:21, Hans Petter Selasky wrote: >> >> They don't match, and they can't. >> >> Files in /boot/modules have been installed by drm-fbsd12.0-kmod and >> files in /boot/kernel have been installed by >> FreeBSD-kernel-venus-12.1_3 (venus is the name I gave the kernel >> configuration). > > Is drm-fbsd12.0-kmod built using the same sources as > FreeBSD-kernel-venus-12.1_3. Can you try this: > > 1) Build and install a fresh 12-stable kernel, not release kernel, > from /usr/src > 2) Build and install /usr/ports/graphics/gpu-firmware-kmod > 3) Build and install /usr/ports/graphics/drm-fbsd12.0-kmod > >> >> I built the ports and the kernel on the same system but at different >> times. First I updated all sources (/usr/src and /usr/ports) then I >> built packages. When that didn't work, few days later I built the >> kernel and world. No updates to the sources have been made between >> those two. >> >> kldload /boot/modules/drm.ko /boot/modules/amdgpu.ko <- doesn't >> work, system halts after loading one of the vega10 modules. > > --HPS I am not sure I understand your question. drm-fbsd12.0-kmod is a port so it's built from /usr/local/poudriere/ports whereas FreeBSD-kernel-venus-12.1_3 is one of base packages build from /usr/src. If you are asking if /usr/src is the same when building ports and kernel then again, no, because when building ports the jail's /usr/src is used, whereas when building the kernel the host's /usr/src is used. But I verified that both are the same, i.e., diff -r /usr/src /usr/local/poudriere/jails/12rel1/usr/src doesn't return any differences, apart from the additional kernel configuration. They are both 12.1-RELEASE-p3 (checked the version against sources in Github and SVN). I can certainly build and install a stable kernel, but I believe I would also need to recompile the packages with stable /usr/src in the poudriere's jail, which means creating a new jail and possibly recompiling all the packages? Can I install stable kernel into 12.1-RELEASE-p3 world? GrzegorzJ
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c5a5a71e-a1e2-2efd-b45d-d68daa893fa4>