linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: wwguy <wey-yi.w.guy@intel.com>
To: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: "linville@tuxdriver.com" <linville@tuxdriver.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"ipw3945-devel@lists.sourceforge.net"
	<ipw3945-devel@lists.sourceforge.net>
Subject: Re: [PATCH 10/16] iwlagn: remove un-needed configuration
Date: Tue, 12 Apr 2011 07:39:55 -0700	[thread overview]
Message-ID: <1302619195.22178.1.camel@wwguy-ubuntu> (raw)
In-Reply-To: <20110412103905.GB2804@redhat.com>

On Tue, 2011-04-12 at 03:39 -0700, Stanislaw Gruszka wrote:
> On Fri, Apr 08, 2011 at 08:30:30AM -0700, Wey-Yi Guy wrote:
> > +	lctl = iwl_pcie_link_ctl(priv);
> > +	if ((lctl & PCI_CFG_LINK_CTRL_VAL_L1_EN) ==
> > +				PCI_CFG_LINK_CTRL_VAL_L1_EN) {
> > +		/* L1-ASPM enabled; disable(!) L0S  */
> > +		iwl_set_bit(priv, CSR_GIO_REG,
> > +				CSR_GIO_REG_VAL_L0S_ENABLED);
> > +		IWL_DEBUG_POWER(priv, "L1 Enabled; Disabling L0S\n");
> > +	} else {
> > +		/* L1-ASPM disabled; enable(!) L0S */
> > +		iwl_clear_bit(priv, CSR_GIO_REG,
> > +				CSR_GIO_REG_VAL_L0S_ENABLED);
> > +		IWL_DEBUG_POWER(priv, "L1 Disabled; Enabling L0S\n");
> >  	}
> 
> In
> 
> commit 1a7123cdd9f49cf1c908fb2c16d26f279c88d8c9
> Author: John W. Linville <linville@tuxdriver.com>
> Date:   Thu Aug 5 14:39:31 2010 -0400
> 
>     iwlwifi: disable aspm by default
> 
> we claim to disable ASPM (including L0S), but here we
> enable L0S anyway. Perhaps this is the reason why we
> still get reports about device disappear:
> https://bugzilla.redhat.com/show_bug.cgi?id=642966
> 
> We also have code from:
> 
> commit e7cad69cdab4d6f0caadbcdd58b54214243ba98a
> Author: Grumbach, Emmanuel <emmanuel.grumbach@intel.com>
> Date:   Thu Nov 18 03:47:38 2010 -0800
> 
>     iwlagn: Enable PCI L1 ACTIVE state after uCode has been loaded
> 
> that seems to enable L1 ASPM as well.
> 
> I think these bits should be removed from iwlagn driver, or better
> root cause of device disappear from bus should be identified and fixed
> (not sure if this is iwlagn driver/firmware problem or bios or
> pci driver problem, however) to allow to use ASPM.
> 

I also like to remove this bits, but since we still not be able to root
cause the PCI-e bus disappear problem, I will like to keep the code here
for now.

One of the issue is we just can not re-produce the problem here, any
help will be greatly appreciated.

Thanks
Wey



  parent reply	other threads:[~2011-04-12 14:42 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-08 15:30 [PATCH 00/16] update for 2.6.40 Wey-Yi Guy
2011-04-08 15:30 ` [PATCH 01/16] iwlwifi: remove extranious macro from firmware define Wey-Yi Guy
2011-04-08 15:30 ` [PATCH 02/16] iwlagn: remove un-necessary function pointer Wey-Yi Guy
2011-04-08 15:30 ` [PATCH 03/16] iwlagn: fix radar frame rejection Wey-Yi Guy
2011-04-10  8:15   ` Johannes Berg
2011-04-10 15:29     ` Guy, Wey-Yi
2011-04-08 15:30 ` [PATCH 04/16] iwlwifi: fix bugs in change_interface Wey-Yi Guy
2011-04-10  8:15   ` Johannes Berg
2011-04-10 15:37     ` Guy, Wey-Yi
2011-04-08 15:30 ` [PATCH 05/16] iwlagn: PAPD read for 2000 series devices Wey-Yi Guy
2011-04-08 15:30 ` [PATCH 06/16] iwlagn: no 3945 define needed Wey-Yi Guy
2011-04-08 15:30 ` [PATCH 07/16] iwlagn: remove unused 3945 define Wey-Yi Guy
2011-04-08 15:30 ` [PATCH 08/16] iwlagn: cleanup to remove the reference for 3945 Wey-Yi Guy
2011-04-08 15:30 ` [PATCH 09/16] iwlagn: remove more reference to legacy devices Wey-Yi Guy
2011-04-08 15:30 ` [PATCH 10/16] iwlagn: remove un-needed configuration Wey-Yi Guy
2011-04-12 10:39   ` Stanislaw Gruszka
2011-04-12 10:41     ` Stanislaw Gruszka
2011-04-12 14:39     ` wwguy [this message]
2011-04-08 15:30 ` [PATCH 11/16] iwlagn: more cleanup to remove unused reference Wey-Yi Guy
2011-04-08 15:30 ` [PATCH 12/16] iwlagn: all _agn devices support power save mode Wey-Yi Guy
2011-04-08 15:30 ` [PATCH 13/16] iwlagn: tx power calib always done in firmware Wey-Yi Guy
2011-04-08 15:30 ` [PATCH 14/16] iwlagn: sensitivity and chain noise done by driver Wey-Yi Guy
2011-04-08 15:30 ` [PATCH 15/16] iwlagn: clean up & autodetect statistics Wey-Yi Guy
2011-04-08 15:30 ` [PATCH 16/16] iwlagn: downgrade warning on unknown TLV Wey-Yi Guy
2011-04-10  8:15   ` Johannes Berg
2011-04-10 15:34     ` Guy, Wey-Yi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1302619195.22178.1.camel@wwguy-ubuntu \
    --to=wey-yi.w.guy@intel.com \
    --cc=ipw3945-devel@lists.sourceforge.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=sgruszka@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).