Re: rtl8821ae keep alive not set, connection lost

2018-02-04 Thread Larry Finger
On 02/02/2018 10:45 PM, Pkshih wrote: On Fri, 2018-02-02 at 14:13 -0600, Larry Finger wrote: On 02/02/2018 01:50 AM, Pkshih wrote: Hi James, In my experiment, unaligned-word-access may get wrong values that are different from the value by byte-access. Actually, it can simply verified by

Re: rtl8821ae keep alive not set, connection lost

2018-02-02 Thread Pkshih
On Fri, 2018-02-02 at 14:13 -0600, Larry Finger wrote: > On 02/02/2018 01:50 AM, Pkshih wrote: > > Hi James, > >  > > In my experiment, unaligned-word-access may get wrong values that > > are different from the value by byte-access. Actually, it can simply > > verified by using 'lspci' to check

Re: rtl8821ae keep alive not set, connection lost

2018-02-02 Thread Larry Finger
On 02/02/2018 01:50 AM, Pkshih wrote: Hi James, In my experiment, unaligned-word-access may get wrong values that are different from the value by byte-access. Actually, it can simply verified by using 'lspci' to check PCI configuration space. DBI read 0x70f: _rtl8821ae_dbi_read:1127 r8 0x34f

Re: rtl8821ae keep alive not set, connection lost

2018-02-02 Thread Larry Finger
On 02/02/2018 01:50 AM, Pkshih wrote: Hi James, In my experiment, unaligned-word-access may get wrong values that are different from the value by byte-access. Actually, it can simply verified by using 'lspci' to check PCI configuration space. DBI read 0x70f: _rtl8821ae_dbi_read:1127 r8 0x34f =

RE: rtl8821ae keep alive not set, connection lost

2018-02-01 Thread Pkshih
> -Original Message- > From: linux-wireless-ow...@vger.kernel.org > [mailto:linux-wireless-ow...@vger.kernel.org] On Behalf > Of James Cameron > Sent: Thursday, February 01, 2018 2:22 PM > To: Larry Finger > Cc: linux-wireless@vger.kernel.org; Pkshih > Subject:

Re: rtl8821ae keep alive not set, connection lost

2018-01-31 Thread James Cameron
On Wed, Jan 31, 2018 at 11:06:12AM -0600, Larry Finger wrote: > On 09/12/2017 05:09 PM, James Cameron wrote: > >Summary: 40b368af4b75 ("rtlwifi: Fix alignment issues") breaks > >rtl8821ae keep alive, causing "Connection to AP lost" and deauth, > >but why? > > > >Wireless connection is lost after a

Re: rtl8821ae keep alive not set, connection lost

2018-01-31 Thread Larry Finger
On 09/12/2017 05:09 PM, James Cameron wrote: Summary: 40b368af4b75 ("rtlwifi: Fix alignment issues") breaks rtl8821ae keep alive, causing "Connection to AP lost" and deauth, but why? Wireless connection is lost after a few seconds or minutes, on every OLPC NL3 laptop with rtl8821ae, with any

Re: rtl8821ae keep alive not set, connection lost

2017-09-21 Thread James Cameron
On Thu, Sep 21, 2017 at 09:40:14AM -0500, Larry Finger wrote: > On 09/21/2017 03:07 AM, James Cameron wrote: > >My test kernel "-qb" was write_readback = false in sw.c, with 8-bit > >read of REG_DBI_RDATA, and has been stable for four hours. I'll > >focus on some more testing of this one. It is

Re: rtl8821ae keep alive not set, connection lost

2017-09-21 Thread Larry Finger
On 09/21/2017 03:07 AM, James Cameron wrote: My test kernel "-qb" was write_readback = false in sw.c, with 8-bit read of REG_DBI_RDATA, and has been stable for four hours. I'll focus on some more testing of this one. It is a surprise. http://dev.laptop.org/~quozl/z/1dutXk.txt (dmesg)

Re: rtl8821ae keep alive not set, connection lost

