Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Apr 2020 12:27:21 +0200
From:      Matthias Andree <matthias.andree@gmx.de>
To:        freebsd-ports@freebsd.org
Subject:   Re: amdgpu panics
Message-ID:  <8d8ae2c8-1ecd-5c8c-2437-4e47cf48bd60@gmx.de>
In-Reply-To: <e880d6b2-92a5-ed60-5ef8-21812f193aa3@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>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you John for the comprehensive explanation. It took me a while to
go through all the details, then again to recompile the ports and try to
reinstall all packages.
>
> What i discovered in the meantime is that it's not an isolated problem:=

>
>
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241787
>
> https://forums.freebsd.org/threads/upgrading-to-freebsd-12-1-release-re=
solving-an-issue-with-drm-fbsd12-0-kmod.72895/
>
>
>
> On my system I indeed had the jail at a different patch level than the
> host system, although they were all running 12.1-RELEASE. I updated
> the host and the jail to 12.1-RELEASE-p3. Poudriere noticed the
> updated jail and deleted and recompiled all 2000+ packages. Then I
> upgraded the system on which I wanted to install the packages to
> 12.1-RELEASE-p3 too. Then I deleted drm-fbsd12.0-kmod and installed
> drm-kmod. It reinstalled drm-fbsd12.0-kmod.
>
> The result? Blank screen!!!
>
> I start as single or normal user then do:
>
> kldload amdgpu
>
> I see the driver is loading various graphics kernel modules then the
> screen goes blank and the whole system hangs. No panic is shown, no
> restart, just hungs. Any SSH sessions to the system become stale. Only
> hard reset is able to restart it.
>
> This is really frustrating and a really bad user experience. I
> wouldn't be surprised if the remained desktop users moved to Linux or
> other FreeBSD forks if they haven't already.
>
> The only option left I see is to also compile the kernel myself from
> sources.

Compared to 2,000 packages that seams a reasonable approach, and then IN
THAT SAME LIVE SYSTEM also rebuild the graphics modules.

I understand that the poudriere/pkg proponents have aggressively lobbied
users to use pkg and poudriere for clean-room builds, but I wonder if it
isn't easier to forgo poudriere for drivers and instead:

obtain/update to 12.1-RELEASE-p3 sources in /usr/src (with svn, for
instance)
make buildworld buildkernel
make installkernel
edit your loader.conf[.local] so it doesn't load b0rked graphics modules,=

reboot into single-user
mergemaster -Fp
make installworld
mergemaster -Fi
make delete-old # important - there may be 12.0 parts that need removal,
12.1 for instance updated LLVM
rebuild your kmods and drivers IN THIS LIVE SYSTEM RIGHT FROM PORTS (not
poudriere)
install kmods and drivers
reboot and then gradually manually load kernel drivers such as amdgpu
one by one so you know which work (enable them in the loader) and which
won't.

I am not sure if it helps for amdgpu, since I am using nvidia- which
sort-of works (but GNOME frequently flakes out for my user but not other
users)... but I'd think this approach forgoes any potential difference
between the build jail and live system kernel sources

Of course this rules out freebsd-update for kernel/system patching then,
you'd update /usr/src and then make -DNOCLEAN buildworld buildkernel and
install again once -p4 or newer come out.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8d8ae2c8-1ecd-5c8c-2437-4e47cf48bd60>