All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Luca Weiss" <luca.weiss@fairphone.com>
To: <ath10k@lists.infradead.org>
Subject: chan info: invalid frequency 0 (idx 41 out of bounds)
Date: Fri, 09 Jun 2023 13:41:16 +0200	[thread overview]
Message-ID: <CT83B4WXR0TL.3OREBDGKBT2IM@otso> (raw)

Hi all,

I'm seeing a problem(?) since a while with the following warning being
printed to dmesg regularly when running on sm7225-fairphone-fp4 with
e.g. v6.4 kernel:

[   44.891535] ath10k_snoc 18800000.wifi: chan info: invalid frequency 0 (idx 41 out of bounds)

To be clear this is not a regression, from what I recall I've always
seen this warning happening since bringing up wifi on this board, also
with older kernel versions.

Enabling some debug log for chan info shows the following behavior:

[   44.048918] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 2412 cmd_flags 0 noise_floor -96 rx_clear_count 1208242 cycle_count 5988267
[   44.100461] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 2417 cmd_flags 0 noise_floor -96 rx_clear_count 425031 cycle_count 6010605
[   44.165736] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 2422 cmd_flags 0 noise_floor -96 rx_clear_count 351782 cycle_count 6010443
[   44.215593] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 2427 cmd_flags 0 noise_floor -96 rx_clear_count 898429 cycle_count 6010242
[   44.259399] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 2432 cmd_flags 0 noise_floor -96 rx_clear_count 674101 cycle_count 6011164
[   44.313452] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 2437 cmd_flags 0 noise_floor -96 rx_clear_count 1927966 cycle_count 6010919
[   44.366818] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 2442 cmd_flags 0 noise_floor -96 rx_clear_count 752382 cycle_count 6011096
[   44.415512] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 2447 cmd_flags 0 noise_floor -96 rx_clear_count 283823 cycle_count 6011699
[   44.468153] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 2452 cmd_flags 0 noise_floor -96 rx_clear_count 113502 cycle_count 6010550
[   44.532340] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 2457 cmd_flags 0 noise_floor -96 rx_clear_count 114628 cycle_count 6010540
[   44.574636] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 2462 cmd_flags 0 noise_floor -96 rx_clear_count 2607035 cycle_count 6011370
[   44.733290] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 2467 cmd_flags 0 noise_floor -96 rx_clear_count 217628 cycle_count 18010493
[   44.891491] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 2472 cmd_flags 0 noise_floor -96 rx_clear_count 138280 cycle_count 18013512
[   44.891523] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 0 cmd_flags 1 noise_floor 0 rx_clear_count 0 cycle_count 0
[   44.891535] ath10k_snoc 18800000.wifi: chan info: invalid frequency 0 (idx 41 out of bounds)
[   45.065699] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5180 cmd_flags 0 noise_floor -96 rx_clear_count 5623 cycle_count 18011896
[   45.207280] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5200 cmd_flags 0 noise_floor -96 rx_clear_count 0 cycle_count 18010178
[   45.356698] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5220 cmd_flags 0 noise_floor -96 rx_clear_count 145755 cycle_count 18010585
[   45.515675] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5240 cmd_flags 0 noise_floor -96 rx_clear_count 493478 cycle_count 18010598
[   45.665588] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5260 cmd_flags 0 noise_floor -96 rx_clear_count 0 cycle_count 18009959
[   45.815610] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5280 cmd_flags 0 noise_floor -96 rx_clear_count 1178 cycle_count 18010173
[   45.967808] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5300 cmd_flags 0 noise_floor -96 rx_clear_count 0 cycle_count 18022249
[   46.128716] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5320 cmd_flags 0 noise_floor -96 rx_clear_count 0 cycle_count 17987593
[   46.277628] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5500 cmd_flags 0 noise_floor -96 rx_clear_count 88490 cycle_count 18018964
[   46.432316] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5520 cmd_flags 0 noise_floor -96 rx_clear_count 66334 cycle_count 17993843
[   46.520274] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5540 cmd_flags 0 noise_floor -96 rx_clear_count 269069 cycle_count 9322999
[   46.663392] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5560 cmd_flags 0 noise_floor -96 rx_clear_count 188003 cycle_count 18019229
[   46.814223] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5580 cmd_flags 0 noise_floor -96 rx_clear_count 28928 cycle_count 17997429
[   46.966960] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5600 cmd_flags 0 noise_floor -96 rx_clear_count 1316 cycle_count 17995217
[   47.120005] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5620 cmd_flags 0 noise_floor -96 rx_clear_count 37293 cycle_count 18018966
[   47.272868] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5640 cmd_flags 0 noise_floor -96 rx_clear_count 47831 cycle_count 17993641
[   47.426280] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5660 cmd_flags 0 noise_floor -96 rx_clear_count 0 cycle_count 17996612
[   47.579031] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5680 cmd_flags 0 noise_floor -96 rx_clear_count 9674 cycle_count 18019336
[   47.732133] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5700 cmd_flags 0 noise_floor -96 rx_clear_count 0 cycle_count 17994440
[   47.885495] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5720 cmd_flags 0 noise_floor -96 rx_clear_count 0 cycle_count 17997310
[   48.038263] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5745 cmd_flags 0 noise_floor -96 rx_clear_count 5758 cycle_count 18020498
[   48.198999] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5765 cmd_flags 0 noise_floor -96 rx_clear_count 61887 cycle_count 17981691
[   48.349005] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5785 cmd_flags 0 noise_floor -96 rx_clear_count 49557 cycle_count 17994194
[   48.498973] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5805 cmd_flags 0 noise_floor -96 rx_clear_count 4139477 cycle_count 18019194
[   48.650487] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5825 cmd_flags 0 noise_floor -96 rx_clear_count 6413 cycle_count 17982464
[   48.803931] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 5845 cmd_flags 0 noise_floor -96 rx_clear_count 3882 cycle_count 18022337
[   48.803961] ath10k_snoc 18800000.wifi: chan info err_code 0 freq 0 cmd_flags 1 noise_floor 0 rx_clear_count 0 cycle_count 0
[   48.803969] ath10k_snoc 18800000.wifi: chan info: invalid frequency 0 (idx 41 out of bounds)

