Re: amd64 boot crash for lack of being set up to use of rtw89; linuxkpi calls on the stack, 0xdeadc0dedeadc13e and such involved, devfs_ioctl with dsw=0xdeadc0dedeadc0de

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Sat, 25 Jul 2026 21:09:51 UTC
On Sat, 25 Jul 2026, Mark Millard wrote:

> On 7/25/26 13:46, Bjoern A. Zeeb wrote:
>> On Sat, 25 Jul 2026, Mark Millard wrote:
>>
>>>>> There's D57430 and D57431 still open that no one has reviewed so far.
>>>>> You could try to apply them.
>>>>
>>>> I expect I'll take a look at doing such later.
>>>
>>> D57431 did not apply cleanly to the source code that pkgbase supplied in
>>> /usr/src/sys/ (started from not having the prior one line patch you had
>>> me test):
>>>
>>> # git apply D57430.diff
>>> # git apply D57431.diff
>>> error: patch failed: sys/compat/linuxkpi/common/src/linux_pci.c:342
>>> error: sys/compat/linuxkpi/common/src/linux_pci.c: patch does not apply
>>
>> Maybe just start with D57430 for now.
>
> Okay I'll do that.
>
>>
>> I'll go and rebase D57431, which addresses yet another problem there.
>>
>>
>> One other thing you could do for testing, which does not require
>> recompiling anything is adding:
>>
>> devmatch_blacklist="if_rtw89"
>>
>> to rc.conf and see if things then at least boot.
>
> I got the system to boot via using an older kernel for long enough to
> install the pkg that fwget -n had listed. Rebooting with the upstream
> pkgbase kernel that had previously failed then worked.
>
> That may not be equivalent to your blacklist test but may be useful
> information.

It is even better as what you say is "if the driver loads correctly then
there is no problem;  if firmware is missing and driver fails to load
we panic".

Time to get these reviews sorted and in...

-- 
Bjoern A. Zeeb                                                     r15:7