linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
@ 2010-06-15 22:19 Luis R. Rodriguez
  2010-06-16  2:20 ` Justin P. Mattock
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Luis R. Rodriguez @ 2010-06-15 22:19 UTC (permalink / raw)
  To: stable, greg
  Cc: linux-wireless, Luis R. Rodriguez, Peter Stuge,
	Justin P. Mattock, Kristoffer Ericson, John W. Linville

commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.

The newer single chip hardware family of chipsets have not been
experiencing issues with power saving set by default with recent
fixes merged (even into stable). The remaining issues are only
reported with AR5416 and since enabling PS by default can increase
power savings considerably best to take advantage of that feature
as this has been tested properly.

For more details on this issue see the bug report:

http://bugzilla.kernel.org/show_bug.cgi?id=14267

We leave AR5416 with PS disabled by default, that seems to require
some more work.

Cc: stable@kernel.org
Cc: Peter Stuge <peter@stuge.se>
Cc: Justin P. Mattock  <justinmattock@gmail.com>
Cc: Kristoffer Ericson <kristoffer.ericson@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
---

Greg, this is the long promised backport of the patch titled
"ath9k: re-enable ps by default for new single chip families" backported
down to 2.6.32.y. This just goes test compiled. Manual backport
was required from the upstream Linus patch since the flag
WIPHY_FLAG_PS_ON_BY_DEFAULT was not used back on 2.6.32 so instead
we use the equivalent hw->wiphy->ps_default bool.

Apologies for the delay, was just stuck with other stuff.

I'll remove this from the stable pending list for 802.11 [1] once
this gets sucked in.

[1] http://wireless.kernel.org/en/developers/stable-pending

 drivers/net/wireless/ath/ath9k/main.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 15eb245..dba27b7 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1538,6 +1538,8 @@ bad_no_ah:
 
 void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
 {
+	struct ath_hw *ah = sc->sc_ah;
+
 	hw->flags = IEEE80211_HW_RX_INCLUDES_FCS |
 		IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING |
 		IEEE80211_HW_SIGNAL_DBM |
@@ -1556,7 +1558,10 @@ void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
 		BIT(NL80211_IFTYPE_ADHOC) |
 		BIT(NL80211_IFTYPE_MESH_POINT);
 
-	hw->wiphy->ps_default = false;
+	if (AR_SREV_5416(ah))
+		hw->wiphy->ps_default = false;
+	else
+		hw->wiphy->ps_default = true;
 
 	hw->queues = 4;
 	hw->max_rates = 4;
-- 
1.6.3.3


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

* Re: [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
  2010-06-15 22:19 [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families Luis R. Rodriguez
@ 2010-06-16  2:20 ` Justin P. Mattock
  2010-06-16  8:12 ` Kristoffer Ericson
  2010-07-27 22:22 ` [stable] " Greg KH
  2 siblings, 0 replies; 14+ messages in thread
From: Justin P. Mattock @ 2010-06-16  2:20 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: stable, greg, linux-wireless, Peter Stuge, Kristoffer Ericson,
	John W. Linville

