linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@codeaurora.org>
To: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: nbd@nbd.name, linux-wireless@vger.kernel.org,
	lorenzo.bianconi@redhat.com, sean.wang@mediatek.com
Subject: Re: [PATCH 2/3] mt76: connac: do not schedule wake_work if the runtime-pm is disabled
Date: Sat, 15 May 2021 06:41:18 +0000 (UTC)	[thread overview]
Message-ID: <20210515064118.CCE4FC4323A@smtp.codeaurora.org> (raw)
In-Reply-To: <aad9ade1a25f45084cbc2aa66e5ff9a268043ff3.1619187875.git.lorenzo@kernel.org>

Lorenzo Bianconi <lorenzo@kernel.org> wrote:

> Fix the following crash due to a call to mt7921_pm_wake_work if the
> device has pm disabled or does not support runtime-pm
> 
> [    8.412590] mt7921e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build
> [    8.413660] WARNING: CPU: 0 PID: 20 at __queue_delayed_work+0x84/0xb0
> [    8.481831] CPU: 0 PID: 20 Comm: kworker/u4:1 Not tainted 5.10.31 #0
> [    8.488175] Hardware name: MediaTek MT7622 RFB1 board (DT)
> [    8.493663] Workqueue: mt76 mt7921_pm_wake_work [mt7921e]
> [    8.499055] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=--)
> [    8.505052] pc : __queue_delayed_work+0x84/0xb0
> [    8.509574] lr : queue_delayed_work_on+0x54/0x78
> [    8.514180] sp : ffffffc010bcbd20
> [    8.517485] x29: ffffffc010bcbd20 x28: 0000000000000000
> [    8.522790] x27: ffffff800015a148 x26: ffffffc0108acae0
> [    8.528094] x25: 0000000000000000 x24: ffffff80056b4208
> [    8.533399] x23: ffffff80056b26e0 x22: ffffff80056b26e0
> [    8.538703] x21: ffffff80056b45f8 x20: ffffff80056b5dc8
> [    8.544006] x19: 0000000000000000 x18: 000000000000000e
> [    8.549310] x17: 0000000000000001 x16: 0000000000000019
> [    8.554614] x15: 0000000000000033 x14: ffffffffffffffff
> [    8.559919] x13: ffffffffffffffff x12: 0000000000000000
> [    8.565223] x11: 0000000000000040 x10: 0000000000000820
> [    8.570528] x9 : 0000b3c738feafd6 x8 : ffffff801feb7c80
> [    8.575832] x7 : ffffff80056b4808 x6 : 0000000000000000
> [    8.581136] x5 : ffffff80056b2888 x4 : 0000000fffffffe0
> [    8.586441] x3 : 000000000000003e x2 : ffffff80056b2868
> [    8.591745] x1 : 0000000000000000 x0 : 0000000000000002
> [    8.597049] Call trace:
> [    8.599488]  __queue_delayed_work+0x84/0xb0
> [    8.603662]  queue_delayed_work_on+0x54/0x78
> [    8.607947]  ieee80211_queue_delayed_work+0x30/0x50 [mac80211]
> [    8.613774]  mt7921_pm_wake_work+0xa0/0xe0 [mt7921e]
> [    8.618730]  process_one_work+0x1fc/0x398
> [    8.622730]  worker_thread+0x150/0x4e0
> [    8.626472]  kthread+0x120/0x128
> [    8.629693]  ret_from_fork+0x10/0x18
> 
> Fixes: 129fac01ffe85 ("mt76: connac: introduce wake counter for fw_pmctrl synchronization")
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>

Dropped patch 2 per Lorenzo's request.

Patch set to Changes Requested.

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/aad9ade1a25f45084cbc2aa66e5ff9a268043ff3.1619187875.git.lorenzo@kernel.org/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


  parent reply	other threads:[~2021-05-15  6:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-23 14:27 [PATCH 0/3] mt7921 runtime-pm fixes Lorenzo Bianconi
2021-04-23 14:27 ` [PATCH 1/3] mt76: mt7921: fix possible AOOB issue in mt7921_mcu_tx_rate_report Lorenzo Bianconi
2021-05-15 11:43   ` Kalle Valo
2021-04-23 14:27 ` [PATCH 2/3] mt76: connac: do not schedule wake_work if the runtime-pm is disabled Lorenzo Bianconi
2021-04-27 17:25   ` Lorenzo Bianconi
2021-05-15  6:41   ` Kalle Valo [this message]
2021-04-23 14:27 ` [PATCH 3/3] mt76: connac: do not schedule mac_work if the device is not running Lorenzo Bianconi
2021-04-23 14:43 ` [PATCH 0/3] mt7921 runtime-pm fixes Felix Fietkau
2021-04-24  8:35   ` 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=20210515064118.CCE4FC4323A@smtp.codeaurora.org \
    --to=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lorenzo.bianconi@redhat.com \
    --cc=lorenzo@kernel.org \
    --cc=nbd@nbd.name \
    --cc=sean.wang@mediatek.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 NNTP newsgroup(s).