linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Grumbach, Emmanuel" <emmanuel.grumbach@intel.com>
To: Bjorn Helgaas <bhelgaas@google.com>,
	Emmanuel Grumbach <egrumbach@gmail.com>
Cc: wzyboy <wzyboy@wzyboy.org>,
	"ilw@linux.intel.com" <ilw@linux.intel.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: RE: [Ilw] Intel Wireless 7260 hardware timed out randomly
Date: Wed, 13 Nov 2013 09:47:30 +0000	[thread overview]
Message-ID: <0BA3FCBA62E2DC44AF3030971E174FB301DFFED7@HASMSX103.ger.corp.intel.com> (raw)
In-Reply-To: CAErSpo6JdKgU0M-wu84_U2Hb4-4mdSr_V8f70Pi-ox8H45+Diw@mail.gmail.com

> >
> > On Tue, Nov 12, 2013 at 12:37 PM, Emmanuel Grumbach
> > <egrumbach@gmail.com> wrote:
> > > On 11/12/2013 09:14 PM, Bjorn Helgaas wrote:
> > >> On Tue, Nov 12, 2013 at 11:25 AM, Grumbach, Emmanuel
> > >> <emmanuel.grumbach@intel.com> wrote:
> > >>
> > >>> Right - I remember the discussion we had on that.
> > >>> On this device (7260 that has an issue with ASPM), we don't call
> > pci_disable_link_state, because we know it is supposed to work...
> > >>
> > >> If ASPM is supposed to work as far as the hardware is concerned, I
> > >> guess you're saying this must be an iwlwifi driver issue.  Right?
> > >
> > > ASPM is supposed to work as far as the hardware is concerned.
> > > We might very well have an issue in iwlwifi - and I am checking this
> > > internally with our System guys.
> > > It can be a PCI core problem too, and it could also be a platform /
> > > BIOS / Lenovo issue.
> > > Of course, I have no clue which of these is the culprit here.
> > > Our System folks seemed to say that this new device uses L1
> > > substates which can be enabled in Haswell platform which the user owns.
> > > Now - L1 substates is a new feature and might introduce issues
> > > (apparently) - and this is why they (System folks) wanted the try
> > > without L1 substates. But disabling L1 substates doesn't seem
> > > trivial with the production BIOS of Lenovo. So I am pretty stuck here.
> >
> > For debugging purposes, we could configure L1 substates with setpci,
> > as we did for ASPM.  The Linux kernel knows nothing about L1
> > substates, so the PCI core isn't doing anything with them.  It's
> > possible the driver itself could muck with L1 substate configuration,
> > but that would be discouraged, and I don't see anything in iwlwifi that is
> doing that.
> >
> > The lspci output in
> > https://bugzilla.kernel.org/attachment.cgi?id=114061 shows an L1 PM
> > Substates extended capability (capability ID 0x1e) for the Root Port
> > leading to the 7260 device, but not for the 7260 device itself:
> >
> >   00:1c.1 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root
> > Port 3 (rev e4) (prog-if 00 [Normal decode])
> >     Capabilities: [200 v1] #1e
> >
> > Per sec 5.5.4 of the ECN for L1 PM Substates (15 Aug 2012), I think L1
> > substates must be configured on both ends of the link, and if the 7260
> > device doesn't have that capability, I don't see how it could be enabled.
> 
> Makes sense.
> 
> >
> > The lspci version wzyboy has doesn't decode the L1 PM Substates
> > capability, but there is a newer version at
> > git://git.kernel.org/pub/scm/utils/pciutils/pciutils.git that should decode it.
> > Also, "lspci -vvxxx" didn't hexdump this capability, which should be
> > at offset 0x200.  Using "lspci -xxxx" (four "x"s) should dump it, and
> > we can decode it manually.
> >
> 
> You can find this in
> http://permalink.gmane.org/gmane.linux.kernel.wireless.general/115378.
> 
> Somehow my System team says that it should be at offset 0x160?
> Is it possible that there is a "walk algorithm" with pointers just like for the
> ASPM register?
> I'll try to check the PCI spec when I'll find the time for that.

