From: Stefan Wahren <wahrenst@gmx.net>
To: Arend van Spriel <arend.vanspriel@broadcom.com>,
Arend van Spriel <aspriel@gmail.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org,
brcm80211-dev-list.pdl@broadcom.com,
SHA-cyfmac-dev-list@infineon.com, Kalle Valo <kvalo@kernel.org>,
linux-mmc <linux-mmc@vger.kernel.org>
Subject: Re: brcmfmac: error messages while entering suspend
Date: Mon, 4 Nov 2024 12:59:27 +0100 [thread overview]
Message-ID: <86ef2465-3b5c-47c8-9e81-ad5b545bcfe4@gmx.net> (raw)
In-Reply-To: <16169285-d838-46f3-8be1-3639f573062e@broadcom.com>
Hi Arend,
[add Johannes]
Am 04.11.24 um 11:06 schrieb Arend van Spriel:
> On November 3, 2024 12:01:55 PM Stefan Wahren <wahrenst@gmx.net> wrote:
>
>> Hi,
>> I'm currently working on s2idle support for Raspberry Pi 3B+ (BCM43455
>> SDIO). During the tests with I noticed harmless, but annoying error
>> messages from brcmfmac like this:
>>
>> [ 383.186640] PM: suspend entry (s2idle)
>> [ 383.190107] Filesystems sync: 0.003 seconds
>> [ 383.247470] Freezing user space processes
>> [ 383.250291] Freezing user space processes completed (elapsed 0.002
>> seconds)
>> [ 383.250379] OOM killer disabled.
>> [ 383.250385] Freezing remaining freezable tasks
>> [ 383.251677] Freezing remaining freezable tasks completed (elapsed
>> 0.001 seconds)
>> [ 384.292071] ieee80211 phy0: brcmf_fil_cmd_data: bus is down. we have
>> nothing to do.
>> [ 384.292079] ieee80211 phy0: brcmf_cfg80211_get_tx_power: error (-5)
>>
>> These errors are not new and I assume they have always been there. I'm
>> not an expert here, so I want to know is the problem here that the SDIO
>> interface is shutdown before brcmfmac is suspended or lies the issue
>> within brcmfmac suspend itself?
>
> Hi Stefan,
>
> Upon suspend we execute the remove path and cleaning the interfaces.
> We notify cfg80211 about the removal, which in turn will notify
> userspace, but is tries to obtain the tx power from brcmfmac. However,
> at this stage the communication with the dongle is already gone. These
> messages are also seen in the module unload scenario. It seems a bit
> redundant to query a device that is going to be removed. So it could
> be fixed by chiming down those message or avoid it completely by
> changing the behavior in cfg80211.
chiming down all the affected messages (i reported only one example
here) sounds strange to me. Maybe Johannes has also a opinion about this.
Regards
>
> Regards,
> Arend
>
>> Here is a calltrace for the error above:
>>
>> [ 384.291308] brcmf_fil_cmd_data+0xe0/0x114 [brcmfmac] (P)
>> [ 384.291347] brcmf_fil_iovar_data_get+0xcc/0x134 [brcmfmac] (L)
>> [ 384.291384] brcmf_fil_iovar_data_get+0xcc/0x134 [brcmfmac]
>> [ 384.291420] brcmf_cfg80211_get_tx_power+0x58/0xd4 [brcmfmac]
>> [ 384.291458] nl80211_send_iface+0x1e8/0x584 [cfg80211]
>> [ 384.291549] nl80211_notify_iface+0x58/0xd4 [cfg80211]
>> [ 384.291615] _cfg80211_unregister_wdev+0x40/0x27c [cfg80211]
>> [ 384.291682] cfg80211_unregister_wdev+0x14/0x20 [cfg80211]
>> [ 384.291748] brcmf_p2p_ifp_removed+0x6c/0x98 [brcmfmac]
>> [ 384.291785] brcmf_remove_interface+0x170/0x1ec [brcmfmac]
>> [ 384.291822] brcmf_detach+0x60/0xfc [brcmfmac]
>> [ 384.291859] brcmf_sdio_remove+0x4c/0x188 [brcmfmac]
>> [ 384.291896] brcmf_sdiod_remove+0x24/0xa4 [brcmfmac]
>> [ 384.291933] brcmf_ops_sdio_suspend+0x100/0x1c8 [brcmfmac]
>> [ 384.291971] pm_generic_suspend+0x2c/0x44
>> [ 384.291982] dpm_run_callback.constprop.0+0x74/0x134
>> [ 384.291993] device_suspend+0x110/0x3d0
>> [ 384.292002] async_suspend+0x24/0x3c
>> [ 384.292012] async_run_entry_fn+0x34/0xe0
>> [ 384.292022] process_one_work+0x150/0x294
>> [ 384.292032] worker_thread+0x2dc/0x3dc
>> [ 384.292041] kthread+0x118/0x11c
>> [ 384.292049] ret_from_fork+0x10/0x20
>>
>> Best regards
>
>
next prev parent reply other threads:[~2024-11-04 11:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-03 11:01 brcmfmac: error messages while entering suspend Stefan Wahren
2024-11-04 10:06 ` Arend van Spriel
2024-11-04 11:59 ` Stefan Wahren [this message]
2024-11-04 12:18 ` Johannes Berg
2024-11-04 15:41 ` Arend Van Spriel
2024-11-04 20:06 ` Stefan Wahren
2024-11-23 9:51 ` Arend Van Spriel
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=86ef2465-3b5c-47c8-9e81-ad5b545bcfe4@gmx.net \
--to=wahrenst@gmx.net \
--cc=SHA-cyfmac-dev-list@infineon.com \
--cc=arend.vanspriel@broadcom.com \
--cc=aspriel@gmail.com \
--cc=brcm80211-dev-list.pdl@broadcom.com \
--cc=johannes@sipsolutions.net \
--cc=kvalo@kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=ulf.hansson@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox