Page MenuHomeFreeBSD

LinuxKPI: 802.11: iwlwifi: add extra debugging
AbandonedPublic

Authored by bz on Feb 14 2024, 3:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 21, 7:06 PM
Unknown Object (File)
Mon, Oct 21, 11:25 AM
Unknown Object (File)
Oct 2 2024, 11:13 AM
Unknown Object (File)
Sep 27 2024, 5:40 PM
Unknown Object (File)
Sep 26 2024, 9:52 PM
Unknown Object (File)
Sep 25 2024, 9:19 PM
Unknown Object (File)
Sep 25 2024, 4:53 PM
Unknown Object (File)
Sep 22 2024, 10:53 PM

Details

Reviewers
emaste
Summary

Add extra debugging to get the vap/vif and sta/ni states
in case we see the "Invalid TXQ id" message from iwlwifi.
Adding a backtrace will not do us much good as we will only
see the deferred TX context but not the origin of the packet.
If we really wanted we could dump the full packet contents
in hex to see what is going out (but quoting from memory
I believe it was all mgmt:auth frames?)

PR: 274382

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 56029
Build 52918: arc lint + arc unit

Event Timeline

bz requested review of this revision.Feb 14 2024, 3:51 PM

How chatty is LINUXKPI_DEBUG_80211 in general? I currently do not have it enabled in my WIP tree but will turn it on for this change.

How chatty is LINUXKPI_DEBUG_80211 in general? I currently do not have it enabled in my WIP tree but will turn it on for this change.

Should not be much at all unless its (a) enabled by sysctl or (b) we have unconditional printfs currently

emaste requested changes to this revision.Feb 14 2024, 6:41 PM
emaste added inline comments.
sys/compat/linuxkpi/common/src/linux_80211.c
247

build fails with "no previous prototype"

263
This revision now requires changes to proceed.Feb 14 2024, 6:41 PM
sys/compat/linuxkpi/common/src/linux_80211.c
247

makes sense; also the function called above needs STA tracing on to print; @cc managed and got some results on the PR for at least the vap/vif. I'll update this once the other full-system compiles have finished.

bz retitled this revision from UNTESTED DEBUG: extra PR 274382 debugging to LinuxKPI: 802.11: iwlwifi: add extra debugging.Feb 14 2024, 10:25 PM
bz edited the summary of this revision. (Show Details)
bz added a subscriber: wireless.

Decouple from LINUXKPI DEBUGGING and lkpi_llsta_dump.
Seems to compile for me now too.

bz marked 2 inline comments as done.Feb 14 2024, 10:41 PM
This revision is now accepted and ready to land.Feb 15 2024, 4:35 AM

In favour of hopefully a fix in the right direction: https://reviews.freebsd.org/D43944