From: "Limonciello, Mario" <mario.limonciello@amd.com>
To: Manikanta Pubbisetty <quic_mpubbise@quicinc.com>,
ath11k@lists.infradead.org
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH 0/4] ath11k: Enable low power mode when WLAN is not active
Date: Sat, 23 Jul 2022 07:09:11 -0500 [thread overview]
Message-ID: <6daefd60-dcbc-06e1-8091-ea225690edf8@amd.com> (raw)
In-Reply-To: <ad99d238-dc1a-3233-fc6b-0cd49e428903@amd.com>
On 7/22/2022 17:00, Limonciello, Mario wrote:
> On 7/20/2022 08:49, Manikanta Pubbisetty wrote:
>> Currently, WLAN chip is powered once during driver probe and is kept
>> ON (powered) always even when WLAN is not active; keeping the chip
>> powered ON all the time will consume extra power which is not
>> desirable on a battery operated device. Same is the case with non-WoW
>> suspend, chip will not be put into low power mode when the system is
>> suspended resulting in higher battery drain.
>>
>> Send QMI MODE OFF command to firmware during WiFi OFF to put device
>> into low power mode.
>>
>> Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1
>>
>> Manikanta Pubbisetty (4):
>> ath11k: Fix double free issue during SRNG deinit
>> ath11k: Move hardware initialization logic to start()
>> ath11k: Enable low power mode when WLAN is not active
>> ath11k: Fix failed to parse regulatory event print
>>
>> drivers/net/wireless/ath/ath11k/core.c | 237 ++++++++++++++++++-------
>> drivers/net/wireless/ath/ath11k/core.h | 8 +-
>> drivers/net/wireless/ath/ath11k/hal.c | 1 +
>> drivers/net/wireless/ath/ath11k/mac.c | 33 ++--
>> drivers/net/wireless/ath/ath11k/reg.c | 2 +
>> 5 files changed, 189 insertions(+), 92 deletions(-)
>>
>
> This series looked potentially promising to me for a problem that I'm
> seeing on a notebook failing to sleep where WLAN_WAKE is asserted on the
> WCN6855 on resume even though WoW wasn't set at all. This is
> problematic as it causes a spurious wake while SUT is reading from the
> EC since two IRQs are now active and the kernel wakes from that.
> Removing the WCN6855 from the system it doesn't happen.
>
> I figured I'd give it a spin to see if it improved things.
> I applied the series on top of 5.19-rc7 and it applied cleanly but I get
> timeouts on wlan card init (and of course suspend fails now too).
>
> Here's the mhi/ath11k_pci snippets:
>
> [ 2.864110] ath11k_pci 0000:01:00.0: BAR 0: assigned [mem
> 0xb4000000-0xb41fffff 64bit]
> [ 2.864901] ath11k_pci 0000:01:00.0: MSI vectors: 32
> [ 2.864912] ath11k_pci 0000:01:00.0: wcn6855 hw2.1
> [ 3.106892] mhi mhi0: Requested to power ON
> [ 3.107054] mhi mhi0: Power on setup success
> [ 3.198178] mhi mhi0: Wait for device to enter SBL or Mission mode
> [ 3.971019] ath11k_pci 0000:01:00.0: chip_id 0x2 chip_family 0xb
> board_id 0xff soc_id 0x400c0210
> [ 3.971025] ath11k_pci 0000:01:00.0: fw_version 0x11080bbb
> fw_build_timestamp 2021-12-16 03:42 fw_build_id
> WLAN.HSP.1.1-03003-QCAHSPSWPL_V1_V2_SILICONZ_LITE-2
> [ 4.290328] ath11k_pci 0000:01:00.0 wlp1s0: renamed from wlan0
> [ 4.308760] ath11k_pci 0000:01:00.0: Failed to set the requested
> Country regulatory setting
> [ 4.309028] ath11k_pci 0000:01:00.0: Failed to set the requested
> Country regulatory setting
> [ 14.386201] ath11k_pci 0000:01:00.0: qmi failed wlan ini request, err
> = -110
> [ 14.386210] ath11k_pci 0000:01:00.0: qmi failed to send wlan fw ini:-110
> [ 14.386214] ath11k_pci 0000:01:00.0: failed to send firmware start: -110
> [ 14.386243] ath11k_pci 0000:01:00.0: failed to start firmware: -110
> [ 14.386266] ath11k_pci 0000:01:00.0: failed to setup device: -110
> [ 14.386300] ath11k_pci 0000:01:00.0: failed to start device : -110
>
> And so - on.
> Is it functionally dependent on other patches in linux-next or another
> tree I won't see in 5.19?
I had a try with linux-next and your series but I reproduce the same
failure I described above.
ee3a066e4f4e (HEAD) ath11k: Fix failed to parse regulatory event print
4f850f1e26dc ath11k: Enable low power mode when WLAN is not active
e320c8ef9841 ath11k: Move hardware initialization logic to start()
dbc26036c1ef ath11k: Fix double free issue during SRNG deinit
18c107a1f120 (tag: next-20220722, linux-next/master) Add linux-next
specific files for 20220722
next prev parent reply other threads:[~2022-07-23 12:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-20 13:49 [PATCH 0/4] ath11k: Enable low power mode when WLAN is not active Manikanta Pubbisetty
2022-07-20 13:49 ` [PATCH 1/4] ath11k: Fix double free issue during SRNG deinit Manikanta Pubbisetty
2022-07-20 13:49 ` [PATCH 2/4] ath11k: Move hardware initialization logic to start() Manikanta Pubbisetty
2022-07-20 13:49 ` [PATCH 3/4] ath11k: Enable low power mode when WLAN is not active Manikanta Pubbisetty
2022-07-20 13:49 ` [PATCH 4/4] ath11k: Fix failed to parse regulatory event print Manikanta Pubbisetty
2022-07-22 22:00 ` [PATCH 0/4] ath11k: Enable low power mode when WLAN is not active Limonciello, Mario
2022-07-23 12:09 ` Limonciello, Mario [this message]
2022-08-25 11:24 ` Manikanta Pubbisetty
2022-08-25 17:16 ` Limonciello, Mario
2022-08-25 21:01 ` Mark Herbert
2022-08-29 5:30 ` Manikanta Pubbisetty
2022-08-29 6:27 ` Mark Herbert
2022-08-29 5:28 ` Manikanta Pubbisetty
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=6daefd60-dcbc-06e1-8091-ea225690edf8@amd.com \
--to=mario.limonciello@amd.com \
--cc=ath11k@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=quic_mpubbise@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