2017-09-21 Thread James Cameron
On Thu, Sep 21, 2017 at 09:22:28AM +1000, James Cameron wrote: > On Wed, Sep 20, 2017 at 04:48:23PM -0500, Larry Finger wrote: > > On 09/20/2017 04:36 AM, James Cameron wrote: > > >When the problem occurs, register 0x350 bit 25 is set, for which a > > >comment in _rtl8821ae_check_pcie_dma_hang

Re: rtl8821ae keep alive not set, connection lost

2017-09-20 Thread James Cameron
On Wed, Sep 20, 2017 at 04:48:23PM -0500, Larry Finger wrote: > On 09/20/2017 04:36 AM, James Cameron wrote: > >When the problem occurs, register 0x350 bit 25 is set, for which a > >comment in _rtl8821ae_check_pcie_dma_hang says means there is an RX > >hang. > > > >So perhaps driver should call

Re: rtl8821ae keep alive not set, connection lost

2017-09-20 Thread Larry Finger
On 09/20/2017 04:36 AM, James Cameron wrote: When the problem occurs, register 0x350 bit 25 is set, for which a comment in _rtl8821ae_check_pcie_dma_hang says means there is an RX hang. So perhaps driver should call _rtl8821ae_check_pcie_dma_hang and _rtl8821ae_reset_pcie_interface_dma. Any

Re: rtl8821ae keep alive not set, connection lost

2017-09-20 Thread James Cameron
On Tue, Sep 19, 2017 at 07:42:04PM +1000, James Cameron wrote: > On Thu, Sep 14, 2017 at 07:27:39PM +1000, James Cameron wrote: > > On Wed, Sep 13, 2017 at 07:39:35PM -0500, Larry Finger wrote: > > > On 09/13/2017 04:46 PM, James Cameron wrote: > > > > > > > >I'll give it some more testing and let

Re: rtl8821ae keep alive not set, connection lost

2017-09-19 Thread James Cameron
On Thu, Sep 14, 2017 at 07:27:39PM +1000, James Cameron wrote: > On Wed, Sep 13, 2017 at 07:39:35PM -0500, Larry Finger wrote: > > On 09/13/2017 04:46 PM, James Cameron wrote: > > > > > >I'll give it some more testing and let you know, but it seems as > > >capable of keeping a connection as 4.13

Re: rtl8821ae keep alive not set, connection lost

2017-09-14 Thread James Cameron
On Wed, Sep 13, 2017 at 07:39:35PM -0500, Larry Finger wrote: > On 09/13/2017 04:46 PM, James Cameron wrote: > > > >I'll give it some more testing and let you know, but it seems as > >capable of keeping a connection as 4.13 plus my earlier revert. > > Testing went well; removing the call to

Re: rtl8821ae keep alive not set, connection lost

2017-09-13 Thread James Cameron
On Wed, Sep 13, 2017 at 10:01:37AM -0500, Larry Finger wrote: > Thank you very much for making the effort to bisect this problem. I > know that several people have reported the problem, which we cannot > duplicate; however, most of them just say it drops the connection > and do nothing more. In

Re: rtl8821ae keep alive not set, connection lost

2017-09-13 Thread Larry Finger
On 09/12/2017 05:09 PM, James Cameron wrote: Summary: 40b368af4b75 ("rtlwifi: Fix alignment issues") breaks rtl8821ae keep alive, causing "Connection to AP lost" and deauth, but why? Wireless connection is lost after a few seconds or minutes, on every OLPC NL3 laptop with rtl8821ae, with any

rtl8821ae keep alive not set, connection lost

2017-09-12 Thread James Cameron
Summary: 40b368af4b75 ("rtlwifi: Fix alignment issues") breaks rtl8821ae keep alive, causing "Connection to AP lost" and deauth, but why? Wireless connection is lost after a few seconds or minutes, on every OLPC NL3 laptop with rtl8821ae, with any stable kernel after 4.10.1, and any kernel with