On 06/15/2010 03:19 PM, Luis R. Rodriguez wrote:
> commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.
>
> The newer single chip hardware family of chipsets have not been
> experiencing issues with power saving set by default with recent
> fixes merged (even into stable). The remaining issues are only
> reported with AR5416 and since enabling PS by default can increase
> power savings considerably best to take advantage of that feature
> as this has been tested properly.
>
> For more details on this issue see the bug report:
>
> http://bugzilla.kernel.org/show_bug.cgi?id=14267
>
> We leave AR5416 with PS disabled by default, that seems to require
> some more work.
>
> Cc: stable@kernel.org
> Cc: Peter Stuge<peter@stuge.se>
> Cc: Justin P. Mattock<justinmattock@gmail.com>
> Cc: Kristoffer Ericson<kristoffer.ericson@gmail.com>
> Signed-off-by: Luis R. Rodriguez<lrodriguez@atheros.com>
> Signed-off-by: John W. Linville<linville@tuxdriver.com>
> ---
>
> Greg, this is the long promised backport of the patch titled
> "ath9k: re-enable ps by default for new single chip families" backported
> down to 2.6.32.y. This just goes test compiled. Manual backport
> was required from the upstream Linus patch since the flag
> WIPHY_FLAG_PS_ON_BY_DEFAULT was not used back on 2.6.32 so instead
> we use the equivalent hw->wiphy->ps_default bool.
>
> Apologies for the delay, was just stuck with other stuff.
>
> I'll remove this from the stable pending list for 802.11 [1] once
> this gets sucked in.
>
> [1] http://wireless.kernel.org/en/developers/stable-pending
>
>   drivers/net/wireless/ath/ath9k/main.c |    7 ++++++-
>   1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
> index 15eb245..dba27b7 100644
> --- a/drivers/net/wireless/ath/ath9k/main.c
> +++ b/drivers/net/wireless/ath/ath9k/main.c
> @@ -1538,6 +1538,8 @@ bad_no_ah:
>
>   void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
>   {
> +	struct ath_hw *ah = sc->sc_ah;
> +
>   	hw->flags = IEEE80211_HW_RX_INCLUDES_FCS |
>   		IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING |
>   		IEEE80211_HW_SIGNAL_DBM |
> @@ -1556,7 +1558,10 @@ void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
>   		BIT(NL80211_IFTYPE_ADHOC) |
>   		BIT(NL80211_IFTYPE_MESH_POINT);
>
> -	hw->wiphy->ps_default = false;
> +	if (AR_SREV_5416(ah))
> +		hw->wiphy->ps_default = false;
> +	else
> +		hw->wiphy->ps_default = true;
>
>   	hw->queues = 4;
>   	hw->max_rates = 4;

I'll have to check and see if my machine run's properly with the 
powersaving tuned on..

Justin P. Mattock

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

* Re: [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
  2010-06-15 22:19 [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families Luis R. Rodriguez
  2010-06-16  2:20 ` Justin P. Mattock
@ 2010-06-16  8:12 ` Kristoffer Ericson
  2010-06-16 13:33   ` Justin P. Mattock
  2010-06-16 15:48   ` Luis R. Rodriguez
  2010-07-27 22:22 ` [stable] " Greg KH
  2 siblings, 2 replies; 14+ messages in thread
From: Kristoffer Ericson @ 2010-06-16  8:12 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: stable, greg, linux-wireless, Peter Stuge, Justin P. Mattock,
	John W. Linville

On Tue, Jun 15, 2010 at 06:19:19PM -0400, Luis R. Rodriguez wrote:
> commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.
> 
> The newer single chip hardware family of chipsets have not been
> experiencing issues with power saving set by default with recent
> fixes merged (even into stable). The remaining issues are only
> reported with AR5416 and since enabling PS by default can increase
> power savings considerably best to take advantage of that feature
> as this has been tested properly.

I havent had any issues lately. But that said Ive moved on to
2.6.33, 2.6.34 which seems to work fine. Believe you set
to disabled by default on those?

/Kristoffer

> 
> For more details on this issue see the bug report:
> 
> http://bugzilla.kernel.org/show_bug.cgi?id=14267
> 
> We leave AR5416 with PS disabled by default, that seems to require
> some more work.
> 
> Cc: stable@kernel.org
> Cc: Peter Stuge <peter@stuge.se>
> Cc: Justin P. Mattock  <justinmattock@gmail.com>
> Cc: Kristoffer Ericson <kristoffer.ericson@gmail.com>
> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
> Signed-off-by: John W. Linville <linville@tuxdriver.com>
> ---
> 
> Greg, this is the long promised backport of the patch titled
> "ath9k: re-enable ps by default for new single chip families" backported
> down to 2.6.32.y. This just goes test compiled. Manual backport
> was required from the upstream Linus patch since the flag
> WIPHY_FLAG_PS_ON_BY_DEFAULT was not used back on 2.6.32 so instead
> we use the equivalent hw->wiphy->ps_default bool.
> 
> Apologies for the delay, was just stuck with other stuff.
> 
> I'll remove this from the stable pending list for 802.11 [1] once
> this gets sucked in.
> 
> [1] http://wireless.kernel.org/en/developers/stable-pending
> 
>  drivers/net/wireless/ath/ath9k/main.c |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
> index 15eb245..dba27b7 100644
> --- a/drivers/net/wireless/ath/ath9k/main.c
> +++ b/drivers/net/wireless/ath/ath9k/main.c
> @@ -1538,6 +1538,8 @@ bad_no_ah:
>  
>  void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
>  {
> +	struct ath_hw *ah = sc->sc_ah;
> +
>  	hw->flags = IEEE80211_HW_RX_INCLUDES_FCS |
>  		IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING |
>  		IEEE80211_HW_SIGNAL_DBM |
> @@ -1556,7 +1558,10 @@ void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
>  		BIT(NL80211_IFTYPE_ADHOC) |
>  		BIT(NL80211_IFTYPE_MESH_POINT);
>  
> -	hw->wiphy->ps_default = false;
> +	if (AR_SREV_5416(ah))
> +		hw->wiphy->ps_default = false;
> +	else
> +		hw->wiphy->ps_default = true;
>  
>  	hw->queues = 4;
>  	hw->max_rates = 4;
> -- 
> 1.6.3.3

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

* Re: [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
  2010-06-16  8:12 ` Kristoffer Ericson
@ 2010-06-16 13:33   ` Justin P. Mattock
  2010-06-16 15:49     ` Luis R. Rodriguez
  2010-06-16 15:48   ` Luis R. Rodriguez
  1 sibling, 1 reply; 14+ messages in thread
From: Justin P. Mattock @ 2010-06-16 13:33 UTC (permalink / raw)
  To: Kristoffer Ericson
  Cc: Luis R. Rodriguez, stable, greg, linux-wireless, Peter Stuge,
	John W. Linville

On 06/16/2010 01:12 AM, Kristoffer Ericson wrote:
> On Tue, Jun 15, 2010 at 06:19:19PM -0400, Luis R. Rodriguez wrote:
>> commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.
>>
>> The newer single chip hardware family of chipsets have not been
>> experiencing issues with power saving set by default with recent
>> fixes merged (even into stable). The remaining issues are only
>> reported with AR5416 and since enabling PS by default can increase
>> power savings considerably best to take advantage of that feature
>> as this has been tested properly.
>
> I havent had any issues lately. But that said Ive moved on to
> 2.6.33, 2.6.34 which seems to work fine. Believe you set
> to disabled by default on those?
>
> /Kristoffer
>

just tried to add this patch to the latest HEAD, but realized 
ath_set_hw_capab is missing(or I cant seem to grep it)
if you have a patch for the latest tree let me know I can see if I'm 
hitting anything like before.

Justin P. Mattock

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

* Re: [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
  2010-06-16  8:12 ` Kristoffer Ericson
  2010-06-16 13:33   ` Justin P. Mattock
@ 2010-06-16 15:48   ` Luis R. Rodriguez
  1 sibling, 0 replies; 14+ messages in thread
From: Luis R. Rodriguez @ 2010-06-16 15:48 UTC (permalink / raw)
  To: Kristoffer Ericson
  Cc: stable, greg, linux-wireless, Peter Stuge, Justin P. Mattock,
	John W. Linville

On Wed, Jun 16, 2010 at 1:12 AM, Kristoffer Ericson
<kristoffer.ericson@gmail.com> wrote:
> On Tue, Jun 15, 2010 at 06:19:19PM -0400, Luis R. Rodriguez wrote:
>> commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.
>>
>> The newer single chip hardware family of chipsets have not been
>> experiencing issues with power saving set by default with recent
>> fixes merged (even into stable). The remaining issues are only
>> reported with AR5416 and since enabling PS by default can increase
>> power savings considerably best to take advantage of that feature
>> as this has been tested properly.
>
> I havent had any issues lately. But that said Ive moved on to
> 2.6.33, 2.6.34 which seems to work fine. Believe you set
> to disabled by default on those?

2.6.33 and up all have PS enabled by default for all single chip
families. For AR5416 and related chipsets, its left disabled as it was
on 2.6.32 right now. The patch is intended only for 2.6.32.y as the
other kernels 2.6.33.y and up already have the same patch.

  Luis

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

* Re: [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
  2010-06-16 13:33   ` Justin P. Mattock
@ 2010-06-16 15:49     ` Luis R. Rodriguez
  2010-06-16 16:01       ` Justin P. Mattock
  0 siblings, 1 reply; 14+ messages in thread
From: Luis R. Rodriguez @ 2010-06-16 15:49 UTC (permalink / raw)
  To: Justin P. Mattock
  Cc: Kristoffer Ericson, stable, greg, linux-wireless, Peter Stuge,
	John W. Linville

On Wed, Jun 16, 2010 at 6:33 AM, Justin P. Mattock
<justinmattock@gmail.com> wrote:
> On 06/16/2010 01:12 AM, Kristoffer Ericson wrote:
>>
>> On Tue, Jun 15, 2010 at 06:19:19PM -0400, Luis R. Rodriguez wrote:
>>>
>>> commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.
>>>
>>> The newer single chip hardware family of chipsets have not been
>>> experiencing issues with power saving set by default with recent
>>> fixes merged (even into stable). The remaining issues are only
>>> reported with AR5416 and since enabling PS by default can increase
>>> power savings considerably best to take advantage of that feature
>>> as this has been tested properly.
>>
>> I havent had any issues lately. But that said Ive moved on to
>> 2.6.33, 2.6.34 which seems to work fine. Believe you set
>> to disabled by default on those?
>>
>> /Kristoffer
>>
>
> just tried to add this patch to the latest HEAD, but realized
> ath_set_hw_capab is missing(or I cant seem to grep it)
> if you have a patch for the latest tree let me know I can see if I'm hitting
> anything like before.

The patch would already be merged since 2.6.33.y, this patch is a
backport for 2.6.32.y. I just hadn't had time to backport it yet,
until today.

  Luis

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

* Re: [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
  2010-06-16 15:49     ` Luis R. Rodriguez
@ 2010-06-16 16:01       ` Justin P. Mattock
  2010-06-16 17:53         ` Luis R. Rodriguez
  0 siblings, 1 reply; 14+ messages in thread
From: Justin P. Mattock @ 2010-06-16 16:01 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: Kristoffer Ericson, stable, greg, linux-wireless, Peter Stuge,
	John W. Linville

On 06/16/2010 08:49 AM, Luis R. Rodriguez wrote:
> On Wed, Jun 16, 2010 at 6:33 AM, Justin P. Mattock
> <justinmattock@gmail.com>  wrote:
>> On 06/16/2010 01:12 AM, Kristoffer Ericson wrote:
>>>
>>> On Tue, Jun 15, 2010 at 06:19:19PM -0400, Luis R. Rodriguez wrote:
>>>>
>>>> commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.
>>>>
>>>> The newer single chip hardware family of chipsets have not been
>>>> experiencing issues with power saving set by default with recent
>>>> fixes merged (even into stable). The remaining issues are only
>>>> reported with AR5416 and since enabling PS by default can increase
>>>> power savings considerably best to take advantage of that feature
>>>> as this has been tested properly.
>>>
>>> I havent had any issues lately. But that said Ive moved on to
>>> 2.6.33, 2.6.34 which seems to work fine. Believe you set
>>> to disabled by default on those?
>>>
>>> /Kristoffer
>>>
>>
>> just tried to add this patch to the latest HEAD, but realized
>> ath_set_hw_capab is missing(or I cant seem to grep it)
>> if you have a patch for the latest tree let me know I can see if I'm hitting
>> anything like before.
>
> The patch would already be merged since 2.6.33.y, this patch is a
> backport for 2.6.32.y. I just hadn't had time to backport it yet,
> until today.
>
>    Luis
>

so its already in there then.. if that's the case then the system runs 
good with powersave on then..

Justin P. Mattock

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

* Re: [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
  2010-06-16 16:01       ` Justin P. Mattock
@ 2010-06-16 17:53         ` Luis R. Rodriguez
  2010-06-16 18:15           ` Justin P. Mattock
  0 siblings, 1 reply; 14+ messages in thread
From: Luis R. Rodriguez @ 2010-06-16 17:53 UTC (permalink / raw)
  To: Justin P. Mattock
  Cc: Luis Rodriguez, Kristoffer Ericson, stable, greg, linux-wireless,
	Peter Stuge, John W. Linville

On Wed, Jun 16, 2010 at 09:01:36AM -0700, Justin P. Mattock wrote:
> On 06/16/2010 08:49 AM, Luis R. Rodriguez wrote:
> > On Wed, Jun 16, 2010 at 6:33 AM, Justin P. Mattock
> > <justinmattock@gmail.com>  wrote:
> >> On 06/16/2010 01:12 AM, Kristoffer Ericson wrote:
> >>>
> >>> On Tue, Jun 15, 2010 at 06:19:19PM -0400, Luis R. Rodriguez wrote:
> >>>>
> >>>> commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.
> >>>>
> >>>> The newer single chip hardware family of chipsets have not been
> >>>> experiencing issues with power saving set by default with recent
> >>>> fixes merged (even into stable). The remaining issues are only
> >>>> reported with AR5416 and since enabling PS by default can increase
> >>>> power savings considerably best to take advantage of that feature
> >>>> as this has been tested properly.
> >>>
> >>> I havent had any issues lately. But that said Ive moved on to
> >>> 2.6.33, 2.6.34 which seems to work fine. Believe you set
> >>> to disabled by default on those?
> >>>
> >>> /Kristoffer
> >>>
> >>
> >> just tried to add this patch to the latest HEAD, but realized
> >> ath_set_hw_capab is missing(or I cant seem to grep it)
> >> if you have a patch for the latest tree let me know I can see if I'm hitting
> >> anything like before.
> >
> > The patch would already be merged since 2.6.33.y, this patch is a
> > backport for 2.6.32.y. I just hadn't had time to backport it yet,
> > until today.
> >
> >    Luis
> >
> 
> so its already in there then..

Right

> if that's the case then the system runs 
> good with powersave on then..

Did you read the patch by chance? It only enables power save for
non-AR5416 hardware. What do you have?
 
  Luis

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

* Re: [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
  2010-06-16 17:53         ` Luis R. Rodriguez
@ 2010-06-16 18:15           ` Justin P. Mattock
  2010-06-16 18:16             ` Luis R. Rodriguez
  0 siblings, 1 reply; 14+ messages in thread
From: Justin P. Mattock @ 2010-06-16 18:15 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: Luis Rodriguez, Kristoffer Ericson, stable, greg, linux-wireless,
	Peter Stuge, John W. Linville

On 06/16/2010 10:53 AM, Luis R. Rodriguez wrote:
> On Wed, Jun 16, 2010 at 09:01:36AM -0700, Justin P. Mattock wrote:
>> On 06/16/2010 08:49 AM, Luis R. Rodriguez wrote:
>>> On Wed, Jun 16, 2010 at 6:33 AM, Justin P. Mattock
>>> <justinmattock@gmail.com>   wrote:
>>>> On 06/16/2010 01:12 AM, Kristoffer Ericson wrote:
>>>>>
>>>>> On Tue, Jun 15, 2010 at 06:19:19PM -0400, Luis R. Rodriguez wrote:
>>>>>>
>>>>>> commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.
>>>>>>
>>>>>> The newer single chip hardware family of chipsets have not been
>>>>>> experiencing issues with power saving set by default with recent
>>>>>> fixes merged (even into stable). The remaining issues are only
>>>>>> reported with AR5416 and since enabling PS by default can increase
>>>>>> power savings considerably best to take advantage of that feature
>>>>>> as this has been tested properly.
>>>>>
>>>>> I havent had any issues lately. But that said Ive moved on to
>>>>> 2.6.33, 2.6.34 which seems to work fine. Believe you set
>>>>> to disabled by default on those?
>>>>>
>>>>> /Kristoffer
>>>>>
>>>>
>>>> just tried to add this patch to the latest HEAD, but realized
>>>> ath_set_hw_capab is missing(or I cant seem to grep it)
>>>> if you have a patch for the latest tree let me know I can see if I'm hitting
>>>> anything like before.
>>>
>>> The patch would already be merged since 2.6.33.y, this patch is a
>>> backport for 2.6.32.y. I just hadn't had time to backport it yet,
>>> until today.
>>>
>>>     Luis
>>>
>>
>> so its already in there then..
>
> Right
>
>> if that's the case then the system runs
>> good with powersave on then..
>
> Did you read the patch by chance? It only enables power save for
> non-AR5416 hardware. What do you have?
>
>    Luis
>

mine is the AR5008

Justin P. Mattock

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

* Re: [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
  2010-06-16 18:15           ` Justin P. Mattock
@ 2010-06-16 18:16             ` Luis R. Rodriguez
  2010-06-16 19:14               ` Justin P. Mattock
  0 siblings, 1 reply; 14+ messages in thread
From: Luis R. Rodriguez @ 2010-06-16 18:16 UTC (permalink / raw)
  To: Justin P. Mattock
  Cc: Luis Rodriguez, Kristoffer Ericson, stable, greg, linux-wireless,
	Peter Stuge, John W. Linville

On Wed, Jun 16, 2010 at 11:15:29AM -0700, Justin P. Mattock wrote:
> On 06/16/2010 10:53 AM, Luis R. Rodriguez wrote:
> > On Wed, Jun 16, 2010 at 09:01:36AM -0700, Justin P. Mattock wrote:
> >> On 06/16/2010 08:49 AM, Luis R. Rodriguez wrote:
> >>> On Wed, Jun 16, 2010 at 6:33 AM, Justin P. Mattock
> >>> <justinmattock@gmail.com>   wrote:
> >>>> On 06/16/2010 01:12 AM, Kristoffer Ericson wrote:
> >>>>>
> >>>>> On Tue, Jun 15, 2010 at 06:19:19PM -0400, Luis R. Rodriguez wrote:
> >>>>>>
> >>>>>> commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.
> >>>>>>
> >>>>>> The newer single chip hardware family of chipsets have not been
> >>>>>> experiencing issues with power saving set by default with recent
> >>>>>> fixes merged (even into stable). The remaining issues are only
> >>>>>> reported with AR5416 and since enabling PS by default can increase
> >>>>>> power savings considerably best to take advantage of that feature
> >>>>>> as this has been tested properly.
> >>>>>
> >>>>> I havent had any issues lately. But that said Ive moved on to
> >>>>> 2.6.33, 2.6.34 which seems to work fine. Believe you set
> >>>>> to disabled by default on those?
> >>>>>
> >>>>> /Kristoffer
> >>>>>
> >>>>
> >>>> just tried to add this patch to the latest HEAD, but realized
> >>>> ath_set_hw_capab is missing(or I cant seem to grep it)
> >>>> if you have a patch for the latest tree let me know I can see if I'm hitting
> >>>> anything like before.
> >>>
> >>> The patch would already be merged since 2.6.33.y, this patch is a
> >>> backport for 2.6.32.y. I just hadn't had time to backport it yet,
> >>> until today.
> >>>
> >>>     Luis
> >>>
> >>
> >> so its already in there then..
> >
> > Right
> >
> >> if that's the case then the system runs
> >> good with powersave on then..
> >
> > Did you read the patch by chance? It only enables power save for
> > non-AR5416 hardware. What do you have?
> >
> >    Luis
> >
> 
> mine is the AR5008

Ok I should say, all AR5008 and AR9001 family chipsets have
power save disabled still. Only AR9002 and up have it enabled
now. The patch was doing the same for 2.6.32.

  Luis

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

* Re: [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
  2010-06-16 18:16             ` Luis R. Rodriguez
@ 2010-06-16 19:14               ` Justin P. Mattock
  2010-06-16 20:06                 ` Luis R. Rodriguez
  0 siblings, 1 reply; 14+ messages in thread
From: Justin P. Mattock @ 2010-06-16 19:14 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: Luis Rodriguez, Kristoffer Ericson, stable, greg, linux-wireless,
	Peter Stuge, John W. Linville

On 06/16/2010 11:16 AM, Luis R. Rodriguez wrote:
> On Wed, Jun 16, 2010 at 11:15:29AM -0700, Justin P. Mattock wrote:
>> On 06/16/2010 10:53 AM, Luis R. Rodriguez wrote:
>>> On Wed, Jun 16, 2010 at 09:01:36AM -0700, Justin P. Mattock wrote:
>>>> On 06/16/2010 08:49 AM, Luis R. Rodriguez wrote:
>>>>> On Wed, Jun 16, 2010 at 6:33 AM, Justin P. Mattock
>>>>> <justinmattock@gmail.com>    wrote:
>>>>>> On 06/16/2010 01:12 AM, Kristoffer Ericson wrote:
>>>>>>>
>>>>>>> On Tue, Jun 15, 2010 at 06:19:19PM -0400, Luis R. Rodriguez wrote:
>>>>>>>>
>>>>>>>> commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.
>>>>>>>>
>>>>>>>> The newer single chip hardware family of chipsets have not been
>>>>>>>> experiencing issues with power saving set by default with recent
>>>>>>>> fixes merged (even into stable). The remaining issues are only
>>>>>>>> reported with AR5416 and since enabling PS by default can increase
>>>>>>>> power savings considerably best to take advantage of that feature
>>>>>>>> as this has been tested properly.
>>>>>>>
>>>>>>> I havent had any issues lately. But that said Ive moved on to
>>>>>>> 2.6.33, 2.6.34 which seems to work fine. Believe you set
>>>>>>> to disabled by default on those?
>>>>>>>
>>>>>>> /Kristoffer
>>>>>>>
>>>>>>
>>>>>> just tried to add this patch to the latest HEAD, but realized
>>>>>> ath_set_hw_capab is missing(or I cant seem to grep it)
>>>>>> if you have a patch for the latest tree let me know I can see if I'm hitting
>>>>>> anything like before.
>>>>>
>>>>> The patch would already be merged since 2.6.33.y, this patch is a
>>>>> backport for 2.6.32.y. I just hadn't had time to backport it yet,
>>>>> until today.
>>>>>
>>>>>      Luis
>>>>>
>>>>
>>>> so its already in there then..
>>>
>>> Right
>>>
>>>> if that's the case then the system runs
>>>> good with powersave on then..
>>>
>>> Did you read the patch by chance? It only enables power save for
>>> non-AR5416 hardware. What do you have?
>>>
>>>     Luis
>>>
>>
>> mine is the AR5008
>
> Ok I should say, all AR5008 and AR9001 family chipsets have
> power save disabled still. Only AR9002 and up have it enabled
> now. The patch was doing the same for 2.6.32.
>
>    Luis
>

o.k. I have not tried what powersave does since the last time I looked 
into this bug(if I remember 2.6.31/2 or so) I can manually
turn it on with iwconfig and see..

Justin P. Mattock

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

* Re: [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
  2010-06-16 19:14               ` Justin P. Mattock
@ 2010-06-16 20:06                 ` Luis R. Rodriguez
  2010-06-16 20:40                   ` Justin P. Mattock
  0 siblings, 1 reply; 14+ messages in thread
From: Luis R. Rodriguez @ 2010-06-16 20:06 UTC (permalink / raw)
  To: Justin P. Mattock
  Cc: Luis Rodriguez, Kristoffer Ericson, stable, greg, linux-wireless,
	Peter Stuge, John W. Linville

On Wed, Jun 16, 2010 at 12:14:51PM -0700, Justin P. Mattock wrote:
> On 06/16/2010 11:16 AM, Luis R. Rodriguez wrote:
> > On Wed, Jun 16, 2010 at 11:15:29AM -0700, Justin P. Mattock wrote:
> >> On 06/16/2010 10:53 AM, Luis R. Rodriguez wrote:
> >>> On Wed, Jun 16, 2010 at 09:01:36AM -0700, Justin P. Mattock wrote:
> >>>> On 06/16/2010 08:49 AM, Luis R. Rodriguez wrote:
> >>>>> On Wed, Jun 16, 2010 at 6:33 AM, Justin P. Mattock
> >>>>> <justinmattock@gmail.com>    wrote:
> >>>>>> On 06/16/2010 01:12 AM, Kristoffer Ericson wrote:
> >>>>>>>
> >>>>>>> On Tue, Jun 15, 2010 at 06:19:19PM -0400, Luis R. Rodriguez wrote:
> >>>>>>>>
> >>>>>>>> commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.
> >>>>>>>>
> >>>>>>>> The newer single chip hardware family of chipsets have not been
> >>>>>>>> experiencing issues with power saving set by default with recent
> >>>>>>>> fixes merged (even into stable). The remaining issues are only
> >>>>>>>> reported with AR5416 and since enabling PS by default can increase
> >>>>>>>> power savings considerably best to take advantage of that feature
> >>>>>>>> as this has been tested properly.
> >>>>>>>
> >>>>>>> I havent had any issues lately. But that said Ive moved on to
> >>>>>>> 2.6.33, 2.6.34 which seems to work fine. Believe you set
> >>>>>>> to disabled by default on those?
> >>>>>>>
> >>>>>>> /Kristoffer
> >>>>>>>
> >>>>>>
> >>>>>> just tried to add this patch to the latest HEAD, but realized
> >>>>>> ath_set_hw_capab is missing(or I cant seem to grep it)
> >>>>>> if you have a patch for the latest tree let me know I can see if I'm hitting
> >>>>>> anything like before.
> >>>>>
> >>>>> The patch would already be merged since 2.6.33.y, this patch is a
> >>>>> backport for 2.6.32.y. I just hadn't had time to backport it yet,
> >>>>> until today.
> >>>>>
> >>>>>      Luis
> >>>>>
> >>>>
> >>>> so its already in there then..
> >>>
> >>> Right
> >>>
> >>>> if that's the case then the system runs
> >>>> good with powersave on then..
> >>>
> >>> Did you read the patch by chance? It only enables power save for
> >>> non-AR5416 hardware. What do you have?
> >>>
> >>>     Luis
> >>>
> >>
> >> mine is the AR5008
> >
> > Ok I should say, all AR5008 and AR9001 family chipsets have
> > power save disabled still. Only AR9002 and up have it enabled
> > now. The patch was doing the same for 2.6.32.
> >
> >    Luis
> >
> 
> o.k. I have not tried what powersave does since the last time I looked 
> into this bug(if I remember 2.6.31/2 or so) I can manually
> turn it on with iwconfig and see..

Thanks but no need, its not the purpose of the patch.

  Luis

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

* Re: [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
  2010-06-16 20:06                 ` Luis R. Rodriguez
@ 2010-06-16 20:40                   ` Justin P. Mattock
  0 siblings, 0 replies; 14+ messages in thread
From: Justin P. Mattock @ 2010-06-16 20:40 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: Luis Rodriguez, Kristoffer Ericson, stable, greg, linux-wireless,
	Peter Stuge, John W. Linville

On 06/16/2010 01:06 PM, Luis R. Rodriguez wrote:
> On Wed, Jun 16, 2010 at 12:14:51PM -0700, Justin P. Mattock wrote:
>> On 06/16/2010 11:16 AM, Luis R. Rodriguez wrote:
>>> On Wed, Jun 16, 2010 at 11:15:29AM -0700, Justin P. Mattock wrote:
>>>> On 06/16/2010 10:53 AM, Luis R. Rodriguez wrote:
>>>>> On Wed, Jun 16, 2010 at 09:01:36AM -0700, Justin P. Mattock wrote:
>>>>>> On 06/16/2010 08:49 AM, Luis R. Rodriguez wrote:
>>>>>>> On Wed, Jun 16, 2010 at 6:33 AM, Justin P. Mattock
>>>>>>> <justinmattock@gmail.com>     wrote:
>>>>>>>> On 06/16/2010 01:12 AM, Kristoffer Ericson wrote:
>>>>>>>>>
>>>>>>>>> On Tue, Jun 15, 2010 at 06:19:19PM -0400, Luis R. Rodriguez wrote:
>>>>>>>>>>
>>>>>>>>>> commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.
>>>>>>>>>>
>>>>>>>>>> The newer single chip hardware family of chipsets have not been
>>>>>>>>>> experiencing issues with power saving set by default with recent
>>>>>>>>>> fixes merged (even into stable). The remaining issues are only
>>>>>>>>>> reported with AR5416 and since enabling PS by default can increase
>>>>>>>>>> power savings considerably best to take advantage of that feature
>>>>>>>>>> as this has been tested properly.
>>>>>>>>>
>>>>>>>>> I havent had any issues lately. But that said Ive moved on to
>>>>>>>>> 2.6.33, 2.6.34 which seems to work fine. Believe you set
>>>>>>>>> to disabled by default on those?
>>>>>>>>>
>>>>>>>>> /Kristoffer
>>>>>>>>>
>>>>>>>>
>>>>>>>> just tried to add this patch to the latest HEAD, but realized
>>>>>>>> ath_set_hw_capab is missing(or I cant seem to grep it)
>>>>>>>> if you have a patch for the latest tree let me know I can see if I'm hitting
>>>>>>>> anything like before.
>>>>>>>
>>>>>>> The patch would already be merged since 2.6.33.y, this patch is a
>>>>>>> backport for 2.6.32.y. I just hadn't had time to backport it yet,
>>>>>>> until today.
>>>>>>>
>>>>>>>       Luis
>>>>>>>
>>>>>>
>>>>>> so its already in there then..
>>>>>
>>>>> Right
>>>>>
>>>>>> if that's the case then the system runs
>>>>>> good with powersave on then..
>>>>>
>>>>> Did you read the patch by chance? It only enables power save for
>>>>> non-AR5416 hardware. What do you have?
>>>>>
>>>>>      Luis
>>>>>
>>>>
>>>> mine is the AR5008
>>>
>>> Ok I should say, all AR5008 and AR9001 family chipsets have
>>> power save disabled still. Only AR9002 and up have it enabled
>>> now. The patch was doing the same for 2.6.32.
>>>
>>>     Luis
>>>
>>
>> o.k. I have not tried what powersave does since the last time I looked
>> into this bug(if I remember 2.6.31/2 or so) I can manually
>> turn it on with iwconfig and see..
>
> Thanks but no need, its not the purpose of the patch.
>
>    Luis
>

o.k.

Justin P. Mattock

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

* Re: [stable] [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families
  2010-06-15 22:19 [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families Luis R. Rodriguez
  2010-06-16  2:20 ` Justin P. Mattock
  2010-06-16  8:12 ` Kristoffer Ericson
@ 2010-07-27 22:22 ` Greg KH
  2 siblings, 0 replies; 14+ messages in thread
From: Greg KH @ 2010-07-27 22:22 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: stable, linux-wireless, John W. Linville, Kristoffer Ericson,
	Justin P. Mattock, Peter Stuge

On Tue, Jun 15, 2010 at 06:19:19PM -0400, Luis R. Rodriguez wrote:
> commit 14acdde6e527950f66c084dbf19bad6fbfcaeedc upstream.
> 
> The newer single chip hardware family of chipsets have not been
> experiencing issues with power saving set by default with recent
> fixes merged (even into stable). The remaining issues are only
> reported with AR5416 and since enabling PS by default can increase
> power savings considerably best to take advantage of that feature
> as this has been tested properly.
> 
> For more details on this issue see the bug report:
> 
> http://bugzilla.kernel.org/show_bug.cgi?id=14267
> 
> We leave AR5416 with PS disabled by default, that seems to require
> some more work.
> 
> Cc: stable@kernel.org
> Cc: Peter Stuge <peter@stuge.se>
> Cc: Justin P. Mattock  <justinmattock@gmail.com>
> Cc: Kristoffer Ericson <kristoffer.ericson@gmail.com>
> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
> Signed-off-by: John W. Linville <linville@tuxdriver.com>
> ---
> 
> Greg, this is the long promised backport of the patch titled
> "ath9k: re-enable ps by default for new single chip families" backported
> down to 2.6.32.y. This just goes test compiled. Manual backport
> was required from the upstream Linus patch since the flag
> WIPHY_FLAG_PS_ON_BY_DEFAULT was not used back on 2.6.32 so instead
> we use the equivalent hw->wiphy->ps_default bool.
> 
> Apologies for the delay, was just stuck with other stuff.
> 
> I'll remove this from the stable pending list for 802.11 [1] once
> this gets sucked in.

Now queued up, thanks.

greg k-h

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

end of thread, other threads:[~2010-07-27 22:51 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-15 22:19 [PATCH 2.6.32.y] ath9k: re-enable ps by default for new single chip families Luis R. Rodriguez
2010-06-16  2:20 ` Justin P. Mattock
2010-06-16  8:12 ` Kristoffer Ericson
2010-06-16 13:33   ` Justin P. Mattock
2010-06-16 15:49     ` Luis R. Rodriguez
2010-06-16 16:01       ` Justin P. Mattock
2010-06-16 17:53         ` Luis R. Rodriguez
2010-06-16 18:15           ` Justin P. Mattock
2010-06-16 18:16             ` Luis R. Rodriguez
2010-06-16 19:14               ` Justin P. Mattock
2010-06-16 20:06                 ` Luis R. Rodriguez
2010-06-16 20:40                   ` Justin P. Mattock
2010-06-16 15:48   ` Luis R. Rodriguez
2010-07-27 22:22 ` [stable] " Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).