Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932325Ab0FUXzW (ORCPT ); Mon, 21 Jun 2010 19:55:22 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:34794 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758690Ab0FUXzU (ORCPT ); Mon, 21 Jun 2010 19:55:20 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=HOLKBU3k+Bx0ay1qIKXgs+8O7HxU58Eaua9CLZy9KGXfyYGv2BhTDKzwp5zMr1xLZI Grw749ABB2jf8YnA5z19vqzcUCsHRwcx/FNdbi8LgHmVV0qezA02V1WAGXdjt9Gcroxf MEYsGjDl4Bju3BB7JYX9/V59muaIe5Ln+44hE= Subject: Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM From: Maxim Levitsky To: "Luis R. Rodriguez" Cc: David Quan , Bob Copeland , "Luis R. Rodriguez" , Jussi Kivilinna , ath5k-devel@venema.h4ckr.net, linux-wireless@vger.kernel.org, linux-kernel , Jonathan May In-Reply-To: References: <20100528100901.14580.1322.stgit@fate.lan> <1276806785.20754.8.camel@maxim-laptop> <20100618112026.17623g6uhdjk8hts@naisho.dyndns.info> <1276856142.9114.1.camel@maxim-laptop> <20100618134930.124225d4fsi8w1fk@naisho.dyndns.info> <1276859156.19554.2.camel@maxim-laptop> <1276870309.23783.3.camel@maxim-laptop> <1276933774.16697.11.camel@maxim-laptop> <1277032723.9555.12.camel@maxim-laptop> <1277151410.5409.33.camel@maxim-laptop> Content-Type: text/plain; charset="UTF-8" Date: Tue, 22 Jun 2010 02:55:13 +0300 Message-ID: <1277164513.7793.1.camel@maxim-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2374 Lines: 57 On Mon, 2010-06-21 at 13:37 -0700, Luis R. Rodriguez wrote: > On Mon, Jun 21, 2010 at 1:16 PM, Maxim Levitsky wrote: > > Luis, let me explain again, exactly the situation: > > > > First of all AR5001 and AR5001X devices (former was usualy listed as > > AR2425, and I have it, later I don't know about much), don't work well > > with ASPM L0s enabled. > > Thanks for the clarification. David, do you see this as well on your end? > > > I told that many times, but I tell again. > > As soon as card it put on medium to high transmit load > > (for example even if transmission consists mostly of TCP ACK packets), > > it dies. > > > > Usualy it will stop transmitting, and then after few seconds it will > > send RXORN intrrupt to the host, even though the channel was idle. > > (Tested by sending a stream of UDP packets on channel that is neighbor > > free). > > > > I didn't see it, but some users reported seeing jumbo frames at this > > time as well. > > Overall it doesn't matter because card just goes south. > > > > A reset sometimes brings card to life, sometimes causes another storm of > > RXORN and sometimes just results in quiet dead card. > > A next reset might bring it to life, or not. > > > > Card (at least mine) advertises its as a 'pre pci 1.1 device'. > > Therefore if I enable CONFIG_PCIEASPM, the pci core will automaticly > > disable ASPM (both L0s and L1) on this card. > > I won't be surprised that windows does the same. > > I am not sure when L0s was enabled as per the spec as mandatory, I > thought it was optional. Interesting to hear this behavior on Linux > with CONFIG_PCIEASPM. That Kconfig description and code really need > some spit shining. > > > Therefore the patch I sent it useless because it only works when > > CONFIG_PCIEASPM is enabled. > > How so ? Your patch disables L0s, I can use ASPM with L0s and L1 with > or without CONFIG_PCIEASPM. If I added your calls to ath9k I would > disable L0s. Because due to card advertisement, CONFIG_PCIEASPM already disables L0s and L1 on the card, therefore my patch does nothing. Best regards, Maxim Levitsky -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/