Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Apr 2020 10:32:16 +0200
From:      Matthias Andree <matthias.andree@gmx.de>
To:        freebsd-ports@freebsd.org
Subject:   Re: amdgpu panics
Message-ID:  <2ddfe444-7a20-9835-0875-6f93aa0f6ab3@gmx.de>
In-Reply-To: <c5a5a71e-a1e2-2efd-b45d-d68daa893fa4@gjunka.com>
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> <c5a5a71e-a1e2-2efd-b45d-d68daa893fa4@gjunka.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 06.04.20 um 09:37 schrieb Grzegorz Junka:
>
> 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=C2=A0 <- 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.

AGAIN:

Do *NOT* build kernel modules in poudriere unless you can guarantee it's
using the *EXACT SAME* kernel configuration and sources, you must solve
this discrepancy:

>
> 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).

...and "additional kernel configuration" is the thing that MIGHT break
the module in build if the kernel config has any impact on sources that
the module uses.

I still haven't understood why you cannot boot without amdgpu, and then
built (a) kernel, (b) firmware, (c) amdgpu and DRM drivers all directly
from /usr/src and updated /usr/ports
*ON THE MACHINE WITH THE AMD VGA CARD*. There are way too many variables
in the mix.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2ddfe444-7a20-9835-0875-6f93aa0f6ab3>