ATH11K Archive mirror
 help / color / mirror / Atom feed
From: "Lindner, Frank" <Frank.Lindner@ghmt.de>
To: Kang Yang <quic_kangyang@quicinc.com>,
	Jeff Johnson <quic_jjohnson@quicinc.com>,
	"ath11k@lists.infradead.org" <ath11k@lists.infradead.org>
Subject: AW: ath11k
Date: Tue, 30 Apr 2024 11:34:40 +0000	[thread overview]
Message-ID: <FRYP281MB0160C7239CB63E4061D4CDB4EB1A2@FRYP281MB0160.DEUP281.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <d93be101-4aa4-414c-bb1f-292d3f8fe27c@quicinc.com>

Hi,

seems I need a patch for this?
I'm not really sure where to add this lock-statement.
Also, the unlock statemant seems allready to exist.

BR Frank

-----Ursprüngliche Nachricht-----
Von: Kang Yang <quic_kangyang@quicinc.com>
Gesendet: Dienstag, 30. April 2024 04:09
An: Jeff Johnson <quic_jjohnson@quicinc.com>; Lindner, Frank <Frank.Lindner@ghmt.de>; ath11k@lists.infradead.org
Betreff: Re: ath11k



On 4/30/2024 10:03 AM, Jeff Johnson wrote:
> On 4/29/2024 6:54 PM, Kang Yang wrote:
>>
>>
>> On 4/29/2024 10:53 PM, Lindner, Frank wrote:
>>> Hi dev-guys,
>>>
>>> QCN9074 mPCIe-module with ath-next Kernel 6.9.0-rc1 (Ubuntu 24.04) causing Kernel Crash, when setting device to monitor mode. This does not happen instantly, it make take some time to fail.
>>>
>>> [Mon Apr 29 14:17:57 2024] rcu: INFO: rcu_preempt self-detected stall on CPU
>>> [Mon Apr 29 14:17:57 2024] rcu:         0-....: (15661 ticks this GP) idle=9394/1/0x4000000000000000 softirq=26961/26962 fqs=7499
>>> [Mon Apr 29 14:17:57 2024] rcu:         (t=15000 jiffies g=78093 q=1070 ncpus=16)
>>> [Mon Apr 29 14:17:57 2024] CPU: 0 PID: 15 Comm: ksoftirqd/0 Tainted: G             L     6.9.0-rc1-ath-next-j001 #11
>>> [Mon Apr 29 14:17:57 2024] Hardware name: To Be Filled By O.E.M.
>>> Z590M Pro4/Z590M Pro4, BIOS P2.20 06/06/2022 [Mon Apr 29 14:17:57
>>> 2024] RIP: 0010:ath11k_hal_srng_dst_peek+0x18/0x30 [ath11k] [Mon Apr
>>> 29 14:17:57 2024] Code: 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90
>>> 90 90 90 66 0f 1f 00 0f 1f 44 00 00 55 8b 46 60 45 31 c0 48 89 e5 3b
>>> 46 70 74 08 <48> 8b 56 10 4c 8d 04 82 4c 89 c0 5d c3 cc cc cc cc 0f
>>> 1f 80 00 00 [Mon Apr 29 14:17:57 2024] RSP: 0018:ffffba0e80113b90
>>> EFLAGS: 00000283 [Mon Apr 29 14:17:57 2024] RAX: 0000000000001bf8
>>> RBX: ffff924e4a81a3f8 RCX: 0000000000000000 [Mon Apr 29 14:17:57
>>> 2024] RDX: 0000000000000c0a RSI: ffff924e45347088 RDI:
>>> ffff924e45340000 [Mon Apr 29 14:17:57 2024] RBP: ffffba0e80113b90
>>> R08: 0000000000000000 R09: ffff924e4a81a1d0 [Mon Apr 29 14:17:57
>>> 2024] R10: ffffba0e80113ae8 R11: 000000000000ffff R12:
>>> 0000000000000000 [Mon Apr 29 14:17:57 2024] R13: ffff924e4a819fe0 R14: ffff924e4d575c00 R15: ffff924e45347088 [Mon Apr 29 14:17:57 2024] FS:  0000000000000000(0000) GS:ffff926d1ee00000(0000) knlGS:0000000000000000 [Mon Apr 29 14:17:57 2024] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [Mon Apr 29 14:17:57 2024] CR2: 00007fcc86d166e0 CR3: 000000082703c003 CR4: 0000000000770ef0 [Mon Apr 29 14:17:57 2024] PKRU: 55555554 [Mon Apr 29 14:17:57 2024] Call Trace:
>>> [Mon Apr 29 14:17:57 2024]  <IRQ>
>>> [Mon Apr 29 14:17:57 2024]  ? show_regs+0x6d/0x80 [Mon Apr 29
>>> 14:17:57 2024]  ? dump_cpu_task+0x75/0x90 [Mon Apr 29 14:17:57 2024]
>>> ? rcu_dump_cpu_stacks+0xeb/0x180 [Mon Apr 29 14:17:57 2024]  ?
>>> rcu_sched_clock_irq+0x572/0x1330 [Mon Apr 29 14:17:57 2024]  ?
>>> raw_notifier_call_chain+0x1a/0x20 [Mon Apr 29 14:17:57 2024]  ?
>>> timekeeping_update+0xf7/0x150 [Mon Apr 29 14:17:57 2024]  ?
>>> account_system_index_time+0x9f/0xc0
>>> [Mon Apr 29 14:17:57 2024]  ? update_process_times+0x75/0xc0 [Mon
>>> Apr 29 14:17:57 2024]  ? tick_nohz_handler+0xdc/0x140 [Mon Apr 29
>>> 14:17:57 2024]  ? __pfx_tick_nohz_handler+0x10/0x10 [Mon Apr 29
>>> 14:17:57 2024]  ? __hrtimer_run_queues+0x10e/0x290 [Mon Apr 29
>>> 14:17:57 2024]  ? clockevents_program_event+0xae/0x130
>>> [Mon Apr 29 14:17:57 2024]  ? hrtimer_interrupt+0x108/0x240 [Mon Apr
>>> 29 14:17:57 2024]  ? handle_edge_irq+0xde/0x240 [Mon Apr 29 14:17:57
>>> 2024]  ? __sysvec_apic_timer_interrupt+0x5a/0x150
>>> [Mon Apr 29 14:17:57 2024]  ? sysvec_apic_timer_interrupt+0x7f/0x90
>>> [Mon Apr 29 14:17:57 2024]  </IRQ>
>>> [Mon Apr 29 14:17:57 2024]  <TASK>
>>> [Mon Apr 29 14:17:57 2024]  ?
>>> asm_sysvec_apic_timer_interrupt+0x1f/0x30
>>> [Mon Apr 29 14:17:57 2024]  ? ath11k_hal_srng_dst_peek+0x18/0x30
>>> [ath11k] [Mon Apr 29 14:17:57 2024]
>>> ath11k_dp_rx_process_mon_status+0xc45/0x1190 [ath11k] [Mon Apr 29
>>> 14:17:57 2024]  ? idr_alloc_u32+0x97/0xd0 [Mon Apr 29 14:17:57 2024]
>>> ath11k_dp_rx_process_mon_rings+0x32a/0x550 [ath11k] [Mon Apr 29
>>> 14:17:57 2024]  ath11k_dp_service_srng+0x289/0x5a0 [ath11k] [Mon Apr
>>> 29 14:17:57 2024]  ath11k_pcic_ext_grp_napi_poll+0x30/0xd0 [ath11k]
>>> [Mon Apr 29 14:17:57 2024]  __napi_poll+0x30/0x1f0 [Mon Apr 29
>>> 14:17:57 2024]  net_rx_action+0x198/0x320 [Mon Apr 29 14:17:57 2024]
>>> __do_softirq+0xdd/0x319 [Mon Apr 29 14:17:57 2024]  ?
>>> __pfx_smpboot_thread_fn+0x10/0x10 [Mon Apr 29 14:17:57 2024]
>>> run_ksoftirqd+0x31/0x50 [Mon Apr 29 14:17:57 2024]
>>> smpboot_thread_fn+0xe3/0x1e0 [Mon Apr 29 14:17:57 2024]
>>> kthread+0xf5/0x130 [Mon Apr 29 14:17:57 2024]  ?
>>> __pfx_kthread+0x10/0x10 [Mon Apr 29 14:17:57 2024]
>>> ret_from_fork+0x3d/0x60 [Mon Apr 29 14:17:57 2024]  ?
>>> __pfx_kthread+0x10/0x10 [Mon Apr 29 14:17:57 2024]
>>> ret_from_fork_asm+0x1a/0x30 [Mon Apr 29 14:17:57 2024]  </TASK>
>>>
>>> Any ideas?
>>
>>
>> Add 'spin_lock_bh(&srng->lock)' and 'spin_unlock_bh(&pmon->mon_lock)'
>> in ath11k_dp_rx_mon_dest_process().
>
> this advice looks confusing.
> that function already has logic to lock/unlock &pmon->mon_lock so I
> don't see where you'd add another 'spin_unlock_bh(&pmon->mon_lock)'


