Linux-Wireless Archive on lore.kernel.org
 help / Atom feed
* [PATCH v4 1/4] rtl8723ae: Take the FW LPS mode handling out
@ 2019-01-08 22:49 Bernd Edlinger
  2019-02-01 12:07 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Edlinger @ 2019-01-08 22:49 UTC (permalink / raw)
  To: Ping-Ke Shih, Larry Finger, Kalle Valo, David S. Miller,
	linux-wireless, netdev, linux-kernel, Andrew Lunn

This appears to trigger a firmware bug and causes severe
problems with rtl8723ae PCI devices.

When the power save mode is activated for longer periods
of time the firmware stops to receive any packets.

This problem was exposed by commit 873ffe154ae0 ("rtlwifi:
Fix logic error in enter/exit power-save mode").

Previously the power save mode was only active rarely and
only for a short time so that the problem was not noticeable.

Signed-off-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
---
v2: Adjust the defaults of swlps and fwlps module
parameters to match the firmware capabilities instead of removing
the whole code, so it can be easily re-activated once a firmware
update is available.

v3: Make the title fit in one line.

v4: Try to fix the line endings the message body.
---
 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c
index 07b82700d1..3103151 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c
@@ -266,8 +266,8 @@ static bool is_fw_header(struct rtlwifi_firmware_header *hdr)
 static struct rtl_mod_params rtl8723e_mod_params = {
 	.sw_crypto = false,
 	.inactiveps = true,
-	.swctrl_lps = false,
-	.fwctrl_lps = true,
+	.swctrl_lps = true,
+	.fwctrl_lps = false,
 	.aspm_support = 1,
 	.debug_level = 0,
 	.debug_mask = 0,
@@ -395,8 +395,8 @@ static bool is_fw_header(struct rtlwifi_firmware_header *hdr)
 		   bool, 0444);
 MODULE_PARM_DESC(swenc, "Set to 1 for software crypto (default 0)\n");
 MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n");
-MODULE_PARM_DESC(swlps, "Set to 1 to use SW control power save (default 0)\n");
-MODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 1)\n");
+MODULE_PARM_DESC(swlps, "Set to 1 to use SW control power save (default 1)\n");
+MODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 0)\n");
 MODULE_PARM_DESC(msi, "Set to 1 to use MSI interrupts mode (default 0)\n");
 MODULE_PARM_DESC(aspm, "Set to 1 to enable ASPM (default 1)\n");
 MODULE_PARM_DESC(debug_level, "Set debug level (0-5) (default 0)");
-- 
1.9.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v4 1/4] rtl8723ae: Take the FW LPS mode handling out
  2019-01-08 22:49 [PATCH v4 1/4] rtl8723ae: Take the FW LPS mode handling out Bernd Edlinger
@ 2019-02-01 12:07 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2019-02-01 12:07 UTC (permalink / raw)
  To: Bernd Edlinger
  Cc: Ping-Ke Shih, Larry Finger, David S. Miller, linux-wireless,
	netdev, linux-kernel, Andrew Lunn

Bernd Edlinger <bernd.edlinger@hotmail.de> wrote:

> This appears to trigger a firmware bug and causes severe
> problems with rtl8723ae PCI devices.
> 
> When the power save mode is activated for longer periods
> of time the firmware stops to receive any packets.
> 
> This problem was exposed by commit 873ffe154ae0 ("rtlwifi:
> Fix logic error in enter/exit power-save mode").
> 
> Previously the power save mode was only active rarely and
> only for a short time so that the problem was not noticeable.
> 
> Signed-off-by: Bernd Edlinger <bernd.edlinger@hotmail.de>

4 patches applied to wireless-drivers-next.git, thanks.

46b87976d7a8 rtl8723ae: Take the FW LPS mode handling out
5bb5385fbf3e rtl8723ae: Dont use old data for input gain control
28484b6b37ba rtl8723ae: Re-introduce the adaptive rate control
051337d412d2 rtlwifi: Don't clear num_rx_inperiod too early

-- 
https://patchwork.kernel.org/patch/10752995/

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-08 22:49 [PATCH v4 1/4] rtl8723ae: Take the FW LPS mode handling out Bernd Edlinger
2019-02-01 12:07 ` Kalle Valo

Linux-Wireless Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-wireless/0 linux-wireless/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-wireless linux-wireless/ https://lore.kernel.org/linux-wireless \
		linux-wireless@vger.kernel.org linux-wireless@archiver.kernel.org
	public-inbox-index linux-wireless


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-wireless


AGPL code for this site: git clone https://public-inbox.org/ public-inbox