All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rtlwifi: rtl8723be: Fix loss of signal
@ 2018-02-22 20:28 Larry Finger
  2018-02-23  5:25 ` James Cameron
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Larry Finger @ 2018-02-22 20:28 UTC (permalink / raw)
  To: kvalo; +Cc: linux-wireless, Larry Finger, Stable

In commit c713fb071edc ("rtlwifi: rtl8821ae: Fix connection lost problem
correctly") a problem in rtl8821ae that caused loss of signal was fixed.
That same problem has now been reported for rtl8723be. Accordingly,
the ASPM L1 latency has been increased from 0 to 7 to fix the instability.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>
---
Kalle,

This patch should be sent to 4.16.

Thanks,
Larry
---
 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c
index f9ccd13c79f9..e7bbbc95cdb1 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c
@@ -1125,7 +1125,8 @@ static void _rtl8723be_enable_aspm_back_door(struct ieee80211_hw *hw)
 
 	/* Configuration Space offset 0x70f BIT7 is used to control L0S */
 	tmp8 = _rtl8723be_dbi_read(rtlpriv, 0x70f);
-	_rtl8723be_dbi_write(rtlpriv, 0x70f, tmp8 | BIT(7));
+	_rtl8723be_dbi_write(rtlpriv, 0x70f, tmp8 | BIT(7) |
+			     ASPM_L1_LATENCY << 3);
 
 	/* Configuration Space offset 0x719 Bit3 is for L1
 	 * BIT4 is for clock request
-- 
2.16.2

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

* Re: [PATCH] rtlwifi: rtl8723be: Fix loss of signal
  2018-02-22 20:28 [PATCH] rtlwifi: rtl8723be: Fix loss of signal Larry Finger
@ 2018-02-23  5:25 ` James Cameron
  2018-02-23  9:18 ` Kalle Valo
  2018-02-25  7:48 ` Kalle Valo
  2 siblings, 0 replies; 5+ messages in thread
From: James Cameron @ 2018-02-23  5:25 UTC (permalink / raw)
  To: Larry Finger; +Cc: kvalo, linux-wireless, Stable

On Thu, Feb 22, 2018 at 02:28:59PM -0600, Larry Finger wrote:
> In commit c713fb071edc ("rtlwifi: rtl8821ae: Fix connection lost problem
> correctly") a problem in rtl8821ae that caused loss of signal was fixed.
> That same problem has now been reported for rtl8723be. Accordingly,
> the ASPM L1 latency has been increased from 0 to 7 to fix the instability.
> 
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> Cc: Stable <stable@vger.kernel.org>

Tested-by: James Cameron <quozl@laptop.org>

With both patches applied to v4.15 on OLPC NL3 with rtl8723be.

Nice catch, well done!  May explain some of our problems with
rtl8723be that made me withdraw it from production of laptops.

-- 
James Cameron
http://quozl.netrek.org/

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

* Re: [PATCH] rtlwifi: rtl8723be: Fix loss of signal
  2018-02-22 20:28 [PATCH] rtlwifi: rtl8723be: Fix loss of signal Larry Finger
  2018-02-23  5:25 ` James Cameron
@ 2018-02-23  9:18 ` Kalle Valo
  2018-02-23 14:36   ` Larry Finger
  2018-02-25  7:48 ` Kalle Valo
  2 siblings, 1 reply; 5+ messages in thread
From: Kalle Valo @ 2018-02-23  9:18 UTC (permalink / raw)
  To: Larry Finger; +Cc: linux-wireless, Stable

Larry Finger <Larry.Finger@lwfinger.net> writes:

> In commit c713fb071edc ("rtlwifi: rtl8821ae: Fix connection lost problem
> correctly") a problem in rtl8821ae that caused loss of signal was fixed.
> That same problem has now been reported for rtl8723be. Accordingly,
> the ASPM L1 latency has been increased from 0 to 7 to fix the instability.
>
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> Cc: Stable <stable@vger.kernel.org>
> ---
> Kalle,
>
> This patch should be sent to 4.16.

Ok, I'll queue this for 4.16.

-- 
Kalle Valo

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

* Re: [PATCH] rtlwifi: rtl8723be: Fix loss of signal
  2018-02-23  9:18 ` Kalle Valo
@ 2018-02-23 14:36   ` Larry Finger
  0 siblings, 0 replies; 5+ messages in thread
From: Larry Finger @ 2018-02-23 14:36 UTC (permalink / raw)
  To: Kalle Valo; +Cc: linux-wireless, Stable

On 02/23/2018 03:18 AM, Kalle Valo wrote:
> Larry Finger <Larry.Finger@lwfinger.net> writes:
> 
>> In commit c713fb071edc ("rtlwifi: rtl8821ae: Fix connection lost problem
>> correctly") a problem in rtl8821ae that caused loss of signal was fixed.
>> That same problem has now been reported for rtl8723be. Accordingly,
>> the ASPM L1 latency has been increased from 0 to 7 to fix the instability.
>>
>> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
>> Cc: Stable <stable@vger.kernel.org>
>> ---
>> Kalle,
>>
>> This patch should be sent to 4.16.
> 
> Ok, I'll queue this for 4.16.

Thanks,

Larry

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

* Re: rtlwifi: rtl8723be: Fix loss of signal
  2018-02-22 20:28 [PATCH] rtlwifi: rtl8723be: Fix loss of signal Larry Finger
  2018-02-23  5:25 ` James Cameron
  2018-02-23  9:18 ` Kalle Valo
@ 2018-02-25  7:48 ` Kalle Valo
  2 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2018-02-25  7:48 UTC (permalink / raw)
  To: Larry Finger; +Cc: linux-wireless, Larry Finger, Stable

Larry Finger <Larry.Finger@lwfinger.net> wrote:

> In commit c713fb071edc ("rtlwifi: rtl8821ae: Fix connection lost problem
> correctly") a problem in rtl8821ae that caused loss of signal was fixed.
> That same problem has now been reported for rtl8723be. Accordingly,
> the ASPM L1 latency has been increased from 0 to 7 to fix the instability.
> 
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> Cc: Stable <stable@vger.kernel.org>
> Tested-by: James Cameron <quozl@laptop.org>

Patch applied to wireless-drivers.git, thanks.

78dc897b7ee6 rtlwifi: rtl8723be: Fix loss of signal

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

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

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

end of thread, other threads:[~2018-02-25  7:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-22 20:28 [PATCH] rtlwifi: rtl8723be: Fix loss of signal Larry Finger
2018-02-23  5:25 ` James Cameron
2018-02-23  9:18 ` Kalle Valo
2018-02-23 14:36   ` Larry Finger
2018-02-25  7:48 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.