So from what I can tell this firmware sends freq 0 info, then
freq_to_idx loops through the freqs and we arrive at the max value
ATH10K_NUM_CHANS (41).

Has this behavior been seen before or is this (to your knowledge)
limited to this board?

[   41.016338] ath10k_snoc 18800000.wifi: wcn3990 hw1.0 target 0x00000008 chip_id 0x00000000 sub 0000:0000
[   41.016356] ath10k_snoc 18800000.wifi: kconfig debug 1 debugfs 0 tracing 0 dfs 0 testmode 0
[   41.016363] ath10k_snoc 18800000.wifi: firmware ver  api 5 features wowlan,mgmt-tx-by-reference,non-bmi crc32 b3d4b790
[   41.082577] ath10k_snoc 18800000.wifi: htt-ver 3.109 wmi-op 4 htt-op 3 cal file max-sta 32 raw 0 hwcrypto 1
[   42.276395] ath10k_snoc 18800000.wifi: invalid MAC address; choosing random
[   42.276445] ath: EEPROM regdomain: 0x406c
[   42.276446] ath: EEPROM indicates we should expect a direct regpair map
[   42.276449] ath: Country alpha2 being used: 00
[   42.276450] ath: Regpair used: 0x6c

Anyone got an idea?

Regards
Luca

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

             reply	other threads:[~2023-06-09 11:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-09 11:41 Luca Weiss [this message]
2023-10-11  9:07 ` chan info: invalid frequency 0 (idx 41 out of bounds) Luca Weiss
2023-10-12 10:34   ` Kalle Valo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CT83B4WXR0TL.3OREBDGKBT2IM@otso \
    --to=luca.weiss@fairphone.com \
    --cc=ath10k@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.