[Bug 256255] Atheros AR9462 sometimes not recognised

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 21 Aug 2023 00:49:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256255

Tom <freebsd@fizz.buzz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |freebsd@fizz.buzz

--- Comment #14 from Tom <freebsd@fizz.buzz> ---
I've identified one cause of this issue as commit
https://cgit.freebsd.org/src/commit/?id=116679b39cb94fdb94c02dceb1c2cae719bd3f42
which was cherry-picked into the releng/13.* tree in commit
fddbdafd2d112e65c61800edca087992e5b80abc . This commit happened chronologically
after the initial report, so it can't be the only cause, but I have the same
symptoms and the same work-arounds.

Methodology:

I can reproduce this issue with 100% success rate with only the base system by
having my laptop (framework tigerlake) plugged into my dock (lenovo 40B00135US)
when it boots. The issue doesn't happen on FreeBSD 13.1 but it happens on
FreeBSD 13.2.

I created a pristine boot environment by extracting base.txz and kernel.txz
from 13.1 into a zfs dataset. I never installed any additional software on it
(no packages or ports, just the base system. To change the git revision in
/usr/src I'd mount the boot environment from my linux install to use git from
there since its not in the base system). I put in the following configs:

/boot/loader.conf:
    zfs_load="YES"

/etc/rc.conf
    wlans_ath0="wlan0"
    ifconfig_wlan0="WPA DHCP"

/etc/src.conf
    WITHOUT_LLVM_TARGET_ALL=YES

/etc/wpa_supplicant.conf
    ctrl_interface=/var/run/wpa_supplicant
    eapol_version=2
    ap_scan=1
    fast_reauth=1

    network={
        ssid="MyRealSSIDHere"
        psk="MyRealPasswordHere"
        priority=5
    }

I then used git bisect between 8824cbace389c440394bb9ea6c127d0f8f85538b (git
merge-base releng/13.1 releng/13.2) and
4341433a673fde3e1c1554b9daa15d4db71f6edb (releng/13.2). At each step I would:

- compile FreeBSD from source and install it in-place over the  pristine binary
install (make buildworld buildkernel && make installkernel && reboot && make
installworld && etcupdate -B && reboot)
- reboot into the new system, and attempt to ping 8.8.4.4 and ifconfig.co .
- boot into my linux boot environment, zfs rollback to the pristine binary 13.1
state from before compiling FreeBSD, and update /usr/src to the next revision
in the git bisect
- rinse and repeat for a day and half until reaching the "bad" commit

-- 
You are receiving this mail because:
You are the assignee for the bug.