So I read a bit the lspci code, and it looks that there are plenty of pointers inside the config space. Fun :)
So basically, since:
#define PCI_EXT_CAP_ID_L1PM        0x1e
This means that I need to find an 0x1e in the output of wzyboy's lspci. I found only one: at offset 0x15d.
Should that mean that my System team was right when they asked for offset 0x160 which is 3 bytes afterwards (and matches more the less the code of lspci)?
If so, 
160: 0f 00 a0 40 f0 00 00 00 00 00 00 00 00 00 00 00 seems to say that it is enabled?

OTOH, 0x15d is 0x1e and not 0x001e as required by PCI-SIG ECN? Me scraping my head.

  parent reply	other threads:[~2013-11-13  9:47 UTC|newest]

Thread overview: 97+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-03  9:11 Intel Wireless 7260 hardware timed out randomly wzyboy
2013-11-03  9:23 ` [Ilw] " Grumbach, Emmanuel
     [not found]   ` <CALkVjQYh-SUte4S6LdqOc3KSc3_pDU6jz1KXp+Jsd5_RFPXSqA@mail.gmail.com>
2013-11-04  9:21     ` Fwd: " wzyboy
2013-11-04  9:42       ` Sedat Dilek
2013-11-04  9:53         ` wzyboy
2013-11-04  9:42     ` Grumbach, Emmanuel
2013-11-05  4:34       ` wzyboy
2013-11-05 11:04         ` Grumbach, Emmanuel
     [not found]           ` <CALkVjQbW8FeiEh8pBZ=KQFD9+8AdjgT0G_RG7qJe0MRdBvMD-A@mail.gmail.com>
2013-11-05 11:42             ` Fwd: " wzyboy
2013-11-06  4:47             ` wzyboy
2013-11-06  6:18               ` Grumbach, Emmanuel
2013-11-06  6:34                 ` wzyboy
2013-11-06  6:37                   ` Grumbach, Emmanuel
2013-11-06  6:47                     ` wzyboy
2013-11-06  7:07                       ` wzyboy
2013-11-06  7:10                         ` Grumbach, Emmanuel
2013-11-06  7:12                           ` wzyboy
2013-11-06 17:50                             ` Emmanuel Grumbach
2013-11-06 18:32                               ` Bjorn Helgaas
2013-11-07  4:49                                 ` wzyboy
2013-11-07 14:24                                   ` wzyboy
2013-11-08  4:41                                     ` wzyboy
2013-11-08  4:46                                       ` wzyboy
2013-11-08 17:20                                   ` Bjorn Helgaas
2013-11-08 17:38                                     ` Bjorn Helgaas
2013-11-10 10:19                                       ` wzyboy
2013-11-10 11:32                                         ` Emmanuel Grumbach
2013-11-10 11:38                                           ` wzyboy
2013-11-10 11:41                                             ` Grumbach, Emmanuel
2013-11-10 12:13                                               ` wzyboy
2013-11-10 12:17                                                 ` Grumbach, Emmanuel
2013-11-11  9:43                                                   ` Emmanuel Grumbach
2013-11-11 11:40                                                     ` wzyboy
2013-11-11 21:55                                         ` Bjorn Helgaas
2013-11-09  2:46                                     ` wzyboy
2013-11-10  7:03                                       ` Emmanuel Grumbach
2013-11-10  7:08                                         ` wzyboy
2013-11-11 22:44                                       ` Bjorn Helgaas
2013-11-12  5:42                                         ` wzyboy
2013-11-12  7:02                                           ` Emmanuel Grumbach
2013-11-12  9:36                                             ` Emmanuel Grumbach
2013-11-12 12:10                                           ` wzyboy
2013-11-12 12:16                                             ` Grumbach, Emmanuel
2013-11-12 12:25                                               ` wzyboy
2013-11-12 12:45                                                 ` Grumbach, Emmanuel
2013-11-12 12:59                                                   ` wzyboy
2013-11-12 18:14                                               ` Bjorn Helgaas
2013-11-12 18:25                                                 ` Grumbach, Emmanuel
2013-11-12 19:14                                                   ` Bjorn Helgaas
2013-11-12 19:37                                                     ` Emmanuel Grumbach
2013-11-12 22:09                                                       ` Bjorn Helgaas
2013-11-13  5:39                                                         ` wzyboy
2013-11-13  6:46                                                           ` wzyboy
     [not found]                                                             ` <0BA3FCBA62E2DC44AF3030971E174FB301DFBCB5@HASMSX103.ger.corp.intel.com>
2013-11-13  7:25                                                               ` wzyboy
2013-11-13 17:42                                                           ` Bjorn Helgaas
2013-11-13 20:30                                                             ` Grumbach, Emmanuel
2013-11-14  4:23                                                             ` wzyboy
2013-11-14  6:20                                                               ` Grumbach, Emmanuel
2013-11-14  7:01                                                                 ` wzyboy
2013-11-14  7:04                                                                   ` Grumbach, Emmanuel
2013-11-14  7:09                                                                     ` wzyboy
2013-11-14  8:39                                                                       ` Grumbach, Emmanuel
2013-11-14 17:53                                                                         ` Bjorn Helgaas
2013-11-15  3:06                                                                           ` wzyboy
2013-11-15  3:09                                                                             ` wzyboy
2013-11-15  8:49                                                                             ` Emmanuel Grumbach
2013-11-15  9:04                                                                               ` wzyboy
2013-12-25  8:27                                                                                 ` Emmanuel Grumbach
2013-12-25 10:34                                                                                   ` wzyboy
2013-12-25 10:38                                                                                     ` Grumbach, Emmanuel
2013-12-28  9:54                                                                                       ` wzyboy
2013-12-28  9:57                                                                                       ` wzyboy
2013-12-29  8:14                                                                                         ` Grumbach, Emmanuel
2013-12-29  9:23                                                                                           ` wzyboy
2013-12-29 11:45                                                                                             ` Emmanuel Grumbach
2013-12-29 13:06                                                                                               ` wzyboy
2014-01-02 21:34                                                                                             ` Bjorn Helgaas
2014-01-04 14:41                                                                                               ` wzyboy
2014-01-13  6:01                                                                                                 ` Grumbach, Emmanuel
2014-01-13  6:15                                                                                                   ` wzyboy
2014-01-13  7:56                                                                                                     ` wzyboy
2014-01-13  8:26                                                                                                       ` Grumbach, Emmanuel
2014-01-13  8:50                                                                                                         ` wzyboy
2014-01-13  8:59                                                                                                           ` Grumbach, Emmanuel
2014-01-13  9:05                                                                                                             ` wzyboy
2014-01-13 10:51                                                                                                               ` Grumbach, Emmanuel
2014-01-13 10:56                                                                                                                 ` wzyboy
2014-01-13 17:29                                                                                                         ` Bjorn Helgaas
2014-01-14  3:56                                                                                                           ` Sascha Weaver
2013-11-13  8:45                                                         ` Grumbach, Emmanuel
2013-11-13  9:47                                                         ` Grumbach, Emmanuel [this message]
2013-11-13 12:13                                                         ` Grumbach, Emmanuel
2013-11-13 12:18                                                           ` wzyboy
2013-11-13 12:21                                                             ` Grumbach, Emmanuel
2013-11-13 12:33                                                               ` wzyboy
2013-11-13 13:48                                                           ` Bjørn Mork
2013-11-13 14:16                                                             ` Grumbach, Emmanuel

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=0BA3FCBA62E2DC44AF3030971E174FB301DFFED7@HASMSX103.ger.corp.intel.com \
    --to=emmanuel.grumbach@intel.com \
    --cc=bhelgaas@google.com \
    --cc=egrumbach@gmail.com \
    --cc=ilw@linux.intel.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=wzyboy@wzyboy.org \
    /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).