Sorry...copy error, shuold be 'spin_lock_bh(&srng->lock);' and 'spin_unlock_bh(&srng->lock);'
This lock is needed by ath11k_hal_srng_dst_peek().


> and you don't specify where to add 'spin_lock_bh(&srng->lock)', and why isn't
> there an unlock for that?
>
> perhaps propose an actual patch :)

Will do that.


>
> /jeff
>


Vorstand: Dirk Wilhelm (V), Wulf Jannsen
Aufsichtsrat: Ron Scheepers (V)
Handelsregister: HRB Saarbrücken Nr. 13201
Ust.ID Nr.: DE 153807627

      reply	other threads:[~2024-04-30 11:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-29 14:53 ath11k Lindner, Frank
2024-04-30  1:54 ` ath11k Kang Yang
2024-04-30  2:03   ` ath11k Jeff Johnson
2024-04-30  2:09     ` ath11k Kang Yang
2024-04-30 11:34       ` Lindner, Frank [this message]

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=FRYP281MB0160C7239CB63E4061D4CDB4EB1A2@FRYP281MB0160.DEUP281.PROD.OUTLOOK.COM \
    --to=frank.lindner@ghmt.de \
    --cc=ath11k@lists.infradead.org \
    --cc=quic_jjohnson@quicinc.com \
    --cc=quic_kangyang@quicinc.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).